NFS2ROOT (CVE-2026-99362): Pre-auth Linux kernel flaw allows remote root access over TCP 2049

NFS2ROOT (CVE-2026-99362) is a pre-auth heap buffer overflow in the Linux kernel's nfsd service for NFSv4.1/4.2, reachable on TCP port 2049.

TL;DR

NFS2ROOT (CVE-2026-99362) is a remote, pre-authentication Linux kernel vulnerability—not merely a local privilege escalation [1]. OpenSec reports that an attacker can gain root access against a reachable Linux NFS server listening on TCP port 2049 when serving NFSv4.1 or NFSv4.2 [1]. Although OpenSec says the exploit remains private and BleepingComputer reports no in-the-wild exploitation yet, you should install your distribution’s kernel update for CVE-2026-99362 and reboot immediately [1].

What happened

Security researchers at OpenSec disclosed CVE-2026-99362 (dubbed NFS2ROOT), a critical memory-corruption flaw in the Linux kernel’s in-kernel NFS server (nfsd) [1]. Because nfsd runs directly in kernel space, successful exploitation of a pre-authentication overflow over the network translates directly into kernel-level code execution and full root compromise—without valid credentials [1].

OpenSec stated that its working exploit remains private, and BleepingComputer reported no observed exploitation in the wild at the time of disclosure [1].

Who is affected

  • Linux servers running the in-kernel nfsd daemon with NFSv4.1 or NFSv4.2 enabled [1].
  • Any host where TCP port 2049 is reachable from untrusted networks, multi-tenant VPCs, or compromised internal segments—including file servers, NAS appliances, CI/CD build runners, and shared storage nodes [1].

Technical details

The bug lives in how nfsd handles reply buffer sizing for NFSv4.1/4.2 sessions [1]:

  • Client-controlled cache sizing: A remote client can specify a cache size parameter that leaves insufficient or zero space for the server’s reply [1].
  • Missing bounds check: Despite the lack of available space, the kernel server still copies the reply data into the buffer, resulting in an out-of-bounds write / heap overflow in kernel memory before authentication completes [1].
  • The fix: Upstream kernel patches validate available reply space before copying and ensure encoding failures are properly reported as errors rather than overflowing the buffer [1].

What to do now

  1. Patch and reboot: Apply your Linux distribution’s kernel security update for CVE-2026-99362 and reboot affected hosts so the patched kernel is active [1].
  2. Restrict TCP port 2049: Verify firewall rules and security groups so that TCP 2049 is never exposed to the public internet and is restricted strictly to authorized client subnets.
  3. Disable nfsd where unused: If a Linux host does not need to serve NFS shares, stop and disable the NFS server daemon entirely.
  4. Audit NFSv4.1/4.2 exposure: Inventory storage nodes and NAS appliances (especially in cloud VPCs and Kubernetes clusters) to confirm none are unintentionally reachable outside trusted segments.

Sources

  1. New NFS2ROOT Linux Flaw Can Let Attackers Gain Root Privileges, 2026-11-27