NFS2ROOT (CVE-2026-99362): Linux Kernel NFSv4.1/4.2 Fix
Originally published by **Asif Muhammad Iqbal (Founder & CEO at Logic42)* at https://logic42.ai/articles/nfs2root-cve-2026-99362-linux-kernel-nfsd-gpu-cluster-defense.* NFS2ROOT (CVE-2026-99362): Linux Kernel
Originally published by **Asif Muhammad Iqbal (Founder & CEO at Logic42)* at https://logic42.ai/articles/nfs2root-cve-2026-99362-linux-kernel-nfsd-gpu-cluster-defense.*
NFS2ROOT (CVE-2026-99362): Linux Kernel NFSv4.1/4.2 Fix
Imagine a mailroom clerk reserving a zero-length locker slot for an unverified courier whose oversized parcel bursts cleanly into the neighboring master-key drawer. Late-November research from OpenSec security researchers uncovered that exact flaw inside the Linux kernel's Network File System (NFS) server (nfsd). Tracked under Common Vulnerabilities and Exposures (CVE) identifier CVE-2026-99362 and dubbed NFS2ROOT, the defect grants unauthenticated root access over Transmission Control Protocol (TCP) port 2049.
Anatomy of the Twelve-Year Linux Kernel NFSv4 Overflow
Latent inside Linux since version 3.16 (2014), NFS2ROOT sits in the kernel's nfsd4_sequence() handler and carries a Common Vulnerability Scoring System (CVSS) score of 9.8. Unlike application bugs inside userland web servers, this defect executes directly in kernel space whenever a host exports files over NFSv4.1 or NFSv4.2.
During session setup on NFSv4.1 and NFSv4.2, an unauthenticated client negotiates ca_maxresponsesize_cached (the session duplicate-reply cache cap) down to its minimum without rejection, forcing the server to reserve a zero-length SEQUENCE (per-request session-tracking) reply slot. Without preflighting the required buffer size, nfsd4_sequence() copies roughly 61 bytes past that zero-length allocation into adjacent kernel heap memory. Chained requests leak or overwrite neighboring kernel pointers to bypass Kernel Address Space Layout Randomization (KASLR) and execute Remote Code Execution (RCE) as root.
This exposure reaches well beyond traditional file shares. Artificial Intelligence (AI) infrastructure teams rely heavily on shared Network-Attached Storage (NAS) appliances and Linux NFS heads to distribute model weights across Graphics Processing Unit (GPU) training and inference clusters, so compromising one unpatched storage node puts every mounted compute node at risk.
Forensic Scope Across Protocols, Kernels, and GPU Storage
If you operate bare-metal GPU racks, Kubernetes worker nodes, or enterprise Linux NAS servers, you shouldn't assume internal network placement keeps port 2049 safe. The table below maps CVE-2026-99362 technical parameters and blast radius to required engineering controls.
| Assessment Dimension | Verified Technical Finding | Infrastructure Blast Radius | Required Engineering Action |
|---|---|---|---|
Root Cause (nfsd4_sequence) |
Unauthenticated ca_maxresponsesize_cached negotiation allocates a zero-length reply slot in NFSv4.1 and NFSv4.2, overflowing ~61 heap bytes |
Pre-authentication RCE as Linux kernel root over TCP port 2049 | Update to patched Linux kernels (6.12.117, 6.18.61, 7.3.2, 7.4-rc1, or vendor backports) and reboot |
| Affected vs. Unaffected Protocols | Vulnerable when /proc/fs/nfsd/versions exposes +4.1 or +4.2; legacy NFSv3 and NFSv4.0 don't share this SEQUENCE session-slot bug |
Modern Linux distributions enable NFSv4.1 and NFSv4.2 by default on port 2049 | Disable nfs-server on unused hosts or restrict TCP 2049 strictly to verified storage subnets |
| AI Cluster & Pod Lateral Risk | Any compromised inference container or exposed AI gateway able to open raw TCP 2049 sockets to checkpoint storage gains a pre-auth root vector | Compromises shared fine-tuning datasets, proprietary checkpoints, and host storage servers simultaneously | Pair kernel patching with socket isolation controls in our AI gateway lockdown brief |
This lateral pivot mirrors the flat-network exposure seen in recent NGINX2Root (CVE-2026-123007) and VMware vCenter incidents. When untrusted application tiers share flat Layer-3 routing with file servers, an attacker doesn't need stolen Secure Shell (SSH) credentials to reach the storage plane. A single crafted TCP port 2049 sequence executes code in the storage kernel before authentication runs.
Why Shared Inference Storage Amplifies Kernel Exposure
You can't treat NFSv4 storage mounts inside an AI cluster like passive directories when inference runtimes share flat Virtual Private Cloud (VPC) subnets with your storage heads. Across multi-node model serving environments, teams export model registries, Python environments, and checkpoints over TCP 2049 so workers boot without copying multi-gigabyte files.
Even mounting exports read-only won't protect an unpatched server because exploitation happens pre-authentication inside nfsd before client mount permissions apply. If container RCE or supply-chain tampering compromises an agent runtime pod inside your internal VPC, it can send raw binary NFSv4 packets directly to unpatched 6.12.116, Ubuntu, Red Hat Enterprise Linux (RHEL), Debian, or Amazon Linux kernels to seize root on the storage host itself. Patching takes time. Reboot windows lag behind scanners. Pair kernel updates with Simple Storage Service (S3) object caching from our sovereign AI storage guide so compute subnets never expose writable or mountable kernel NFS ports broadly.
Five Steps to Verify and Lock Down Linux NFS Infrastructure
Verify exposure and isolate TCP port 2049 across your Linux fleet with five controls:
Audit Active
nfsdDaemons and Protocol Flags: Check every storage head and worker node withsystemctl is-active nfs-server,ss -ltnp 'sport = :2049', andcat /proc/fs/nfsd/versions; any host showing+4.1or+4.2exposes the vulnerableSEQUENCEpath.Install Upstream or Vendor Patched Kernels and Reboot: Upgrade systems to Linux 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 (incorporating commit
5d5a72e965c8b6ec870f114b9fe4961b8697732e, "nfsd: preflight SEQUENCE replies before accepting a slot"), or vendor releases (Ubuntu, RHEL, Debian, Amazon Linux), then drain mounts and schedule rolling reboots because running kernels remain vulnerable until restarted.Lock TCP Port 2049 Behind Host and Network Firewalls: Allowlist trusted storage Classless Inter-Domain Routing (CIDR) ranges explicitly before denying other TCP 2049 traffic via Uncomplicated Firewall (UFW, using
ufw),firewalld, or security groups so live GPU compute jobs don't drop, and disablenfs-serveron non-storage hosts.Move Shared AI Weights Off Flat Network File Mounts: Separate training storage and local Non-Volatile Memory Express (NVMe) shard caches onto isolated storage Virtual Local Area Networks (VLANs), modeling Total Cost of Ownership (TCO) trade-offs with our Private GPU Repatriation vs. Cloud Inference TCO Calculator.
Enforce Rolling Kernel Patch Targets: Bind Linux kernel regression testing, reboot windows, and storage perimeter verification into Service Level Agreements (SLAs) audited under the International Organization for Standardization (ISO) ISO 27001 Readiness Audit.
What Is NFS2ROOT (CVE-2026-99362) and Which Linux Kernels Are Vulnerable?
NFS2ROOT, tracked as Common Vulnerabilities and Exposures (CVE) identifier CVE-2026-99362 with a Common Vulnerability Scoring System (CVSS) score of 9.8, is a pre-authentication heap buffer overflow in the Linux kernel nfsd server over TCP port 2049. Disclosed by OpenSec security researchers in late November 2026 after remaining latent since kernel 3.16, the flaw occurs when NFSv4.1 or NFSv4.2 clients negotiate minimum ca_maxresponsesize_cached reply slots (SEQUENCE) and overflow ~61 bytes to gain kernel root remote code execution across unpatched kernels prior to 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1.
How Do You Check and Mitigate CVE-2026-99362 Without Breaking GPU Storage?
Check storage heads serving GPU clusters by running systemctl is-active nfs-server, ss -ltnp 'sport = :2049', and cat /proc/fs/nfsd/versions for active +4.1 or +4.2 support. Before enforcing TCP port 2049 deny rules via host firewalls (ufw or firewalld), allowlist your active GPU storage CIDR subnets so training mounts stay intact, then drain node mounts sequentially during rolling kernel patch reboots.
Run the Interactive Sovereign MoE VRAM & GPU Repatriation Calculator
Evaluating this architectural bottleneck in production? Benchmark your stack in 3.5 minutes with instant Stage 1 blocker detection and a downloadable boardroom PDF dossier:
👉 Launch the Diagnostic on Logic42 (https://logic42.ai/assessments/gpu-tco)
Or model your 2026 frontier MoE HBM3e VRAM residency and 24-month bare-metal payback:
🧮 Sovereign MoE VRAM & GPU Repatriation Calculator (https://logic42.ai/assessments/gpu-tco)
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.