Skip to content
Zyberum Cyber Security Firm
Menu
VulnerabilitiesLinux

NFS2ROOT (CVE-2026-99362): Linux NFS Server Flaw, Check, Fix

NFS2ROOT is a remote heap overflow in the Linux kernel NFS server, CVSS 9.8, no login needed. Who is exposed, how the bug works, how to check and what to patch.

Zyberum Security Team · Published · 14 min read

Of the Linux vulnerabilities published in the last weeks, CVE-2026-99362 carries the highest score: 9.8 from the kernel’s own CVE team. It is a heap overflow in the kernel’s NFS server that a remote client can trigger over one TCP connection, without logging in. The researchers who reported it named it NFS2ROOT. The faulty ordering of two steps has been in the kernel since 2014.

The good news is in the conditions. Most Linux systems do not run an NFS server, and those that do rarely offer it to the internet. The bad news: where it runs, it is usually the file server everything else depends on, and its export list does not protect it. This page covers who is exposed, how the bug works, how to check in two minutes and what to do.

The facts in one table

CVECVE-2026-99362, published 19 Nov 2026 by the kernel.org CNA
NicknameNFS2ROOT (OpenSec)
ComponentLinux kernel NFS server (nfsd), NFSv4.1 session handling, nfsd4_sequence() in fs/nfsd/nfs4state.c
Bug classHeap out-of-bounds write (CWE-787) into a reply cache slot of length zero
AttackerRemote, no authentication, one TCP connection to port 2049
ImpactKernel crash at the least. kernel.org, Debian and Proxmox describe remote code execution as root, Red Hat says crash or potentially code execution
IntroducedLinux 3.16, by a commit from 2014
Fixed upstream5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Scoreskernel.org 9.8 (CVSS 3.1), SUSE 9.8, Red Hat 9.4, Amazon 9.4, Ubuntu 9.3 (CVSS 4.0). NVD has not scored it yet
In the wildNot reported as of 4 Dec 2026. Not in CISA KEV
CreditFix authored by Jérémy Jean (ANSSI), tested by Mayank Jangid (OpenSec), who reported it independently

Which systems are exposed?

A system is exposed when four things are true at the same time: a kernel without the fix, the in-kernel NFS server running, NFSv4.1 or 4.2 enabled, and port 2049 reachable for the attacker. NFS clients are not affected. A user-space NFS server such as NFS-Ganesha is a different code base.

Four conditions, all needed
Kernelwithout the fixnfsd runskernel NFS serverNFSv4.1 / 4.2enabledPort 2049reachableOverflowin the kernelnfsd runskernel NFS serverNFSv4.1 / 4.2enabledPort 2049reachableOverflowin the kernelKernel update + reboot
  1. Step 1/6A kernel without the fix. Any kernel from 3.16 on without the backport. Distribution kernels need the distribution package, the upstream number says little.
  2. Step 2/6The kernel NFS server runs. The module nfsd is loaded and the service is active. Most distributions do not start it by default.
  3. Step 3/6NFSv4.1 or 4.2 is enabled. That is the default as soon as the NFS server is on.
  4. Step 4/6Port 2049 is reachable for the attacker: from the internet, from the office network, from a compromised client, from a neighbouring container host.
  5. Step 5/6Then one connection is enough. No account, no export permission. The export list is checked later than the faulty code.
  6. Step 6/6The fix removes the first condition. Update the kernel and reboot. Until then, the firewall on port 2049 removes the fourth for everyone you do not trust.

Where the kernel NFS server typically runs:

  • File servers and home directory servers in offices, labs and universities.
  • Virtualisation and backup hosts that export storage to each other. Proxmox published its own advisory.
  • Kubernetes storage nodes and hosts that provide NFS volumes to a cluster.
  • Build and CI infrastructure that shares caches and artefacts.
  • NAS appliances and embedded Linux devices that share a directory over NFS: storage boxes, machine controllers and development boards that export their file system for debugging. For these, no vendor statement was available when we wrote this. The rule is generic: a kernel from 3.16 on without the backport that runs nfsd with version 4.1 or 4.2 has the bug. Older vendor kernels can have it too, as Red Hat’s fix for the 3.10-based RHEL 7 kernel shows.

