Get DeafLetter
A weekly selection of signals, vulnerabilities and guides. Critical alerts remain optional.
You can unsubscribe at any time. Privacy policy.
A heap buffer overflow in the Linux kernel NFS server left port 2049 exposed to total compromise without authentication for nearly twelve years. The vulnerability, tracked as CVE-2026-99362 and published on November 19, 2026, allows a remote attacker to achieve root-privileged code execution on systems running nfsd with NFSv4.1 or 4.2 enabled. The Common Vulnerability Scoring System rates it 9.8 out of 10, Critical, due to the combination of network accessibility and zero prerequisites.
The discovery is credited to OpenSec, which demonstrated a full exploit chain from initial connection to root shell, and to Jérémy Jean of ANSSI, who submitted the fix upstream on August 17, 2026. The fix commit, 5d5a72e965c8, is verifiable in the Linux kernel GitHub repository.
- The bug resides in
nfsd4_sequence(): the client negotiates a zero-length reply buffer, then the server copies the entire response past the limit, causing controlled writes into kernel memory. - The exposure window spans from kernel 3.16 (March 2014) to November 2026: roughly twelve years of potentially vulnerable systems.
- The demonstrated exploit chain includes a heap leak to bypass KASLR, an arbitrary free, and command execution via
call_usermodehelperon NFS connection teardown. - Patched 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; applying the patch requires a kernel update and reboot.
The Mechanism: How a Zero-Length Buffer Becomes Arbitrary Execution
The NFSv4.1 and 4.2 protocols specify a negotiation phase between client and server to determine the maximum size of cached responses. The ca_maxresponsesize_cached field can be reduced by the client to the technical minimum. When this value drops below the threshold needed to hold a full SEQUENCE response header, the function nfsd4_alloc_slot() allocates a zero-length buffer.
The problem surfaces in COMPOUND tag handling. A malicious client fills the buffer with a tag that includes the SEQUENCE opcode but omits the status word. The encoder finishes without signaling an error, the server marks the entire COMPOUND operation as successful, and nfsd4_store_cache_entry() copies the entire reply — RPC and COMPOUND headers included — into the zero-length allocated buffer. The result is a slab-out-of-bounds write of 80 bytes, 61 of which are directly controlled by the attacker through the COMPOUND tag.
The fix commit 5d5a72e965c8, published by Jérémy Jean, introduces a preliminary check: before shrinking the buffer to the negotiated limit, the server verifies that the combination of the SEQUENCE result and space for the error status actually fit within the granted size. If the check fails, the operation is aborted before allocation.
From Memory Corruption to Root Shell
OpenSec documented an exploit chain that turns the controlled write into maximum-privilege code execution. The initial phase leverages the overflow to obtain a kernel heap leak; this information allows calculation of the kernel base address in memory, bypassing KASLR (Kernel Address Space Layout Randomization).
With the kernel location known, the exploit proceeds to an arbitrary free — the release of a slab object at a controlled address — to manipulate internal kernel structures. The final stage triggers on NFS connection close, when the kernel invokes call_usermodehelper for housekeeping operations: the exploit hijacks this invocation to execute arbitrary commands in user context but with root privileges.
"Port 2049 sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes. Since 2014, the Linux kernel listening on it has let anyone who can reach it write into kernel memory before logging in." — OpenSec
Videos published by OpenSec show execution of whoami; id; poweroff -f as root at the end of the sequence. The organization emphasizes that the exploit remains private and that every step of the chain is disguised as an ordinary NFS request, making signature-based network detection problematic.
What to Do Now
The in-kernel nature of the NFS server means the fix requires installation of an updated kernel followed by a system reboot. No runtime workaround eliminates the vulnerability without replacing the kernel.
Operational priorities documented by converging sources align on four axes:
- Identify exposed systems: verify which hosts run
nfsdwith NFSv4.1 or 4.2 active on TCP 2049, with particular attention to file servers, NAS appliances, build farms, and Kubernetes storage nodes. - Plan the kernel update: patched versions are 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, per primary sources OpenSec, watchTowr, and NVD.
- Reboot: the
nfsdmodule resides in the kernel and is not independently reloadable; loading the patched kernel requires a machine restart. - Review network visibility: restricting access to TCP 2049 to authorized addresses reduces the attack surface, though it does not eliminate the bug.
OpenSec explicitly warned that "Kernel hardening does not remove the overflow. Patch every host." Protections such as KASLR, SMAP, and SMEP delay exploitation but do not prevent it in the demonstrated chain.
Why Detection Is Particularly Difficult
An aspect that distinguishes this vulnerability is the lack of distinctive network indicators. OpenSec's exploit uses exclusively NFS protocol primitives: session negotiation, COMPOUND operations, connection teardown. None of this activity generates traffic that deviates from a legitimate NFS client.
Detection rules proposed by ThreadLinqs focus on behavioral patterns — sequences of operations preceding memory corruption — rather than payload signatures. This approach, however, requires NFS call-level visibility and temporal correlation capabilities that many infrastructures lack. The absence of in-the-wild exploitation as of November 26–27, 2026, reported by BleepingComputer and watchTowr, does not lessen the severity: publication of the technical mechanism makes reproduction accessible to capable operators.
The Lesson of an "Unsexy" Component
The Linux kernel NFS server falls into that category of subsystems considered mature, stable, and low-risk: they do not attract the same scrutiny as GPU drivers, high-performance network stacks, or security modules. The result is that a memory allocation bug remained unchanged for 140 kernel releases, surviving major architectural shifts in the operating system.
The fix arrived via a non-institutional path: OpenSec's report with a working exploit, followed by integration of the patch already prepared by Jean. This dynamic raises questions about audit mechanisms for kernel components that fall outside major vendor bug bounty programs or public fuzzing campaigns.
For system administrators, the NFS2ROOT case represents a moment of verification: how many "internal" and "legacy" services are exposed with elevated privileges, without their attack surface having been re-examined in years? The answer, in this case, measures roughly twelve years of unknown exposure.
Frequently Asked Questions
Does the bug affect all Linux servers?
No. The system must run the kernel NFS server (nfsd) with NFSv4.1 or 4.2 enabled, and TCP 2049 must be reachable by the attacker. Systems using only the NFS client, or exporting filesystems via NFSv3, are not vulnerable to this specific bug.
Is there a public exploit?
OpenSec explicitly stated that "The exploit stays private." No public exploits or confirmed in-the-wild exploitation were reported as of November 26–27, 2026. The exploit chain has, however, been documented in sufficient technical detail to allow reproduction.
Why does the patch require a reboot?
The NFS server is implemented as a Linux kernel module, not a userspace service. Replacing the vulnerable code requires loading an updated kernel, an operation that completes only on system restart.
Sources
- bleepingcomputer.com
- opensec.in
- intel.threadlinqs.com
- watchtowr.com
- commandlinux.com
- mezha.net
- meteoraweb.com
- dataconomy.com
- cve.org
- nvd.nist.gov
- github.com
Get DeafLetter
A weekly selection of signals, vulnerabilities and guides. Critical alerts remain optional.
You can unsubscribe at any time. Privacy policy.