A critical security vulnerability in the Linux kernel’s Network File System (NFS) server has been identified, allowing unauthenticated remote attackers to gain root access to affected systems. Tracked as CVE-2026-99362 and carrying a CVSS severity score of 9.8, the flaw has been dubbed NFS2ROOT. The vulnerability has existed in the Linux kernel for over a decade, originating in March 2014 with commit 47ee52986472 and appearing in version 3.16.
The flaw resides in the kernel-based NFS server (nfsd) and affects systems with NFSv4.1 or NFSv4.2 enabled, which are default configurations in many environments. Exploitation is possible if an attacker has network access to TCP port 2049, a common port for file servers, storage appliances, build systems, and Kubernetes storage nodes. While the vulnerability is reachable over the internet if the port is exposed, it can also be exploited by an attacker who has already gained a foothold within an internal network.
The mechanism of the attack involves a heap overflow triggered before the NFS server performs any authentication. By manipulating the reply cache size—a feature of NFSv4.1—an attacker can force the kernel to copy a reply into an undersized buffer. Specifically, by setting the cache size to zero, an attacker can trigger a write of 61 bytes beyond the allocated memory, 40 bytes of which are under the attacker’s direct control. By sending a specific sequence of legitimate NFS requests, an attacker can corrupt memory, bypass address space layout randomization, and execute arbitrary commands with root privileges once the connection is closed.
The vulnerability was discovered independently by two parties. Jérémy Jean of the French cybersecurity agency ANSSI identified the issue and submitted a fix on August 17, 2026. Simultaneously, the security firm OpenSec identified the flaw using its Antara automated analysis system, which successfully generated an exploit proof-of-concept. Both the exploit and the patch were provided to Linux maintainers and the security team in late September.
Official patches were released on November 20, 2026, by NFS maintainers Chuck Lever and Jeff Layton. Users are urged to upgrade to Linux kernel versions 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1. Because many Linux distributions backport security fixes, administrators should verify if their specific distribution has released an updated kernel package addressing CVE-2026-99362, regardless of the version number.
While there are currently no confirmed reports of this vulnerability being exploited in the wild, the potential for remote root compromise necessitates immediate patching. As a temporary mitigation, administrators can restrict access to TCP port 2049 to trusted subnets using firewall rules. Alternatively, disabling NFSv4.1 and NFSv4.2 by modifying the /etc/nfs.conf file can reduce the attack surface, though this will disable features such as pNFS.
Detecting exploitation attempts can be difficult because the attack utilizes legitimate NFS traffic patterns. However, administrators are advised to monitor system logs for nfsd4_check_resp_size warnings, which are generated during exploitation attempts. Other indicators of compromise include unexpected system crashes involving nfsd4, svc, or call_usermodehelper functions, as well as unusual bursts of NFSv4.1 sessions originating from a single IP address. Experts emphasize that these monitoring steps and mitigations are secondary to applying the official kernel patches, which remain the only way to resolve the underlying memory overflow vulnerability.