Two common assumptions do not hold:

  • “We restrict clients in /etc/exports.” The export list is evaluated when a client wants to mount. The flaw sits in the session handling before that.
  • “It is only reachable internally.” That lowers the risk and does not remove it. An NFS server is the classic second step after a first foothold: one compromised workstation in the same network is “internal”.

How does NFS2ROOT work?

The server copies a reply into a cache slot that the client was allowed to negotiate down to length zero, because a failed step is mistaken for success. The fix commit describes the chain precisely. It needs three pieces of background.

Sessions and the reply cache. Since NFSv4.1 every client works inside a session. Each request starts with a SEQUENCE operation that names a slot and a sequence number. The server keeps the last reply of every slot, so that a request which is sent again after a network hiccup is answered from the cache and not executed twice. The client proposes how large a cached reply may be when it creates the session.

The minimum is zero. A client may negotiate that size down to the minimum the server accepts. The server then allocates slots whose cache area, sl_data[], has length zero. That is legal and intended: such a client simply does not want replies cached.

The ordering from 2014. When a request arrives, the server narrows its reply buffer to the negotiated cache size before it has accepted the slot. This is the ordering the 2014 commit introduced.

From a session to an overflow in the kernel
Clientno loginnfsdkernel NFS serverReply cacheone slot per requestCREATE_SESSIONcached reply size: minimumslot allocatedsl_data[] has length 0COMPOUND: SEQUENCE ...tag fills the narrowed bufferresult not encodedstatus still reads okstore replywhole reply, from offset 0fix: check size firstbefore the slot is accepted
  1. Step 1/6The client creates a session and negotiates the size of cached replies down to the minimum. No login is involved at this point.
  2. Step 2/6The server allocates the slots. Their cache area has length zero. So far everything is as the protocol allows.
  3. Step 3/6The client sends a compound request. It starts with SEQUENCE and carries a tag, a free text field the client chooses. The tag is sized so that it fills the narrowed reply buffer.
  4. Step 4/6The reply does not fit. The buffer has room for the name of the SEQUENCE operation but not for its status. The encoder returns early, and the status still reads "ok". The failed step looks like a success.
  5. Step 5/6The server stores the reply in the cache. Because the encoding never ran, the copy starts at offset zero and takes the whole reply, headers and tag included, into a slot of length zero.
  6. Step 6/6The fix checks first. Before the buffer is narrowed and the slot accepted, the server now verifies that the SEQUENCE result fits the negotiated size. If not, it rejects the request and leaves slot and cache untouched.

Normally the server refuses to cache a lone failed SEQUENCE. That safeguard reads the reported status, and the reported status was “ok”. So one missed error code turns a legal, if unusual, session into a write past the end of a kernel object.

What lands in kernel memory
KERNEL HEAP (ONE CELL IS ABOUT FIVE BYTES)session slotcache area: 0 bytesneighbouring kernel objectbelongs to something elseend of the slotreply is copied to hereclient-chosen bytes (tag)
  1. Step 1/4The slot is a small object on the kernel heap. Its cache area sits at the end and has length zero.
  2. Step 2/4Behind it lies whatever the kernel allocated next: another slot, or an unrelated object of the same size class.
  3. Step 3/4The copy writes the cached reply to the end of the slot. With length zero, every byte of it lands in the neighbour.
  4. Step 4/4Part of those bytes is the tag, which the client chose. The kernel sanitizer report in the fix commit shows an out-of-bounds write of 80 bytes. OpenSec counts 61 bytes past the object, 40 of them chosen by the client.

A write of this kind into kernel memory is a crash at the least. OpenSec states that it built a chain from it to a command running as root, including a way around kernel address randomisation, and shows a video. The exploit is not public. The independent evidence is the upstream fix with its sanitizer report and the ratings of the vendors, which range from “crash or potentially code execution” (Red Hat) to “execute arbitrary code as root” (Proxmox). For planning, the difference does not matter: a remotely crashable file server is already an outage.

What the patch changed

