CVE-2026-99362, tracked by researchers as NFS2ROOT, is a pre-authentication heap overflow in the Linux kernel's in-kernel NFS server (nfsd). An attacker who can reach TCP port 2049 on a system serving NFSv4.1 or NFSv4.2 can trigger the overflow without credentials, a file handle, or a successful mount. OpenSec demonstrated chaining the primitive into a kernel memory leak, KASLR bypass, and root shell. No public exploit code or confirmed in-the-wild exploitation has been reported as of 26 November 2026 (OpenSec analysis).
The vulnerability was introduced in kernel 3.16 (commit 47ee52986472) in 2014 and remained unpatched for 12 years. It received a CVSS 3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). Ubuntu and Red Hat have both rated it Critical. The upstream fix landed in mainline and multiple stable branches in October and November 2026, but several major distributions had not shipped fixed packages at the time of writing.
Technical Root Cause
The flaw exists in the handling of the NFSv4.1 SEQUENCE operation. A client can negotiate ca_maxresponsesize_cached down to the minimum allowed value (NFSD_MIN_HDR_SEQ_SZ). When this occurs, nfsd4_alloc_slot() allocates zero-length buffers for each slot's sl_data[].
nfsd4_sequence() then narrows the reply buffer to the negotiated cached size before it accepts the slot sequence ID. A carefully sized COMPOUND tag fills the narrowed buffer so that it contains the SEQUENCE opcode but not the following status word. The subsequent copy of the full reply (RPC header, COMPOUND header, and tag) into the zero-length buffer produces an out-of-bounds write of approximately 80 bytes, of which roughly 61 bytes overflow the kernel heap object. The client controls a significant portion of the overflowing bytes.
The kernel's KASAN report confirms the overflow occurs in read_bytes_from_xdr_buf during nfsd4_sequence_done. The fix (commit 35ff1a7a7e38 and backports) adds a preflight check that the fixed-size SEQUENCE result plus room for a following operation's error status fits within the negotiated limit before the buffer is narrowed and the slot is consumed (tldrcve analysis).
Exploitation Conditions and Impact
The vulnerability is reachable under the following concurrent conditions:
- The system runs a Linux kernel 3.16 or later that does not contain the upstream fix.
- The in-kernel nfsd module is loaded and is offering NFSv4.1 or NFSv4.2 (the default on current distributions).
- TCP port 2049 is reachable from an untrusted network.
NFSv3 and NFSv4.0 are unaffected. Systems that do not run an NFS server are not exposed. Because the attack is a valid NFSv4.1 SEQUENCE exchange, it does not require an existing export or authentication and leaves a limited network signature beyond short-lived sessions.
OpenSec's private exploit chains the overflow into a 3.8 KB kernel heap leak that reveals the KASLR offset, followed by a controlled free, reclamation with a forged NFS callback structure, and execution of a root shell upon disconnect. The research was performed with OpenSec's Antara automated harness; an independent report was also submitted by Jérémy Jean of ANSSI in August 2026.
Prior exposure research has documented more than 1.5 million hosts with NFS on port 2049 (public exposure data). While the majority are not internet-facing, the combination of internal network reachability, common misconfigurations (no_root_squash, broad client lists), and this pre-auth primitive elevates the risk for any environment that treats NFS as a trusted-network protocol.
Affected and Fixed Versions
Upstream fixed stable kernels include:
| Branch | Fixed Version |
|---|---|
| 5.10 | 5.10.275 |
| 5.15 | 5.15.226 |
| 6.1 | 6.1.193 |
| 6.6 | 6.6.163 |
| 6.12 | 6.12.117 |
| 6.18 | 6.18.61 |
| 7.3 | 7.3.2 |
| mainline | 7.4-rc1 |
Distribution status as of 26 November 2026 is uneven. Debian has fixed packages available for some lines (including linux-6.12 on bookworm and the 6.12 series on trixie). Ubuntu lists its main kernels across supported releases as vulnerable, with fixes in progress for newer series. Red Hat lists RHEL 6 through 10 as affected with no shipped errata at the time of this writing. Administrators must verify the exact kernel package version against their vendor's CVE page rather than relying solely on upstream version numbers.
Detection and Mitigation
Immediate actions, ordered by preference:
- Install a kernel package that contains the CVE-2026-99362 fix and reboot. The vulnerability is not mitigated until the fixed kernel is running.
- Restrict TCP/2049 to trusted storage networks only. Firewall rules that limit source addresses eliminate the attack path without service changes.
- Disable NFSv4.1 and NFSv4.2 by setting
vers4.1=nandvers4.2=nin/etc/nfs.confand restarting the NFS server. This removes the vulnerable code path at the cost of pNFS and certain 4.2 features. - If NFS is not required, stop and disable the service (
systemctl stop nfs-server && systemctl disable nfs-server).
Detection opportunities include kernel warnings from nfsd4_check_resp_size, oopses involving nfsd4_*, svc_*, or call_usermodehelper, unexpected shells spawned by kernel workers, and bursts of short-lived NFSv4.1 sessions. The open-source anfs tool includes a check (added 22 November) that can distinguish vulnerable from patched servers without triggering the overflow.
Recommendations
Treat any host that is both serving NFSv4.1/4.2 and has TCP/2049 reachable from untrusted networks as critical. Inventory systems via internal scanners, ZoomEye, Shodan, or Censys, prioritize those confirming NFSv4.1 or 4.2, and apply the kernel update or network isolation immediately. Longer-term, enforce root_squash, restrict exports to specific client addresses, and evaluate alternatives such as Kerberos-authenticated NFSv4, SSHFS, or segmented encrypted storage for high-value shares. NFS was designed for trusted networks; the addition of a reliable pre-auth remote root path makes internet or cross-tenant exposure of port 2049 unacceptable.
Sources
- OpenSec — NFS2ROOT technical analysis
- tldrcve — NFS2ROOT summary
- Public exposure data referenced in the analysis
- Red Hat and Ubuntu security trackers
- Linux kernel commit history for
35ff1a7a7e38