Remote root access via NFS
The NFS2ROOT flaw allows remote attackers to gain root privileges through a 12-year-old heap buffer overflow in the Linux kernel’s Network File System (NFS) server. This vulnerability, tracked as CVE-2026-99362, has existed since the release of Linux kernel version 3.16 in March 2014. Jeremy Jean from ANSSI discovered the flaw and submitted a fix in August, while OpenSec dubbed the issue NFS2ROOT and shared a full remote-root exploit and a patch with the NFSD maintainers in late September. Vulnerable systems include any Linux kernel older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 if nfsd version 4.1 or 4.2 is running and TCP port 2049 is reachable over the internet. Successful exploitation lets remote threat actors without privileges corrupt kernel memory and gain root access to vulnerable Linux servers via low-complexity attacks that do not require user interaction.
Threat actors exploit this flaw by sending maliciously crafted requests that cause the NFS server to write data beyond an allocated memory buffer. This allows them to read kernel memory, bypass KASLR, and place a callback that can execute a command in a released memory area. When the attacker closes the NFS connection, the kernel executes the embedded command with root privileges.
| Vulnerability Detail | Specification |
|---|---|
| CVE Identifier | CVE-2026-99362 |
| Affected Protocol | nfsd (v4.1 or 4.2) |
| Target Port | TCP 2049 |
| Origin Date | March 2014 (Kernel 3.16) |
Mitigation and detection requirements
Admins must apply the latest kernel security updates from their Linux distribution vendor immediately and reboot the system to ensure the patched kernel is in use. The NFS2ROOT flaw is a critical threat that requires immediate patching to prevent remote root access. Admins who cannot apply a patch immediately should restrict access to the NFS server over TCP port 2049 to trusted clients or networks. If NFS sharing is not required, admins can stop and disable the nfs-server service in /etc/nfs.conf. OpenSec warned that "Port 2049 sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes" and stated that "Kernel hardening does not remove the overflow. Patch every host."
OpenSec reports that security teams can monitor for signs of exploitation through kernel warnings from nfsd4_check_respsize, shells spawned by kernel workers, or kernel oopses with nfsd4, svc_, or call_usermodehelper* frames. This issue follows a series of Linux privilege escalation flaws disclosed this year, including RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot, and DirtyDecrypt/DirtyCBC.
| Detection Method | Signature |
|---|---|
| Kernel Warnings | nfsd4_check_resp_size |
| Kernel Oops Frames | nfsd4*, svc, or call_usermodehelper |
| Session Activity | Bursts of short NFSv4.1 sessions |
