Critical NFS2ROOT Flaw Lets Attackers Gain Root Access on Linux Servers
A 12-year-old vulnerability in the Linux kernel's NFS server, CVE-2026-99362 (NFS2ROOT), allows unauthenticated remote attackers to achieve root control over servers running NFSv4.1 or NFSv4.2.

A critical vulnerability dubbed NFS2ROOT, present in the Linux kernel since version 3.16 released in 2014, allows unauthenticated remote attackers to gain complete root control over affected NFS servers. The flaw, tracked as CVE-2026-99362, specifically impacts servers running NFSv4.1 or NFSv4.2 and accessible via TCP port 2049.
Researchers at OpenSec Intelligence demonstrated the severity of NFS2ROOT, assigning it a score of 9.8 out of 10. Their proof-of-concept showed a remote attacker could execute commands with root privileges and even shut down the server. While OpenSec has kept the exploit private, their video demonstration confirmed the potential for remote root execution in a controlled environment. However, there is currently no confirmed evidence of this vulnerability being exploited in the wild.
The vulnerability stems from a heap overflow in the NFS server's reply cache handling. The nfsd service, which runs within the kernel, caches recent replies to speed up subsequent requests. NFS2ROOT occurs when the server incorrectly treats an incomplete reply as successful and attempts to store it in a buffer that is too small. This overflow corrupts adjacent kernel data, leading to the heap overflow.
The fix implemented by the Linux kernel developers involves adding checks to ensure sufficient buffer space is available before storing a reply, reporting an error if the reply cannot fit. This contrasts with vulnerabilities requiring local access; NFS2ROOT is exploitable remotely, significantly increasing its potential impact.
OpenSec Intelligence credits Jérémy Jean of ANSSI for submitting an upstream fix in August 2026. OpenSec's automated research tool, Antara, independently discovered the flaw and developed the exploit. The company reported the vulnerability to kernel security teams and NFS maintainers in September, with the official CVE record published on November 19.
Organizations should check Linux file servers, network-attached storage appliances, build servers, and storage nodes serving NFS shares, particularly those used for Kubernetes workloads. Linux machines acting solely as NFS clients are not vulnerable to this server-side flaw. The vulnerability is distinct from issues related to Kubernetes NFS CSI drivers or other NFS-related vulnerabilities.
To identify if NFSv4.1 or NFSv4.2 is enabled, administrators can use the command cat /proc/fs/nfsd/versions. Checking if the host is listening on TCP port 2049 can be done with ss -ltn 'sport = :2049'. However, a listening port does not indicate accessibility, so firewall rules and cloud security group configurations must be reviewed to restrict access to only necessary internal network segments.
Patched kernel versions include 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1. For distribution-specific kernels or appliances, users should consult vendor advisories for CVE-2026-99362, as vendors may backport fixes to older kernel branches. If immediate patching is not possible, limiting access to TCP port 2049 and disabling NFSv4.1/4.2 are recommended temporary mitigations, though patching remains the definitive solution.