Vulnerability mechanics and impact
A 12-year-old heap buffer overflow in the Linux kernel’s Network File System (NFS) server allows remote attackers to gain root privileges. This vulnerability, tracked as CVE-2026-99362 and dubbed NFS2ROOT by OpenSec, affects systems running Linux kernel versions older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1. If the nfsd server is running and TCP port 2049 is reachable, the system is vulnerable. Attackers exploit the weakness by sending malicious requests that cause the server to write data beyond an allocated memory buffer. These low-complexity attacks require no user interaction. Once the attacker closes the connection, the kernel executes an embedded command with root privileges.
Jeremy Jean of ANSSI found the flaw and submitted a fix in August, while OpenSec shared a full remote-root exploit and a patch with the NFSD maintainers in late September. The flaw has existed since the release of Linux kernel version 3.16 in March 2014.
| Spec | Detail |
|---|---|
| CVE Identifier | CVE-2026-99362 |
| Vulnerable NFS | v4.1 or v4.2 |
| Exposed Port | TCP 2049 |
| Kernel Origin | Version 3.16 (March 2014) |
Remediation and detection
Security teams should apply the latest kernel security updates from their Linux distribution vendor and reboot the system to ensure the patched kernel is active. If immediate patching is impossible, administrators can restrict access to the NFS server over TCP port 2049 to trusted clients or networks, or they can stop and disable the nfs-server service in /etc/nfs.conf. OpenSec noted that port 2049 remains open on file servers, NAS appliances, build farms, and Kubernetes storage nodes. "Kernel hardening does not remove the overflow," the firm stated. Because the vulnerability allows anyone who can reach the port to write into kernel memory before logging in, patching every host is the only way to secure these systems.
Security teams can monitor for exploitation attempts by checking for kernel warnings from nfsd4_check_respsize, shells spawned by kernel workers on a file server, bursts of short NFSv4.1 sessions from one source, or kernel oopses with nfsd4, svc_, or call_usermodehelper* frames. No reports exist of CVE-2026-99362 exploitation in the wild. NFS2ROOT follows a long series of Linux privilege escalation flaws disclosed this year, including RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot, and DirtyDecrypt/DirtyCBC.
