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: 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: 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:
- It runs a Linux kernel older than 6.12.117, 6.18.61 or 7.3.2 on those stable lines, or a 7.4 development build earlier than 7.4-rc1.
- The nfsd module is loaded and running, serving NFS version 4.1 or 4.2.
- TCP port 2049 can be reached from a network the attacker controls, including the Internet.
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:
- The attacker sends crafted NFSv4.1 requests that make nfsd write data past the end of a buffer on the kernel heap.
- The same overflow is used to read kernel memory, which leaks enough addresses to defeat KASLR (kernel address space layout randomization).
- With kernel addresses known, the attacker places a callback carrying a command into a memory area that has already been freed.
- When the attacker closes the NFS connection, the kernel runs the embedded command with root privileges.
⚠️ 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:
- Kernel warnings that reference nfsd4_check_resp_size.
- Shells or other processes started by kernel worker threads on a file server.
- Bursts of short-lived NFSv4.1 sessions from a single source address.
- Kernel oopses with nfsd4_, svc_ or call_usermodehelper* frames in the stack trace.
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.
Originally published on RedEye Threat Intelligence.