SUN 29 NOV 2026
Home / Vulnerabilities

NFS2ROOT: Critical Linux Kernel Flaw Allows Unauthenticated Attackers to Gain Root Remotely

A 12-year-old Linux kernel vulnerability allows unauthenticated attackers to exploit NFS servers and execute commands with root privileges.

AC By
29 Nov 2026, 11:34 · 4 min read
A critical Linux kernel vulnerability dubbed NFS2ROOT allows unauthenticated attackers to gain remote root access
A critical Linux kernel vulnerability dubbed NFS2ROOT allows unauthenticated attackers to gain remote root access…

A critical Linux kernel vulnerability dubbed NFS2ROOT allows unauthenticated attackers to gain remote root access on vulnerable systems running the kernel’s NFS server. Tracked as CVE-2026-99362 and carrying a CVSS score of 9.8, the flaw has existed since 2014 and can be exploited without credentials or user interaction.

According to a \[\[report|1\]\] published by OpenSec, successful exploitation requires a vulnerable Linux kernel, an active in-kernel NFS server (nfsd), NFSv4.1 or NFSv4.2 enabled, and network access to TCP port 2049.

Although internet exposure is not necessary, systems accessible from internal networks remain at risk. Potentially affected infrastructure includes file servers, storage appliances, build systems and Kubernetes storage nodes.

How the NFS2ROOT vulnerability works

The vulnerability originates in how the Linux kernel handles NFS reply caching before client authentication.

NFSv4.1 allows clients to configure the size of the cache used to store server replies. An attacker can manipulate this setting to reduce the cache to zero bytes before sending a specially crafted request.

The server subsequently attempts to copy an 80-byte response into the empty buffer, triggering a heap-based buffer overflow. The operation writes 61 bytes beyond the allocated memory, including 40 bytes controlled by the attacker.

“The NFS server runs inside the kernel and parses network input before it knows who you are. CVE-2026-99362 lives in that gap: a client can shrink its reply cache to zero bytes, then make the server copy a full reply into it. The copy lands on the kernel heap, and the client picks most of the bytes.” reads the report published by OpenSEC.

OpenSec demonstrated that attackers can exploit the memory corruption through a sequence of legitimate NFS requests. The technique allows them to read 3.8 KB of data, bypass address randomization and place a command into reused memory.

When the NFS connection closes, the kernel executes the planted command with root privileges. OpenSec successfully demonstrated the technique and obtained root access before shutting down its test server.

Discovery, affected versions and security fixes

The vulnerability was introduced through Linux kernel commit 47ee52986472 in March 2014 and first appeared in Linux 3.16. It subsequently persisted in later Linux distribution kernels and storage appliance software.

Jérémy Jean of France’s cybersecurity agency, ANSSI, discovered the vulnerability and submitted a fix on August 17, 2026.

OpenSec independently identified the issue through its Antara system on September 21. The system reportedly detected, assessed and developed an exploit without human intervention. The company submitted its findings and a patch to maintainers and the Linux security team the following day.

The fixes were incorporated through commits 5d5a72e965c8 and 241848cc774e, which introduce checks to prevent replies from exceeding available buffer capacity. The vulnerability and fixes were publicly disclosed on November 20.

The NFS server is maintained by Chuck Lever and Jeff Layton.

OpenSec says it has no evidence of NFS2ROOT exploitation in the wild.

Mitigation and detection recommendations

Administrators should upgrade affected systems to Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1, as appropriate, and reboot after installation.

For distribution-specific kernels, administrators should install updates explicitly addressing CVE-2026-99362. Linux vendors may backport the security fix without adopting the upstream version numbers.

Where immediate patching is not possible, organisations should restrict TCP port 2049 to trusted storage networks and block connections from other sources. IPv6 access must also be restricted separately because IPv4 firewall rules do not cover it.

Another temporary mitigation is disabling NFSv4.1 and NFSv4.2 through the vers4.1=n and vers4.2=n settings under the \[nfsd\] section of /etc/nfs.conf, followed by restarting the nfs-server service. However, this disables pNFS and certain NFSv4.2 capabilities. Systems that do not require NFS can instead stop and disable the service entirely.

Monitoring is equally important. OpenSec warns that the exploit uses legitimate NFS traffic, potentially making it difficult for conventional network detection systems to identify.

Administrators should investigate nfsd4_check_resp_size warnings, unexpected crashes involving nfsd4_\*, svc_\* or call_usermodehelper\* functions, shells launched by kernel worker processes, and repeated short NFSv4.1 sessions originating from the same IP address.

“Kernel hardening does not remove the overflow. Patch every host.” concludes the report.

Organisations running Linux NFS infrastructure should identify affected hosts, prioritise security updates, restrict access to port 2049 and investigate suspicious NFS activity. Temporary mitigations reduce exposure but do not eliminate the underlying vulnerability.

AC

Covers zero-days, CVEs, security advisories and software patches. Alex reports on newly discovered vulnerabilities, actively exploited flaws and security updates, explaining their potential impact on affected systems.

Related stories