A pre-authentication heap overflow in the Linux kernel’s in-kernel NFS server, nfsd, went undetected for 12 years. Tracked as CVE-2026-99362 and dubbed NFS2ROOT, it carries a CVSS 3.1 score of 9.8.
A single unauthenticated TCP connection to port 2049 corrupts kernel memory and ends in a root shell. OpenSec Intelligence disclosed the defect on November 25, 2026.
Commit 47ee52986472 introduced it in March 2014, and it ships in every kernel since Linux 3.16. That covers LTS, distribution and appliance builds.
12-Year-Old Linux Kernel Flaw
Exposed hosts include file servers, NAS appliances, build farms and Kubernetes storage nodes running NFSv4.1 or 4.2, which is the default.
Each NFSv4.1 session slot caches its last reply, and the client negotiates the cache size. A client can set ca_maxresponsesize_cached to the minimum, so every slot receives a zero-length sl_data[] buffer. nfsd4_sequence() then narrows the reply buffer before accepting the slot sequence ID.
A padded COMPOUND tag fills the buffer right after the SEQUENCE opcode, so the encoder returns without setting an error status. The server treats the operation as successful and copies the full reply into the empty slot.
Comparable heap buffer overflow in AnyDesk on Linux also gave remote attackers root-level execution through a single exposed TCP port. The upstream KASAN report shows an 80-byte write, with 61 bytes landing past the heap object and 40 of those chosen by the client.
OpenSec says its Antara harness found the bug and built the full chain with no human involvement. The overflow corrupts a neighbouring slot’s bookkeeping, and a replay request then leaks 3.8 KB of kernel heap that exposes the KASLR slide.
A forged pointer triggers an arbitrary free. The attacker refills the freed memory with a fake callback built from NFS client names. When the attacker disconnects, nfsd invokes the callback and the kernel runs /bin/sh as root.
.webp)
Out-of-bounds writes of this kind recur in parsers, as seen in a libheif heap-buffer-overflow that reached code execution through WordPress uploads.
The exploit remains private. Memory-unsafe C components have become a favourite target for automated research, and the HEIF Heist image-decoder attack paths show how one heap defect can spread across many platforms.
Affected Kernels and Fixes
Jérémy Jean of ANSSI found the bug independently and sent the upstream fix on August 17, 2026. OpenSec reported it with a working exploit on September 22, and CVE-2026-99362 was published with patches in November.
Fixed releases are Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Distribution kernels need the update that lists the CVE, followed by a reboot.
Administrators who cannot patch immediately should restrict tcp/2049 to the storage network. An nftables rule that drops traffic from other source ranges does this. Disabling NFSv4.1 and 4.2 in /etc/nfs.conf also closes the path, but it turns off pNFS and some 4.2 features.
The traffic is valid NFS, so no network signature exists. Defenders should watch for kernel warnings from nfsd4_check_resp_size, oopses with nfsd4_*, svc_* or call_usermodehelper* frames, shells spawned by kernel workers, and bursts of short NFSv4.1 sessions from one source. Kernel hardening does not remove the overflow, so every NFS-serving host needs the patched kernel.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team

