NFS2ROOT

Disclosed Nov 19, 2026

Updated Dec 2, 2026

RelatedCVSS 9.8PoC PublicPre-Auth RCE

A 12-year-old pre-authentication heap out-of-bounds write in the Linux kernel's in-kernel NFS server (nfsd) that allows any remote client able to reach TCP port 2049 to corrupt kernel slab memory and achieve root code execution.

Component

Linux Kernel NFS Server (nfsd NFSv4.1 SEQUENCE Reply Handling)

Attack Vector & Class

Pre-Auth RCE

Memory Safety

Exploitation Status

No confirmed wild attacks

Public PoC available

CVSS & Ecosystems

9.8 (v3.1)

Linux, Kernel, NFS

Affected Versions

  • Linux kernel 3.16 through unpatched 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), and 7.3 (< 7.3.2) running nfsd with NFSv4.1+

Fixed / Recommended Versions

  • Linux kernel 5.10.275+, 5.15.226+, 6.1.193+, 6.6.163+, 6.12.117+, 6.18.61+, 7.3.2+, or 7.4-rc1+
  • Updated Linux distribution security kernel packages addressing CVE-2026-99362 (Debian, RHEL, Amazon Linux, SUSE, Ubuntu)

Technical Root Cause

Present since Linux kernel 3.16 (2014), CVE-2026-99362 occurs when nfsd processes NFSv4.1 SEQUENCE replies for session slots. An unauthenticated client connecting to TCP port 2049 can negotiate ca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ during CREATE_SESSION—before export authorization checks run—leaving a zero-length sl_data buffer. nfsd4_store_cache_entry then copies the reply past the end of the kmalloc'd nfsd4_slot into adjacent slab objects and replays corrupted memory back to the client, providing both an information leak and write primitive for kernel RCE. OpenSec kept its full root exploit private while trigger/check PoCs circulate publicly.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Remediation & Hardening

  1. 1Upgrade affected Linux NFS servers to a patched kernel release and reboot immediately.
  2. 2Restrict TCP/UDP port 2049 strictly to trusted client networks at the firewall—/etc/exports rules do not block pre-auth exploitation.
  3. 3If patching is delayed, disable NFSv4.1 and NFSv4.2 in the NFS server configuration and monitor dmesg/journalctl for nfsd4_check_resp_size warnings or kernel oopses.