LINUX KERNEL · CVE-2026-99362

NFS2ROOT

12-Year-Old Linux nfsd Heap Overflow Gives Remote Attackers Root (CVE-2026-99362). CVE-2026-99362, dubbed NFS2ROOT, is a heap buffer overflow in the Linux kernel NFS server that has existed since kernel 3.16 in 2014.

Matt Lucas  |  November 29, 2026  |  5 min
Editorial hero illustration
CVE in this postCVE-2026-99362Live detections →All RedEye CVEs →
12 years
Bug age, since kernel 3.16
TCP 2049
Only access needed
None
Credentials or user action
4
Fixed kernel lines
Detected by CaverLive detection for CVE-2026-99362 in the RedEye Intel Feed →
TL;DR
  • What: ANSSI and OpenSec disclosed NFS2ROOT (CVE-2026-99362), a heap buffer overflow in the Linux kernel NFS server (nfsd) that has been present since kernel 3.16 in March 2014.
  • Impact: An unauthenticated remote attacker who can reach TCP port 2049 can read and corrupt kernel memory, defeat KASLR and run commands as root through a low-complexity attack with no user interaction.
  • Fix / mitigation: The flaw is fixed in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1 and in distribution kernel updates, which only take effect after a reboot, and the advisory recommends limiting port 2049 to trusted clients as an interim measure.
  • Who's at risk: Any Linux file server, NAS appliance, build farm or Kubernetes storage node running nfsd with NFSv4.1 or 4.2 where port 2049 can be reached by untrusted networks.

CVE-2026-99362, named NFS2ROOT, is a heap buffer overflow in the Linux kernel's NFS server. It lets a remote attacker with no credentials get root on any reachable host running nfsd with NFSv4.1 or 4.2. The bug arrived in kernel 3.16, released in March 2014. For 12 years, any Linux system serving NFSv4.1 or 4.2 has let anyone who could reach TCP port 2049 write into kernel memory before logging in. That includes file servers, NAS appliances, build farms and Kubernetes storage nodes.

Jérémy Jean of ANSSI, the French national cybersecurity agency, found the flaw and submitted a fix in August. The security firm OpenSec named it, built a full remote-root exploit and sent the exploit and a patch to the NFSD maintainers in late September. There are no reports of exploitation in the wild so far. The attack flow is now public, so expect that to change.

Which systems are exposed

A system is vulnerable only when all three of these conditions are true:

The attack is low complexity. It needs no privileges and no user interaction. The attacker never has to authenticate to an export, mount a share or hold a local account. All they need is a network path to the NFS listener.

How the exploit chain works

OpenSec's published attack flow has four stages. Each one runs in kernel context on the target:

Pre-authentication, kernel context

NFS2ROOT runs before any NFS authentication or export check. The result is root on the storage host itself, not a restricted service account. On a file server or NAS, that means control of the box that holds the data, its backups and any credentials cached on it.

Why hardening is not enough

OpenSec was blunt: "Kernel hardening does not remove the overflow. Patch every host." The exploit already includes a KASLR bypass, so address randomization does not stop it. Other mitigations may make exploitation harder or less reliable. They do not remove the memory corruption.

Where the bug lives matters too. NFS servers are long-lived infrastructure, and owners tend to avoid reboots. NAS appliances run vendor-built kernels that follow their own update schedules, often months behind upstream. Build farms and Kubernetes storage nodes often expose 2049 across flat internal networks because "it is only internal." So an attacker who gets a foothold anywhere on that network can likely reach the listener, even if it is not exposed to the Internet.

Detection: no network signature

OpenSec says NFS2ROOT traffic has no network signature, so perimeter IDS rules will not reliably flag it. Instead, OpenSec lists host and behavioral indicators of attempted exploitation:

These indicators are most useful for failed or noisy attempts. If an exploit works cleanly, it may leave only a short-lived root process behind. That makes kernel log collection and process ancestry telemetry from storage hosts more valuable than network inspection here.

Vendor fix and interim mitigation

The upstream fix ships in stable kernels 6.12.117, 6.18.61 and 7.3.2 and in the 7.4-rc1 development release. Linux distributions are backporting it into their own kernel packages. Distribution version strings often do not match upstream numbering, so each distribution's advisory for CVE-2026-99362 decides whether a given build is fixed. Installing the kernel package does not close the hole by itself. The host stays vulnerable until it reboots into the patched kernel.

Where patching cannot happen right away, the advisory recommends limiting TCP port 2049 to trusted clients or networks. On systems that do not need NFS sharing, it recommends stopping and disabling the nfs-server service. For NAS appliances and other embedded platforms, the fix depends on the vendor shipping an updated firmware or kernel image.

Patch status is a running-kernel question

A host with the fixed package installed but not rebooted is still exploitable. To verify, compare the running kernel version against the distribution advisory. The list of installed packages is not proof.

Part of a crowded 2026

NFS2ROOT adds to a long list of Linux privilege escalation flaws disclosed and patched this year: RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot and DirtyDecrypt/DirtyCBC. What sets NFS2ROOT apart is that it needs no local account. With a network path to port 2049, a remote attacker can go straight to root.

RedEye assessment

RedEye treats CVE-2026-99362 as a priority-one, pre-authentication remote code execution issue for any host where port 2049 can be reached from outside a tightly trusted segment. A public exploit, a 12-year exposure window and a low-complexity attack with no credentials make it a strong candidate for fast weaponization. The hardest part is the long tail: NAS appliances, storage nodes and vendor appliances that run nfsd without anyone tracking them as Linux kernels. Those systems will stay exposed longest, and they hold the data attackers want most.

Questions about your exposure?

RedEye Security provides assessments for organizations that need to understand their real risk.

Talk to us