
A critical flaw in the Linux kernel's NFS server lets anyone who can reach TCP port 2049 corrupt kernel memory without a password, an account, or any interaction, and the researchers who disclosed it demonstrated turning that corruption into a root shell in their lab. OpenSec published its NFS2ROOT write-up on November 25, naming the bug CVE-2026-99362 with a CVSS 3.1 score of 9.8. The kernel CVE team announced fixed kernels on November 19, and independent analysis published November 26 agrees on the severity while reporting no attacks in the wild and no public exploit code so far.
OpenSec's write-up frames exposure as a checklist, and all four must hold on the same host: a kernel older than the fixed releases with no distribution backport, the in-kernel NFS server loaded, NFSv4.1 or 4.2 offered, and port 2049 reachable from an untrusted network. Their suggested checks are uname -r for the kernel, lsmod | grep -w nfsd for the server module, cat /proc/fs/nfsd/versions for the protocol versions, and ss -ltn 'sport = :2049' for the listening socket. I have not tested these commands here; treat them as the researcher's triage guide, not verified instructions. Two scope notes narrow the panic: NFSv3 and NFSv4.0 are unaffected, and Red Hat states that default RHEL configurations do not run the in-kernel server at all, so only machines deliberately set up to export NFSv4.1 or 4.2 shares are in scope. That is exactly the homelab profile that should worry: a NAS, a Proxmox or file-server VM exporting media or backups over NFS, or a Kubernetes storage node with 2049 open beyond the storage network.
The flaw sits in how the server handles NFSv4.1 session slots. Each slot caches its last reply, and the client is allowed to negotiate how large that cache may be. A client can shrink the limit to the minimum, leaving every slot buffer at zero bytes, then pad its request tag so the reply buffer fills right after the SEQUENCE opcode; the encoder exits without flagging an error, the server treats the operation as successful, and it copies the entire reply, headers and tag included, into a buffer with room for nothing. The kernel announcement shows the resulting KASAN report: an 80-byte copy landing past the end of a kernel heap object, most of whose bytes the client chose. OpenSec puts the overflow at 61 bytes past the object with about 40 bytes attacker-controlled, then chains it in its lab through a heap leak that defeats address randomization into a root shell. That end-to-end chain is OpenSec's own demonstration, shown in a recording on its page, and the exploit itself stays private. The bug dates to March 2014 and kernel 3.16, and two teams found it independently: OpenSec credits ANSSI researcher Jeremy Jean with sending a fix upstream on August 17 and writing the patches that landed, a credit BreachNews corroborates in its November 25 write-up.
Upstream fixed kernels are 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1, per the November 19 kernel announcement, with long-term-support backports in 5.10.275, 5.15.226, 6.1.193, and 6.6.163 added to the CVE record on November 23. Distribution packages are another matter. Ubuntu rates the flaw Critical and still lists every supported release as vulnerable, with fixes in progress for 26.04 and 26.10 and no date given. A status survey checked November 26 finds Debian 13 fixed in package 6.12.117-1 while Debian 12's default 6.1 kernel is still listed vulnerable, and Red Hat's entire supported range affected with no fix shipped yet. The same survey notes that on distribution kernels the version number alone proves nothing, because vendors backport fixes under older numbers: install the update that names CVE-2026-99362. As of November 26 the flaw is not on CISA's exploited-vulnerabilities list, and both the Threat Landscape analysis and the watchTowr FAQ report no exploitation in the wild.
Patch the kernel and reboot, since the vulnerable code runs in the kernel and only a reboot loads the fix. Until the update lands, restrict TCP port 2049 to the storage network or disable NFS sharing if the machine does not need it; Red Hat's advisory gives systemctl stop nfs-server plus firewall steps, with the warning that stopping the service ends active NFS sessions. Alternatively, turn off NFSv4.1 and 4.2 in the server configuration, which OpenSec documents at the cost of some newer protocol features. NAS owners should install the vendor update that names the CVE rather than assuming a firmware number is safe. For detection, OpenSec notes each attempt leaves kernel warnings from nfsd4_check_resp_size, plus possible oopses naming NFS functions, shells spawned by kernel workers, or bursts of short NFSv4.1 sessions from one source; because the attack is valid NFS traffic, there is no reliable network signature. What remains uncertain: when Ubuntu and Red Hat will ship fixed kernels, how many NAS and appliance vendors carry the bug in older kernels, and whether the private exploit leaks or attacks appear, which would raise this from urgent patching to active incident response.
Log in to comment.