Research · 4 min read
NFS2ROOT: a 12-year-old bug in Linux’s NFS server lets anyone who can reach port 2049 get root
OpenSec showed a full pre-login root exploit against the kernel’s NFS server, and ANSSI found the same bug. Fixes are out; there are no reports of attacks yet.

Security firm OpenSec has published details of NFS2ROOT (CVE-2026-99362), a heap overflow in the Linux kernel’s built-in NFS file server (nfsd) that lets a remote attacker with no login take over a server as root. The bug has been in the kernel since Linux 3.16 in 2014. Fixes were published on November 20, 2026, and OpenSec released its write-up on November 25.
Who is exposed
OpenSec lists four conditions. All four have to be true:
- The kernel is older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1, with no distribution backport of the fix.
- The in-kernel NFS server (nfsd) is loaded and running.
- NFSv4.1 or 4.2 is enabled, which is the default.
- TCP port 2049 is reachable from the attacker, whether that is the internet or a network they are already on.
That describes many file servers, NAS appliances, build farms and Kubernetes storage nodes. A normal Linux laptop or desktop that doesn’t share folders over NFS isn’t affected.
What was demonstrated
OpenSec explains the root cause in detail. In NFSv4.1, each session slot keeps a copy of its last reply so a retried request is answered exactly once, and the client decides how big that cache is. An attacker can set it to zero bytes, then pad a request so the server believes it succeeded and copies the whole reply into the empty buffer. In OpenSec’s kernel debugging output, that writes 80 bytes, 61 of them past the end of the buffer, 40 of them chosen by the attacker.
From that overflow, OpenSec says it built a full chain using only ordinary NFS requests:
- Overflow to corrupt a neighbouring slot’s bookkeeping
- Leak about 3.8 KB of kernel memory, revealing the kernel’s memory layout (defeating KASLR)
- Free an object of its choice with a forged pointer
- Reclaim that memory with a fake callback built from NFS client names
- Trigger: when the attacker hangs up, the kernel runs the attacker’s command as root
OpenSec published a recording of the attack powering off a test machine after printing root. The exploit itself has not been released.
What is claimed, and what isn’t known
- AI involvement. OpenSec says its automated analysis tool, Antara, flagged the bug and built the leak, the arbitrary free and the root shell “by itself,” with no human in the loop. That is OpenSec’s description of its own product; the technical root cause stands on its own regardless.
- Independent discovery. Jérémy Jean of France’s cybersecurity agency ANSSI found the same bug independently and sent the upstream fix in August with a memory-checker report. OpenSec reported it with its exploit and a patch on September 22.
- Attacks. There are no reports of exploitation in the wild, BleepingComputer notes. Now that the root cause is public, others may try to rebuild the exploit.
- Detection is hard. The attack is valid NFS traffic, so OpenSec says there is no network signature.
What you can do
If you run Linux servers that share files over NFS:
- Install your distribution’s kernel update that lists CVE-2026-99362, then reboot so the patched kernel is actually running. Check with
uname -r. - Restrict port 2049 to the clients and networks that need it. It should never be open to the internet.
- If you can’t patch yet, and you don’t need NFSv4.1 and 4.2 features, OpenSec suggests turning them off in
/etc/nfs.conf(vers4.1=nandvers4.2=nunder[nfsd]) and restarting the NFS server. If you don’t need NFS at all, stop and disable thenfs-serverservice. - Watch for warning signs OpenSec lists: kernel warnings from
nfsd4_check_resp_size, shells started by kernel workers on a file server, bursts of short NFSv4.1 sessions from one source, and kernel crashes mentioningnfsd4_,svc_orcall_usermodehelper. - Ask your NAS or appliance vendor whether their firmware includes the fix. Appliance kernels often lag behind.
Related coverage
- A Linux bug called NoisyTCP can crash servers. Running code is not shown: another recent Linux kernel network bug, with a much narrower demonstrated impact.
- Amazon: an attacker’s Cairn AI agents found an unknown flaw in medical imaging software: automated tools are now finding and exploiting bugs on both sides.
Sources
- OpenSec, NFS2ROOT (CVE-2026-99362): pre-auth root in Linux nfsd, November 25, 2026
- Linux kernel stable tree, commit 47ee52986472 (2014, where the bug was introduced)
- BleepingComputer, New NFS2ROOT Linux flaw can let attackers gain root privileges, November 27, 2026
More stories
- ResearchUnpatched Cacti flaw: four web requests from a guest session can run commands on the monitoring server · 4 min read
- ResearchProject Zero: flipping one bit in a .NET file got untrusted code past Windows and VirtualBox protections · 4 min read
- ResearchResearchers could apply someone else’s trailer brakes over Bluetooth with no pairing · 3 min read
New posts, by email.
About once a month. Plain-language privacy notes, nothing else. I never share your address.