The fix moves a check to the front. Eighteen lines in fs/nfsd/nfs4state.c: before the reply buffer is narrowed and the slot’s sequence number consumed, the server computes how large the SEQUENCE result will be and rejects the request if that does not fit the negotiated size. Slot and cache stay as they were, which is what RFC 8881 requires for this case. A second commit makes the encoder report an error when the header of an operation cannot be written. Its message calls it “a guard rather than a fix”.

One detail for the record: the upstream fix carries a tag that names an AI coding tool as assistance, and the reporting company found the bug with an AI analysis tool. Like the 2Shell series, this is twelve-year-old code read again with new tools.

How to identify NFS2ROOT

Four commands answer the question on one host. All four conditions must be true for the host to be exposed.

# 1. Which kernel is running? (the running one, not the installed one)
uname -r

# 2. Is the kernel NFS server loaded?
lsmod | grep -w nfsd

# 3. Which NFS versions does it offer? Look for +4.1 or +4.2
cat /proc/fs/nfsd/versions

# 4. Does it listen on an address other than loopback?
ss -ltn 'sport = :2049'

If command 2 prints nothing, the NFS server is not loaded and the host is not exposed, whatever the kernel version.

Compare with the distribution package, not the upstream number

Distributions backport the fix into their own kernel versions. Status as published by the vendors (Ubuntu: page of 1 December, the others between 26 November and 2 December 2026):

DistributionFixed kernel
Debian 13 (trixie)6.12.117-1
Debian 12 (bookworm)6.1.192-3 from the security suite (DLA-4942-1)
RHEL 106.12.0-264.22.1.el10_3 (RHSA-2026:105695)
RHEL 95.14.0-741.29.1.el9_9 (RHSA-2026:105696)
RHEL 8.104.18.0-553.190.1.el8_10 (RHSA-2026:103817)
RHEL 7 (ELS)3.10.0-1160.172.1.el7 (RHSA-2026:107000)
SUSE SLE 15 SP7kernel-default 6.4.0-150700.53.97.1 or later; other products partly still in progress
Amazon Linux 2 and 2023fixed on 27 Nov 2026 (ALAS2-2026-4166, ALAS2023-2026-3540)
Proxmox VEproxmox-kernel 7.0.14-30-pve and 7.3.3-1-pve
Ubuntuall supported releases listed as vulnerable on 1 Dec 2026, fixes in progress: check the Ubuntu CVE page

On Red Hat systems dnf updateinfo list --cve CVE-2026-99362 shows whether the erratum is still open. RHEL 6 is not affected. Extended-support streams have their own errata, listed on the Red Hat CVE page.

Find the NFS servers you did not know about

On a network you are responsible for, a scan for TCP port 2049 finds every NFS server faster than asking around. Expect surprises: a NAS in a department, a lab machine, a build host. For embedded products you make yourself, check the kernel configuration and the start scripts of the image: is nfsd built and started, and was that meant for production or left over from development?

Look for traces

There is no network signature, because the traffic is valid NFS. OpenSec names these signs on the server:

  • Kernel warnings from nfsd4_check_resp_size, which according to OpenSec appear on every attempt, successful or not. Search journalctl -k and dmesg.
  • Kernel oops reports with nfsd4_ or svc_ functions in the trace, and unexplained reboots of a file server.
  • Shells or other processes started by kernel worker threads on a machine that only serves files.
  • Bursts of very short NFSv4.1 sessions from one source.

If the server was reachable from untrusted networks, look back to 19 November 2026, the day of publication.

What to do

Update the kernel and reboot. Everything else is a stopgap until the maintenance window.

  1. Install the fixed kernel of your distribution and reboot into it. Verify with uname -r. An installed kernel that is not running protects nothing.
  2. Order by exposure: NFS servers reachable from the internet or from guest and client networks first, then servers in flat internal networks, then storage that only specific hosts can reach.
  3. Appliances and products: ask the vendor of NAS systems and storage appliances for the firmware that contains the fix, and name the CVE.

