OpenSec disclosed on Wednesday (November 25) NFS2ROOT, a critical flaw rated 9.8 in the NFS server built into the Linux kernel (nfsd). Tracked as CVE-2026-99362, it lets a remote attacker gain root with no authentication at all: a single TCP connection to port 2049 on an exposed server is enough.
The NFS server runs inside the kernel and parses network input before it knows who is on the other end — and the flaw lives exactly in that gap. The client shrinks its session reply cache to zero bytes, then makes the server copy the full reply into that buffer with no room for it. The copy lands on the kernel heap: 80 bytes copied, 61 of them past the end of the object and 40 chosen by the attacker.
From the overflow, the exploit chain uses only ordinary NFS requests: the attack leaks 3.8 KB of kernel memory and reveals the KASLR base address, forges the freeing of a chosen object, fills the memory with a fake callback built from NFS client names, and, on disconnect, makes nfsd call that callback — and the kernel runs /bin/sh as root. OpenSec demonstrated the full attack on video, but did not release the exploit.
Twelve years hidden in the kernel
The flaw was born in a commit from March 2014, which shipped in Linux 3.16 and stayed in every kernel since — LTS, distribution and appliance kernels. In other words, for 12 years any Linux host serving NFSv4.1 or 4.2 with port 2049 reachable was exposed, including file servers, NAS appliances, build farms and Kubernetes storage nodes. According to Red Hat, default RHEL installs do not run the NFS server — but any server with the service enabled needs the fix.
One detail stands out: the flaw was found by an AI system. According to OpenSec, its Antara harness flagged the nfsd reply-cache path, scored it 9.8 and built the full chain to a root shell on its own, with no human in the loop. Researcher Jérémy Jean, of the French agency ANSSI, found the same flaw independently and wrote the fix that went into the kernel. OpenSec reported the issue to the NFSD maintainers and security@kernel.org on September 22, 2026, with the full exploit and a patch; the CVE was published with fixes on November 20.
What to do now
The fix is in kernels 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, plus backports for the LTS series 5.10.275, 5.15.226, 6.1.193 and 6.6.163. On a distribution kernel, install the update that names CVE-2026-99362 and reboot. Anyone who cannot patch today should block port 2049 at the firewall, allowing access only from the trusted storage network — or turn off NFSv4.1 and 4.2, at the cost of losing pNFS and some 4.2 features.
To check whether a host is exposed, OpenSec suggests four checks: the kernel version (uname -r), the nfsd module loaded (lsmod | grep -w nfsd), the NFS versions enabled (cat /proc/fs/nfsd/versions) and listening on port 2049 (ss -ltn 'sport = :2049'). And there is a warning for detection: because the attack uses valid NFS, there is no network signature — the signal is the kernel warnings from nfsd4_check_resp_size, which appear on every attempt, successful or not.
Image: Tux, the Linux mascot, sitting on a computer chip, illustrating the NFS2ROOT flaw story. Credit: Cybernews.
Sources
- OpenSec — NFS2ROOT (CVE-2026-99362): pre-auth root in Linux nfsd (análise original)
- NVD — CVE-2026-99362 (registro oficial, CVSS 9.8)
- Cybernews — NFS2ROOT vulnerability gives hackers root on Linux NFS servers
Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.
By Muse