
NFS2Root vulnerability exposes Linux file servers to unauthenticated remote root access
Security researchers at OpenSec have disclosed a critical vulnerability, tracked as CVE-2026-99362, in the Linux kernel's NFS server daemon (nfsd) that allows an unauthenticated attacker on the network to gain full root access on affected hosts. The flaw, rated a maximum severity of 9.8, is a pre-authentication heap overflow affecting any Linux system serving NFSv4.1 or 4.2 — the default protocol versions — on a reachable TCP port 2049. According to OpenSec, a single TCP connection can write 61 bytes past a kernel heap object when a SEQUENCE reply is copied into a zero-length per-slot reply cache, and chained exploitation steps ultimately yield a root shell.
The bug has a remarkably long history: a 2014 commit that narrowed the reply buffer while handling SEQUENCE operations introduced the defect into Linux 3.16, meaning every kernel since, including LTS, distribution, and appliance kernels, has carried it for twelve years. Exploitation unfolds through a five-stage chain of ordinary NFS requests: corrupting a neighboring slot's bookkeeping, leaking 3.8 KB of kernel heap (including the KASLR slide), freeing a chosen kernel object via a forged pointer, reclaiming the memory with a fake callback, and finally triggering the kernel to execute a root shell. Notably, OpenSec reports that its AI-powered “Antara” white-box harness discovered, scored, and developed the full exploit end to end with no human involvement, while researcher Jérémy Jean of France's ANSSI independently found the bug and authored the upstream fix. Disclosure to kernel maintainers and security@kernel.org took place on 22 September 2026, with the CVE and fixes published on 20 November.
Patched versions are available in Linux 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1, and administrators are urged to update their kernels and reboot as soon as possible; distribution users should install updates referencing CVE-2026-99362. Until systems are patched, OpenSec advises firewalling TCP port 2049, warning that the port commonly sits open on file servers, NAS appliances, build farms, and Kubernetes storage nodes. The researchers also caution that kernel hardening does not mitigate the overflow itself; patching every host is the only reliable defense.




Comments
"nfsd" (NFS deamon) is not installed on most Linux distros, so for most people it's not an issue, except for cloud infrastructures or NAS devices where users are already expected to follow best security practices (like using a firewall to limit some ports to only trusted clients). Still, yet another nasty vulnerability.