Plenty of Linux file servers run with one quiet assumption: if NFS sits on the internal storage network, it is safe enough. A newly disclosed kernel bug breaks that assumption. Tracked as CVE-2026-99362 and branded "NFS2ROOT" by the security firm OpenSec, it is a heap overflow in nfsd, the NFS server built into the Linux kernel. A remote client can trigger it before logging in, with no credentials and no user interaction. OpenSec says it leads to root on the server.

The Linux kernel's CVE Numbering Authority (CNA) scored the flaw 9.8 out of 10 (Critical). The code at fault has been in the kernel for about twelve years. Fixes are now out across the supported stable branches, and the job for administrators is simple to state: patch, reboot, and stop letting arbitrary hosts reach TCP port 2049.

What went wrong, in plain English

NFS version 4.1 added "sessions." When a client connects, it goes through a short handshake: EXCHANGE_ID to introduce itself, CREATE_SESSION to set up a session, then SEQUENCE operations that tag each request with a numbered "slot." The server keeps a cached copy of its reply for each slot, so it can resend the same answer if the client retries a request. That reply cache gives NFSv4.1 its "exactly once" behavior.

The client gets to help decide how big that cached reply can be. According to the kernel's own description of the fix, which the NVD record quotes, a client can negotiate the cached-reply size down to a minimum. The server then gives every slot a zero-length buffer. Later, the server copies a reply into that buffer anyway and writes past its end. Kernel memory-safety tooling (KASAN) flags this as an 80-byte slab out-of-bounds write. The fix is titled "nfsd: preflight SEQUENCE replies before accepting a slot." In other words, the server now checks that a reply will fit before it commits to the slot.

The CNA's scoring notes explain why the bug is pre-authentication. The EXCHANGE_ID, CREATE_SESSION and SEQUENCE steps are all allowed without a file handle, which means a client can run them before it has proven it may touch any export. The CVE record says the write can, at the least, oops (crash) the nfsd thread and can panic the whole host. OpenSec, as relayed by Security Affairs, goes further and says the memory corruption can be chained into a root shell, and that its researchers demonstrated it. That is where the NFS2ROOT name comes from.

Twelve years in the kernel

The NVD entry traces the bug to kernel commit 47ee52986472. Security Affairs reports that the commit landed in March 2014 and first shipped in Linux 3.16. The CVE record agrees: kernels older than 3.16 are listed as unaffected, and everything from 3.16 until the fix is in scope. That spans more than a decade of enterprise distributions, appliances and NAS firmware built on Linux.

The flaw was found twice. Security Affairs reports that Jérémy Jean of ANSSI, France's national cybersecurity agency, found it and submitted a fix on Aug. 17, 2026. OpenSec says it found the same bug independently on Sept. 21 and sent maintainers a patch the next day. The CVE record was published Nov. 19, and Security Affairs dates the public CVE and fixes to Nov. 20. On Nov. 28, a summary of OpenSec's advisory was posted to the oss-security mailing list, the same day the NVD and CVE records were last updated.

OpenSec says it is not aware of any exploitation in the wild, and none of the sources report attacks. Even so, the bug now has a name, a public fix, and a fix diff that shows where the problem is. Defenders should expect the gap between "no known exploitation" and "being exploited" to shrink.

Who is actually exposed?

According to OpenSec, as reported by Security Affairs, all four of these conditions must be true:

  • The host runs a vulnerable kernel (3.16 or later, without the fix).
  • The in-kernel NFS server (nfsd) is running. A machine that only mounts NFS shares as a client is not what this bug targets.
  • NFSv4.1 or NFSv4.2 is enabled, which is the default.
  • An attacker can reach the server on TCP port 2049.

That last condition is where many teams will underestimate the risk. Security Affairs stresses that the server does not need to be exposed to the internet: an attacker inside the network who can reach the service is enough. That could be a compromised workstation, a malicious insider, or a foothold left by a phishing campaign. File servers often sit on flat networks next to user subnets, and because a server's shares are only mountable by approved clients, it is easy to forget that the NFS port itself still answers anyone who connects. The vulnerable handshake runs before any of those export checks happen.

The worst case matters as much as the exposure. Root on the box that stores your home directories, build artifacts, VM images or backups is a very good position from which to steal data, plant code or deploy ransomware. Even the "lesser" outcome the CNA describes, a kernel panic, means anyone who can reach the port can take a shared storage server offline.

What It Means for Defenders

1. Find your NFS servers. Make a list of every Linux host that runs the kernel NFS server, including appliances and NAS devices built on Linux, not just general-purpose servers. Check whether port 2049 is listening and which networks can reach it.

2. Patch the kernel and reboot. This is a kernel bug, so updating packages does nothing until the machine boots the new kernel. The CVE record lists these fixed upstream versions:

  • 5.10.275
  • 5.15.226
  • 6.1.193
  • 6.6.163
  • 6.12.117
  • 6.18.61
  • 7.3.2
  • 7.4-rc1

The oss-security post and Security Affairs name 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1 as the headline fixes. Most organizations run distribution kernels, not upstream ones, and Security Affairs notes that vendors can backport the fix without using those version numbers. Don't judge exposure by version number alone. Look for CVE-2026-99362 in your vendor's kernel changelog or security notice. The oss-security post says Debian has updates for all supported releases, according to its Security Tracker.

3. If you can't reboot yet, narrow who can reach port 2049. Security Affairs lists three interim mitigations:

  • Restrict TCP 2049 to trusted storage subnets and known client hosts at the host firewall and the network edge. Apply the same restriction to IPv6 separately. A firewall policy written only for IPv4 can leave the IPv6 path wide open.
  • Disable NFSv4.1 and 4.2 using the vers4.1 and vers4.2 settings in the [nfsd] section of /etc/nfs.conf, then restart the NFS service. Test first: Security Affairs notes this also disables pNFS and some NFSv4.2 features, so clients that rely on them will be affected.
  • Turn off the NFS server entirely on machines that don't need it. Leftover NFS services on build boxes and lab servers are a common blind spot.

These measures reduce exposure but do not fix the underlying vulnerability.

4. Watch for signs of trouble. Per OpenSec, the attack uses legitimate NFS traffic, so traditional network detection may not recognize it. Security Affairs suggests checking kernel logs for nfsd4_check_resp_size warnings and for unexpected crashes in nfsd4_* or svc_* functions. Unexplained nfsd oopses or host panics on a file server deserve a closer look as possible exploitation attempts, especially on a server that still runs an unpatched kernel.

5. Mind the compliance angle. For federal contractors working through CMMC, a critical, remotely reachable kernel flaw on a server that may hold Controlled Unclassified Information falls squarely under flaw remediation and boundary protection requirements. Record the patch dates, the interim network restrictions, and any servers you decided to take off NFS.

The bottom line

NFS2ROOT needs network access to port 2049, so it is not a bug that threatens every server on the internet, and OpenSec is not aware of attacks. But it hits a service that organizations routinely trust because it lives "inside," and it fires before authentication, in code that has shipped since 2014. Treat any Linux NFS server that untrusted hosts can reach as a priority: patch, reboot, and while you're at it, ask why so many machines can reach port 2049 in the first place.

Sources