NFS2ROOT (CVE-2026-99362): Critical Linux NFS Server Flaw Lets Unauthenticated Attackers Gain Root

A 12-year-old out-of-bounds write in the Linux kernel's NFSv4.1 server (nfsd) lets anyone who can reach port 2049 corrupt kernel memory and take root; patch to the fixed kernel and reboot.
A critical flaw in the Linux kernel's built-in NFS file server can let an attacker take full root control of a server over the network, without a password. The bug is tracked as CVE-2026-99362 and its finders have nicknamed it NFS2ROOT. It has a CVSS score of 9.8 out of 10. Red Hat rates it 9.4, which is still Critical.
The flaw has been in the kernel for about 12 years, since Linux 3.16 (2014). Patches came out on 19 November 2026. No attacks in the wild have been reported yet, but researchers have already built a working remote-root exploit, so admins should patch now.
What the flaw is
NFS (Network File System) lets computers share folders over a network. Linux has an NFS server built into the kernel, called nfsd. The bug is in how nfsd handles NFSv4.1 sessions (and NFSv4.2, which builds on them).
Each NFSv4.1 session has "slots" that keep a copy of the server's last reply, so a client can safely resend a request. A client can ask the server to keep this cached reply very small, even zero bytes. The researchers found that if a client does this and then sends a specially crafted request, the server copies its full reply into the tiny buffer anyway. That writes past the end of the buffer into kernel memory (an out-of-bounds write on the heap).
The fix, titled "nfsd: preflight SEQUENCE replies before accepting a slot", makes the server check the reply size before it uses the slot.
Why it is so serious
- No login needed. Any client that can reach the NFS port can trigger it.
- No user action needed. Nobody has to click or open anything.
- It runs in the kernel. Corrupting kernel memory can give an attacker complete control of the machine.
- There is a working exploit. The researchers who named the bug say their exploit reads kernel memory, gets around kernel address randomisation (KASLR), and then makes the server run the attacker's command as root when the attacker closes the NFS connection.
The researchers point out that port 2049 is often open on file servers, NAS boxes, build farms and Kubernetes storage nodes, so many machines could be reachable from inside a network.
Who is affected
You are exposed only if all of these are true:
- The machine runs the in-kernel NFS server (nfsd). NFS clients that only mount shares are not affected.
- NFSv4.1 or NFSv4.2 is enabled on that server. On most modern systems it is on by default.
- An attacker can reach TCP port 2049 on it.
- The kernel is version 3.16 or later and has not been patched.
Red Hat notes that a default RHEL install does not run the NFS server, so ordinary desktops and web servers are usually safe. File servers, NAS appliances and storage nodes are the main risk.
Timeline
- August 2026: a researcher at France's national cybersecurity agency (ANSSI) spots the bug and submits a fix upstream.
- 21 September 2026: security firm OpenSec reports it to the kernel NFS maintainers as a security issue, with a full exploit and a patch.
- 19 November 2026: the fix is released in stable kernels and CVE-2026-99362 is published.
- Late November 2026: Linux distributions roll out kernel updates. No exploitation reported so far.
Fixed kernel versions
Upgrade to at least the version shown for your kernel series:
- 5.10: 5.10.275
- 5.15: 5.15.226
- 6.1: 6.1.193
- 6.6: 6.6.163
- 6.12: 6.12.117
- 6.18: 6.18.61
- 7.3: 7.3.2
- Mainline: 7.4-rc1
Distribution status (check your vendor's page for updates):
- Debian: fixed in trixie (6.12.117-1 and later), bookworm security (6.1.192-3), and forky/sid.
- Ubuntu: when last checked, Ubuntu's tracker still listed supported releases (including 24.04 and 26.04 LTS) as vulnerable, with fixes in progress. 14.04 is not affected.
- Red Hat: rated Critical. See Red Hat's CVE page for fixed kernel packages for your RHEL version.
After installing the new kernel, reboot. The old kernel stays in memory until you do.
If you can't patch right away
- Block port 2049 from anything that doesn't need it. Only trusted clients or subnets should be able to reach the NFS server, and it should never be open to the internet.
- Turn off the NFS server on machines that don't need it. On systemd systems:
systemctl stop nfs-serverand thensystemctl disable nfs-server. This drops active NFS connections. - On firewalld systems, Red Hat suggests removing the open NFS service and allowing only trusted sources:
firewall-cmd --permanent --remove-service=nfs, then add a rich rule that allowsnfsonly from your trusted subnet, thenfirewall-cmd --reload. - Turn off NFSv4.1 and 4.2 in the NFS server configuration if your clients can use another version. Test this first, because it can break clients.
How to spot an attack
The researchers say there is no simple network signature, but these signs on a file server are worth checking:
- Kernel warnings that mention
nfsd4_check_resp_size - Kernel crashes (oops) with
nfsd4_,svc_orcall_usermodehelperfunctions in the trace - Shells or commands started by kernel worker threads
- Bursts of short NFSv4.1 sessions from one source address
