Read Time:4 Minute, 1 Second A Decade-Old Bug With a Near-Perfect Severity Score --------------------------------------------------- Security researchers have disclosed a critical [Linux](https://securebulletin.com/tag/linux/) [kernel vulnerability](https://securebulletin.com/tag/kernel-vulnerability/), dubbed NFS2ROOT and tracked as [CVE-2026-99362](https://securebulletin.com/tag/cve-2026-99362/), that can allow an [unauthenticated](https://securebulletin.com/tag/unauthenticated/) remote attacker to gain full root control over an unpatched Network File System ([NFS](https://securebulletin.com/tag/nfs/)) server — no login credentials required. OpenSec [Intelligence](https://securebulletin.com/tag/intelligence/), the firm behind the disclosure, rated the flaw 9.8 out of 10 on the CVSS severity scale, among the highest ratings a [vulnerability](https://securebulletin.com/category/vulnerability/) can receive. The affected code has existed since [Linux kernel](https://securebulletin.com/tag/linux-kernel/) version 3.16, released in 2014, meaning the [bug](https://securebulletin.com/tag/bug/) has sat in production systems worldwide for roughly twelve years before being caught. The flaw applies specifically to servers running the Linux [kernel](https://securebulletin.com/tag/kernel/)’s built-in NFS server with NFSv4.1 or NFSv4.2 enabled, where an attacker can reach TCP port 2049 — the standard port NFS uses for file-sharing traffic. How the Exploit Works --------------------- NFS allows one computer to access files stored on another machine over a network. The vulnerable component, `nfsd`, runs directly inside the Linux kernel rather than as a conventional application, which raises the stakes of any bug found in it. To improve performance, `nfsd` caches recent replies, so that if a client’s request is retried, the server can return the same answer instantly instead of redoing the work. The bug lies in how the server judges whether a cached reply will actually fit into its allotted buffer space. Under certain conditions, a vulnerable server can mistakenly treat an incomplete reply as valid and attempt to store it anyway — writing past the end of the buffer and corrupting adjacent kernel memory. This class of bug is known as a heap overflow, and because it occurs inside the kernel itself, successful exploitation can translate directly into root-level command execution. OpenSec’s fix for the flaw simply makes the server verify there is sufficient room before writing, and return an error instead when there isn’t. In a demonstration video published November 25, OpenSec showed a separate, unauthenticated machine connecting to a test server and remotely triggering command execution with full root privileges, after which the test server crashed. OpenSec says it is keeping the working exploit code private. The demonstration establishes that remote root access is achievable in a controlled lab environment — it does not indicate that the flaw has been exploited against real-world targets. Who Should Be Checking Their Systems ------------------------------------ Unlike many kernel privilege-escalation bugs, NFS2ROOT does not require an attacker to already have a local account or shell access on the target machine — it is exploitable purely over the network. Organizations should review: - Linux-based file servers and network-attached storage appliances - Build servers that export files over NFS - Storage nodes serving NFS shares to Kubernetes workloads A Linux machine that only mounts someone else’s NFS share as a client — rather than acting as the server — is not exposed by this particular flaw. It’s also worth noting that NFS2ROOT is unrelated to a previously disclosed Kubernetes NFS CSI driver vulnerability, which involved how that driver handled file paths rather than how the kernel’s NFS server processes replies. Checking Exposure and Applying the Fix -------------------------------------- Administrators can check two things quickly on a Linux NFS server: running `cat /proc/fs/nfsd/versions` shows whether NFSv4.1 or NFSv4.2 is active, and `ss -ltn 'sport = :2049'` shows whether the host is listening on the relevant port. A listening port alone doesn’t reveal which other machines on the network can actually reach it, so firewall rules and cloud security groups are worth reviewing too — a server does not need to be exposed to the public internet to be reachable from an already-compromised machine elsewhere on the internal network. Patched kernel versions include 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. Distribution maintainers and storage-appliance vendors can backport the fix to older kernel branches without adopting the upstream version number, so administrators should check vendor advisories for CVE-2026-99362 specifically rather than relying on kernel version numbers alone. After patching, rebooting and confirming the running kernel with `uname -r` closes the loop. Where immediate patching isn’t possible, OpenSec recommends restricting access to TCP port 2049 to only the machines that need it, and disabling NFSv4.1 and NFSv4.2 where workloads can tolerate the loss of those protocol features — though both are stopgaps, not substitutes for applying the actual fix. For systems that may have been exposed before patching, OpenSec’s detection guidance points toward kernel warnings referencing `nfsd4_check_resp_size`, unexpected shells spawned by kernel worker processes, and unusual bursts of short-lived NFSv4.1 sessions originating from a single source — all leads worth investigating rather than definitive proof of compromise on their own. Share ----- [ Facebook ](https://www.facebook.com/sharer/sharer.php?u=http://securebulletin.com/nfs2root-a-12-year-old-linux-kernel-bug-that-hands-attackers-root-without-a-password/) [ Twitter ](https://twitter.com/intent/tweet?text=NFS2ROOT:%20A%2012-Year-Old%20Linux%20Kernel%20Bug%20That%20Hands%20Attackers%20Root%20Without%20a%20Password&url=http://securebulletin.com/nfs2root-a-12-year-old-linux-kernel-bug-that-hands-attackers-root-without-a-password/) [ Pinterest ](twp_be_pinterest()) [ LinkedIn ](http://www.linkedin.com/shareArticle?mini=true&title=NFS2ROOT:%20A%2012-Year-Old%20Linux%20Kernel%20Bug%20That%20Hands%20Attackers%20Root%20Without%20a%20Password&url=http://opensharecount.com/count.json?url=http://securebulletin.com/nfs2root-a-12-year-old-linux-kernel-bug-that-hands-attackers-root-without-a-password/)