Skip to main content
CybersecurityVulnerability Management

Linux Flaw Exposes Servers to Root Privilege Attacks

Rack-mounted Linux servers in a clean, neutral-colored server room.

CVE-2026-99362: a 12-year-old remote-root risk

CVE-2026-99362 is a 12‑year‑old critical vulnerability in the Linux kernel's Network File System (NFS) server that allows remote attackers to gain root privileges, researchers say. Discovered by ANSSI's Jérémy Jean — who submitted a fix in August — the flaw was dubbed "NFS2ROOT" by cybersecurity firm OpenSec, which also provided a full remote‑root exploit and a patch to the NFSD maintainers in late September.

How the NFS2ROOT heap overflow lets attackers become root

The defect stems from a heap buffer overflow in the Linux NFS server (nfsd) that has existed since kernel version 3.16 (released March 2014). OpenSec's analysis shows that specially crafted NFS requests cause the server to write data past an allocated memory buffer, enabling attackers to read kernel memory, defeat KASLR address-space protections, and place a callback that executes a command in a released memory area.

According to the published technical account, when the attacker closes the NFS connection the kernel executes the embedded command with root privileges. The attack path requires no user interaction and is described as low complexity: an unauthenticated remote actor who can reach the server's TCP port 2049 can corrupt kernel memory and obtain root access to a vulnerable host.

Exact scope: which kernels, services and ports are at risk

NFS2ROOT affects systems running a Linux kernel older than 6.12.117, 6.18.61, 7.3.2, or 7.4‑rc1 when the nfsd implementation for NFSv4.1 or NFSv4.2 is loaded and TCP port 2049 is reachable from the Internet. OpenSec noted that "Port 2049 sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes. Since 2014, the Linux kernel listening on it has let anyone who can reach it write into kernel memory before logging in."

There are, as of the published advisory, no public reports of CVE-2026-99362 being exploited in the wild. Nevertheless, the combination of long exposure, remote reachability via a standard port, and a working exploit shared with maintainers motivated urgent remediation guidance from researchers.

Mitigation: patches, configuration changes and detection tips

OpenSec and the researcher who reported the bug recommend immediate application of the latest kernel security updates provided by Linux distribution vendors and a reboot to ensure the patched kernel is active. For teams that cannot patch immediately, the advisory offers two operational mitigations:

  • Restrict access to TCP port 2049 so only trusted clients or networks can reach the NFS server.
  • If NFS sharing is not required, stop and disable the nfs-server service via /etc/nfs.conf.

OpenSec adds a blunt reminder: "Kernel hardening does not remove the overflow. Patch every host."

Because NFS2ROOT attacks leave no reliable network signatures, the advisory lists behavioral indicators defenders can monitor for on file servers and storage nodes: kernel warnings referencing nfsd4_check_resp_size, shells spawned by kernel workers on a file server, bursts of short NFSv4.1 sessions originating from a single source, and kernel oopses containing nfsd4_*, svc_* or call_usermodehelper* frames.

What this means for file servers, NAS appliances, and Kubernetes storage nodes

  • File servers and NAS appliances: These devices commonly expose TCP 2049 to service clients; hosts running older kernels with nfsd loaded should be patched or otherwise restricted to trusted networks.
  • Build farms and CI/CD infrastructure: Systems that mount or export NFS shares for build artifacts should treat exposed NFS endpoints as high risk until kernels are updated and reboots completed.
  • Kubernetes storage nodes: Nodes offering NFS-backed storage or exposing NFS ports to other clusters/components must verify kernel versions, disable nfsd where not required, or limit access to known, authenticated clients.

Context: one more privilege escalation in a busy year

NFS2ROOT joins a list of Linux privilege‑escalation flaws disclosed and patched since the start of the year. The advisory groups NFS2ROOT alongside a series of other named bugs: RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot, and DirtyDecrypt/DirtyCBC — underscoring a sustained cadence of kernel‑level fixes administrators must track and deploy.

For defenders, the immediate tasks are clear: verify kernel versions against the remediation thresholds above, install vendor kernel updates and reboot, or temporarily restrict TCP 2049 access and disable nfs-server where possible. OpenSec's release of a proof‑of‑concept exploit and patch to maintainers makes the timeline for action short; the exploit demonstrates the attack is practical, even if public exploitation has not yet been observed.

Source: BleepingComputer — New NFS2ROOT Linux flaw can let attackers gain root privileges