If your Linux server runs the NFS file-sharing daemon and TCP port 2049 is reachable from the network, this is a stop-and-patch alert. A 12-year-old heap buffer overflow in the Linux kernel’s NFS server, tracked as CVE-2026-99362 and dubbed NFS2ROOT, lets a completely unauthenticated remote attacker gain root privileges on your machine — no credentials, no user interaction, no prior access required. And a working remote-root exploit is already public.
What the vulnerability is. CVE-2026-99362 is a pre-authentication heap buffer overflow in the Linux kernel’s NFS server (nfsd). The flaw was uncovered by ANSSI’s Jérémy Jean, who submitted a fix back in August, and was named and fully weaponized by the security firm OpenSec, which shared the exploit and a patch with the NFS daemon maintainers in late September. It has quietly lived in the kernel since version 3.16, released in March 2014 — a dozen years of the Linux listening daemon being vulnerable out of the box.
How the attack works. The bug is an out-of-bounds write in NFSv4.1 and NFSv4.2 request handling. An attacker sends maliciously crafted NFS requests that make the server write data beyond the end of an allocated kernel memory buffer. That single overflow clubs together enough capability for a full remote compromise:
• Reads kernel memory it shouldn’t be able to touch.
• Bypasses KASLR, the kernel’s address-space layout randomization that normally hides where code lives in memory.
• Plants a callback in a memory region the kernel has released, containing an arbitrary command to run.
When the attacker then closes the NFS connection, the kernel executes that embedded command — with root privileges. That’s it. One reachable port 2049, a handful of crafted packets, and the attacker owns the box. OpenSec described the reality bluntly: since 2014, the Linux kernel listening on port 2049 has let anyone who can reach it “write into kernel memory before logging in.” Kernel hardening does not remove the overflow. You have to patch every host.
What’s affected. Any system running a Linux kernel older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 where the NFS server (nfsd) is loaded for NFSv4.1 or NFSv4.2 and TCP port 2049 is exposed to the network. Attack complexity is low, no privileges are required, and there is zero user interaction — which is exactly why CVSS pegs this at 9.8 Critical. Port 2049 sits open by default on file servers, NAS appliances, build farms, and Kubernetes storage nodes, so the blast radius across enterprise and cloud Linux infrastructure is enormous.
Exploitation status. As of the initial disclosure there were no confirmed reports of CVE-2026-99362 being exploited in the wild. But don’t read that as a free pass — OpenSec demonstrated the full remote-root chain in a lab and released technical details publicly. A pre-auth remote-root bug with a public working exploit and a huge installed base of unpatched NFS servers is precisely the recipe that turns into mass exploitation within days. Treat it as imminent.
What you should do right now.
Patch the kernel — every host, then reboot. Apply the latest kernel security updates from your distribution vendor immediately. The patch is what matters — a reboot after patching is mandatory so the running kernel is actually the fixed one, not just the installed one.
Cut off port 2049 if you can’t patch yet. If a host can’t be updated right away, restrict reachability of the NFS server on TCP port 2049 to only trusted clients or internal networks. Internet-facing NFS is the primary risk — don’t let strangers reach it at all.
Disable NFS entirely if you don’t use it. Plenty of systems ship the NFS server loaded without anyone actually sharing files. If sharing isn’t required, stop and disable the nfs-server service in /etc/nfs.conf. A service that isn’t running can’t be exploited.
Monitor for exploitation attempts. The attacks have no network signatures, but OpenSec notes you can hunt for telltale signs: kernel warnings from nfsd4_check_resp_size, shells spawned by kernel workers on a file server, bursts of short NFSv4.1 sessions all coming from one source, and kernel oopses with nfsd4_*, svc_*, or call_usermodehelper* frames.
Audit your infrastructure. Map every kernel running across your estate and flag any below the fixed versions — especially NAS boxes, storage nodes, and anything with NFS exposed — then patch in priority order.
Bottom line. This isn’t a subtle, exotic bug. It’s a twelve-year-old heap overflow in the Linux NFS server that turns one reachable TCP 2049 into a root shell — pre-authentication, no interaction, and with a public exploit already circulating. NFS is everywhere, and so is the risk. Patch the kernel, reboot, lock down port 2049, and don’t assume your NFS server was never exposed.
Patch now.