NFS2ROOT: Critical Linux nfsd Flaw Gives Remote Root

OpenSec disclosed NFS2ROOT, CVE-2026-99362, a CVSS 9.8 Linux kernel nfsd flaw hidden for 12 years that gives unauthenticated remote root via TCP port 2049.
Table of Contents
    Add a header to begin generating the table of contents

    A critical flaw in the Linux kernel’s NFS server, nicknamed NFS2ROOT and tracked as CVE-2026-99362, lets an unauthenticated attacker gain remote root on file servers, according to a report by security firm OpenSec. The flaw carries a CVSS score of 9.8 and sat undetected in the kernel for 12 years.

    How NFS2ROOT Corrupts Kernel Memory

    CVE-2026-99362 requires no authentication, no privileges and no user interaction. A single TCP connection can write 61 bytes past the end of a kernel heap object, corrupting kernel memory.

    The flaw exists because the NFS server, nfsd, parses data inside the kernel before it checks who sent it. That ordering lets an unauthenticated sender reach the vulnerable parsing code.

    Systems Within Reach of the Flaw

    Affected systems are Linux servers running the kernel NFS server with TCP port 2049 reachable. OpenSec lists NAS devices and Kubernetes storage nodes among them. Where the port is exposed, the consequence is full server compromise.

    Fixes and the Port 2049 Workaround

    Fixes are available. OpenSec urges administrators to patch and reboot. Where patching and rebooting are not possible, OpenSec advises blocking TCP port 2049 at the firewall.

    No Exploitation of NFS2ROOT Has Been Reported Yet

    The report does not describe exploitation in the wild. The disclosure covers the vulnerability and its fixes only, so the current threat is the exposure of unpatched servers rather than a known campaign.

    The numbers in OpenSec’s report show how little the attacker needs. The flaw scores 9.8 on the CVSS scale, near the maximum for a bug that needs no credentials and no victim action, and the overwrite is 61 bytes past a heap object in kernel memory. Because the vulnerable parsing happens before the sender is checked, network position is the only prerequisite: if the attacker can open a TCP connection to port 2049, nothing else stands in the way. The 12 years the bug spent in the kernel suggest this parsing path drew little scrutiny, though the report does not explain why it went unnoticed.

    Why a 12-Year-Old Kernel Bug Matters for Storage Infrastructure

    The flaw’s age means that a large span of kernel versions carried the vulnerable code, though the report’s summary does not list the affected versions. NFS is a common way to share files across servers and containers, so nfsd often runs on machines that hold shared data and that other systems trust.

    Kubernetes and NAS Exposure Is Particularly Notable

    Kubernetes storage nodes and NAS devices are typically reachable from many other machines inside a network. An attacker with root on such a node would be positioned to read or alter shared data, though the report does not describe specific post-exploitation scenarios.

    Analysis: Pre-Authentication Parsing in Kernel Code

    NFS2ROOT belongs to a long-standing class of bugs in which code processes untrusted input before verifying its source. Placing such parsing in the kernel raises the stakes, since a memory error there yields kernel-level control, not just a crashed application. The 61-byte overwrite is small, but small overwrites of heap objects have been turned into reliable exploits in earlier kernel vulnerabilities.

    The mitigation OpenSec recommends reflects a basic principle of network exposure. NFS is not designed for exposure to untrusted networks, and blocking port 2049 limits the flaw to hosts that can already reach it. For operators, the first task is to find out which of their systems run nfsd and where port 2049 is reachable. Because the fix requires a reboot, maintenance windows for storage servers will determine how long exposed systems stay open.

    OpenSec’s two instructions are consistent: patch and reboot, or block the port.

    Related Posts