
A Linux server running an exposed NFS service could be vulnerable to a remote attack that requires no password, user account, or interaction from an administrator. The vulnerability, tracked as CVE-2026-99362 and nicknamed NFS2ROOT, affects the kernel’s Network File System server and can lead to complete system compromise.
What makes this discovery particularly concerning is its age. The vulnerable code dates back to Linux kernel 3.16, released in 2014. It remained in the kernel for approximately 12 years before researchers demonstrated how the memory corruption could be turned into a root shell.
The Linux kernel CVE team published the security announcement on November 19, 2026, describing a heap out-of-bounds write in the NFS server. Security assessments classify the vulnerability as critical, with a CVSS score of 9.8.
Here is what administrators need to know about the flaw, which systems are exposed, and how to reduce the risk.
What is the NFS2ROOT vulnerability?
NFS2ROOT is a memory-corruption vulnerability in the Linux kernel’s Network File System daemon, commonly called nfsd.
NFS allows computers to access files and directories stored on another machine over a network. It is widely used in Linux environments, including file servers, storage appliances, development infrastructure, and virtualized systems.
Linux can use NFS as either a client or a server. The distinction is important here because CVE-2026-99362 affects the server-side implementation. A machine that only mounts an NFS share from another computer is not automatically exposed to this particular flaw.
The vulnerable component processes NFSv4.1 and NFSv4.2 requests. An attacker who can reach an affected server over TCP port 2049 may be able to trigger the memory corruption without authenticating first.
The original Linux kernel security announcement identifies the affected file as fs/nfsd/nfs4state.c.
How does NFS2ROOT work?
The underlying issue involves how the NFS server handles session slots and cached replies.
NFSv4.1 uses sessions to track requests and their responses. When a client sends a request, the server can store the response in a session slot. This allows it to return a cached response if the client retries the same request, rather than executing the operation again.
Under normal conditions, the server checks the available response space before storing the result. NFS2ROOT exposes a weakness in that process.
A malicious client can negotiate the cached response limit down to its minimum permitted size. This causes the server to create session slots with zero-length response buffers.
The attacker then crafts an NFS request containing a SEQUENCE operation and a carefully sized COMPOUND tag. The tag fills the available response space before the operation’s status word can be encoded.
Because the server does not correctly register this incomplete response as an error, it treats the operation as successful and attempts to cache the full response anyway.
The server consequently copies response data into a buffer that has no space allocated for it. This produces a heap out-of-bounds write inside the kernel.

The upstream security report includes a Kernel Address Sanitizer (KASAN) warning identifying an 80-byte write in read_bytes_from_xdr_buf(). OpenSec’s subsequent analysis says that 61 bytes extended beyond the allocated heap object.
Can NFS2ROOT give an attacker root access?
Yes. Although the initial flaw is a memory-corruption bug, researchers have demonstrated a route from that condition to remote code execution.
OpenSec published a technical analysis on November 25, describing how its Antara research system developed an exploitation chain for CVE-2026-99362.
The reported process involves several stages:
- Memory corruption: The crafted NFS request triggers the heap overflow and corrupts neighbouring kernel data.
- Information disclosure: A subsequent request reportedly exposes kernel heap data, helping the attacker work around Kernel Address Space Layout Randomization (KASLR).
- Memory manipulation: The researchers describe using a forged pointer to release a selected kernel object and reclaim its memory.
- Callback execution: A manipulated callback structure is placed in the reclaimed memory.
- Root access: When the NFS connection closes, the kernel reportedly invokes the manipulated callback, allowing command execution with root privileges.
OpenSec also published a video showing a remote test machine receiving commands that return root and uid=0(root).
There is an important qualification: OpenSec says its complete exploit remains private. The demonstration supports its claim of successful exploitation, but the public article does not provide a reproducible exploit implementation.

Why did the vulnerability remain in Linux for 12 years?
The vulnerable code was introduced through a Linux kernel commit in March 2014:
47ee52986472dba068e8223cbaf1b65d74238781
The change adjusted how the NFS server handled response-buffer limits during session operations. However, an unexpected combination of a negotiated buffer size and an incomplete SEQUENCE response exposed a weakness in the caching logic.
Jérémy Jean of France’s ANSSI submitted an upstream fix on August 17, 2026, alongside a KASAN report identifying the memory-safety issue. OpenSec says its research independently identified the flaw in September and developed the remote-root exploitation chain.
The eventual fix checks whether the SEQUENCE response can fit within the negotiated limit before accepting the session slot. A follow-up change also ensures that an operation whose response header cannot be encoded is correctly marked as failed.
The two changes are available in the upstream Linux fix and its additional encoder safeguard.
Which Linux systems are affected?
The vulnerability concerns systems running an affected version of the Linux kernel with the in-kernel NFS server enabled and NFSv4.1 or NFSv4.2 available to remote clients.
The upstream announcement identifies Linux 3.16 as the release that introduced the vulnerable code. It lists these fixed releases for the corresponding upstream branches:
- Linux 6.12.117
- Linux 6.18.61
- Linux 7.3.2
- Linux 7.4-rc1
These are upstream versions, not a complete list of distribution-specific fixes. Debian, Ubuntu, Red Hat, and other vendors may backport security changes into their own kernel packages. Administrators should therefore check the security status of their specific distribution rather than relying only on the version returned by uname -r.
For example, the Debian security tracker provides release-specific package information, while Red Hat’s vulnerability assessment explains the affected configurations and mitigation options.
How to check whether your Linux server is exposed
Administrators can begin with a few commands to determine whether the machine is running the NFS server and which protocol versions it supports.
First, check the active kernel version:
uname -rNext, check whether the NFS server module is loaded:
lsmod | grep -w nfsdCheck the enabled NFS protocol versions:
cat /proc/fs/nfsd/versionsEntries marked +4.1 or +4.2 indicate that those protocol versions are enabled.
Finally, check whether the server is listening on TCP port 2049:
ss -ltnp 'sport = :2049'These checks help identify potential exposure, but they do not independently confirm vulnerability. The kernel package must also be checked against the security updates available for the installed Linux distribution.
How to protect systems against NFS2ROOT
Installing a patched kernel and rebooting the system is the recommended solution. Administrators should obtain the update through their distribution’s normal package-management process.
Where an immediate update is not possible, restricting access to TCP port 2049 can reduce exposure. The service should only accept connections from trusted clients on the required storage network.
Systems that do not need to export NFS shares should have the NFS server disabled. Another temporary option is to disable NFSv4.1 and NFSv4.2, provided the applications and storage infrastructure can operate without them.

Disabling a service or changing supported NFS versions can interrupt existing storage connections, so administrators should assess the operational impact before making changes. These measures are temporary safeguards, not substitutes for applying the kernel update.
What administrators should take away
NFS2ROOT is a serious reminder that vulnerabilities can remain hidden in low-level infrastructure code long after the original change was introduced. In this case, a problem in the handling of NFS response buffers created an unauthenticated route to kernel memory corruption, with researchers demonstrating how it could lead to root access.
There is currently no need to assume that every Linux machine is exposed. The immediate priority is to identify systems running the in-kernel NFS server, check whether the affected protocols are enabled, and install the appropriate security update.
For organizations operating shared storage, NAS appliances, virtualization hosts, or Linux file servers, TCP port 2049 deserves particular attention until all affected systems have been patched.
Discover more from Aree Blog
Subscribe now to keep reading and get access to the full archive.


