Twelve Year Old Linux NFS Flaw Lets Remote Attackers Seize Root On Unpatched Servers
A critical heap overflow in the Linux kernel's NFS server component, tracked as CVE-2026-99362 and nicknamed NFS2ROOT, allows an unauthenticated remote attacker to take full control of an affected machine. The flaw carries a severity rating of 9.8 and affects systems serving NFSv4.1 or NFSv4.2, which are the default protocol versions in many Linux distributions. It was introduced in Linux 3.16 back in 2014 and went unnoticed for twelve years, having been found independently in August by a European government security agency and by a commercial security team using an AI-powered testing harness. Fixes are now available in eight stable kernel branches: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Anyone running a Linux NFS server is in scope, including Kubernetes clusters that use NFS inside container networks, development build servers, and embedded or network-attached storage appliances that ship with the NFS daemon enabled.
The vulnerable code sits in nfsd, the in-kernel component that handles NFS requests. Any system able to reach TCP port 2049 on the target can send crafted requests that corrupt the memory of the nfsd process, with no credentials and no user interaction required. Because nfsd runs inside the kernel, memory corruption there is not contained to a user-space service, and published technical analysis demonstrates that the overflow can be driven to the point of obtaining an interactive shell with root privileges. The disclosure timeline reflects the sensitivity of that outcome: a fix was merged into the mainline kernel on September 14, a second patch was submitted by the other finder on September 22, and the bug was held back from public disclosure, with no CVE ID assigned, until November 19 so that all supported kernel branches had time to backport the correction. Technical details describing the exploitation path were published this week.
The practical exposure here is wider than the usual "local network only" framing of NFS suggests. NFS is routinely deployed as shared infrastructure rather than as an endpoint service, so a single compromised file server often sits in the middle of a cluster, a CI pipeline or a storage tier that many other systems trust implicitly, and kernel-level root access on that host places an attacker above every container and workload it supports. The second problem is patch velocity: embedded devices and NAS appliances frequently run older kernel versions and can only be corrected through vendor firmware releases, which means a measurable population of systems will remain vulnerable long after the mainline kernel fix lands. Because the overflow is reachable pre-authentication, exposure is determined entirely by who can route to port 2049, and in environments where NFS has been treated as a trusted internal service that reachable population can be large. On current exploitation status, FIRST EPSS places CVE-2026-99362 at a 0.8% probability of exploitation in the next 30 days, and there is no confirmed in-the-wild activity reported at this time. That gap is unlikely to persist indefinitely now that a working exploitation path has been described publicly, and the combination of an unauthenticated network trigger, a default-enabled protocol version and a twelve-year install base makes this an attractive target for both opportunistic scanning and targeted intrusion into container and storage infrastructure.
Attack Surface
Server OS, File Storage, Infrastructure, IoT
Tactics
Initial Access, Execution, Privilege Escalation, Lateral Movement
Techniques
- T1190 – Exploit Public-Facing Application
- T1210 – Exploitation of Remote Services
- T1068 – Exploitation for Privilege Escalation
- T1046 – Network Service Discovery
SuperPRO's Threat Countermeasures Procedures
- Patch Linux NFS servers to a fixed stable kernel this week, prioritising any host whose port 2049 is reachable from outside its own segment: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 all contain the CVE-2026-99362 fix.
- Where the kernel cannot be updated immediately, apply firewall rules that permit TCP/UDP 2049 only from explicitly listed NFS client addresses and drop it from all other sources, including Kubernetes node networks and build-server subnets.
- As an interim measure on hosts that must keep serving NFS, disable NFSv4.1 and NFSv4.2 in the nfsd configuration and restart the service, accepting that pNFS and dependent features will stop working.
- Inventory NAS appliances and embedded devices that expose nfsd, confirm the kernel version they run against the fixed branches above, and track vendor firmware releases for those running Linux 3.16 or later without the fix.
- Scan internal and external ranges for listening TCP port 2049 to build an accurate list of NFS servers, since the flaw is exploitable pre-authentication by anyone who can reach that port.
- Alert on nfsd kernel oops, panic or BUG entries and unexplained nfsd service restarts in dmesg and journald, as failed heap-overflow attempts against the NFS server typically surface as kernel memory corruption messages.
- Monitor NFS server hosts for root-owned shells or processes spawned outside normal administrative sessions and for new outbound connections from those hosts, which would indicate successful kernel-level compromise rather than a failed attempt.