Stopgaps until the reboot

  • Limit who can reach port 2049. This is the most effective interim measure, and a good idea permanently. Allow only the addresses of your real NFS clients, on the host firewall and on the network. Red Hat, SUSE and OpenSec all recommend it.
  • Disable NFSv4.1 and 4.2 if your clients can live with 4.0 or v3 (described by Red Hat and OpenSec):
# /etc/nfs.conf
[nfsd]
vers4.1=n
vers4.2=n
systemctl restart nfs-server
cat /proc/fs/nfsd/versions    # must no longer show +4.1 or +4.2

Side effects: the restart interrupts clients, mounts pinned to 4.1 or 4.2 fail, and pNFS and server-side copy are gone.

  • Stop the NFS server where nobody needs it: systemctl disable --now nfs-server. On many of the surprises from the scan, this is the right fix.

What does not help: export restrictions, and settings aimed at local attackers such as limits on user namespaces. OpenSec adds that kernel hardening “does not remove the overflow”. For live patching, ask your vendor whether a live patch for this CVE exists. We found no confirmed one.

Hardening that limits the damage

NFS belongs in a storage network, not in the network where laptops and printers live. Put file servers behind a firewall that knows the clients by address, keep NFS off any interface that faces the internet, and prefer Kerberos-secured mounts where the environment supports them. None of that would have removed this bug, but each of it decides how many machines can send the first packet.

What it means for a penetration test

In an internal penetration test, an open port 2049 is one of the first things we look at, and it was already before this CVE: exports readable by everyone, home directories without root squashing, backups on a share. NFS2ROOT adds a reason to ask the plainer question first. Which machines in this network can talk to the file server at all, and why?

In a network penetration test we map that reach from the position of an ordinary workstation, check kernel and service versions of the storage systems, and show what an attacker who controls the file server would get: usually every project directory and backup at once. We do not crash production file servers to prove a version number. For products with embedded Linux, the same check is part of the review of the firmware image: which services does the device start, and which of them did nobody intend to ship.

The fix is a kernel update and a reboot. How long it takes you to say where an NFS server runs is the real finding, and that is what a vulnerability management process is for.

FAQ

Frequently asked questions

Is every Linux system affected by NFS2ROOT?

No. The flaw is in the NFS server inside the kernel. A system is exposed only if that server is running, NFS version 4.1 or 4.2 is enabled and TCP port 2049 is reachable for the attacker. NFS clients are not affected, and most distributions do not run the NFS server by default. Systems that are file servers, storage nodes or NAS appliances are the ones to check.

Do the client restrictions in /etc/exports protect me?

No. The export list decides who may mount what. The flaw is in the session handling that runs before those checks, so a client that is not allowed to mount anything can still reach it. What helps is a firewall rule that limits who can connect to port 2049 at all.

Is NFS2ROOT exploited in the wild?

As of 4 December 2026 no exploitation has been reported, and the CVE is not in the CISA KEV catalogue. The researchers at OpenSec say they have a working exploit and keep it private. Repositories that claim to contain proof-of-concept code exist; we have not verified them.

Is a reboot required?

Yes, unless your vendor provides a live patch for this CVE. The fix is in the kernel. Installing the package is not enough: the old kernel keeps running until the system boots into the new one. Check with uname -r after the reboot.

Can I just switch off NFSv4.1 and 4.2?

As a stopgap, yes. Red Hat and OpenSec describe disabling both minor versions in /etc/nfs.conf. Clients then fall back to NFSv4.0 or v3, mounts that are pinned to 4.1 or 4.2 fail, and features such as pNFS and server-side copy are gone. The restart of the NFS server interrupts clients. It does not replace the kernel update.

Sources

Related pages

Get started

Talk to a security expert this week

Tell us what you are building or running. In 15 minutes you will know whether and how we can help.

  • You speak with a security engineer, not a sales rep
  • A concrete next step after the first call
  • Free and without obligation, NDA on request
Tom Zaubermann

Your call is withTom ZaubermannFounder & CEO, Zyberum

Call us: +49 176 439 17074info@zyberum.com

Or send us a message

We reply within one business day.

No sales offers, please. We are not hiring at the moment.

Call usBook a 15-min call

Pick a time that suits you

Open in a new tab