NFS2ROOT Linux Kernel Flaw Can Enable Remote Root Access

· Original article ↗

Summary

CVE-2026-99362, dubbed NFS2ROOT, is a heap buffer overflow in Linux nfsd that can let unauthenticated remote attackers gain root on exposed systems. No in-the-wild exploitation is reported; admins should patch or restrict NFS access.

Key points

  • The flaw affects Linux kernels older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 when NFSv4.1 or 4.2 is running and TCP port 2049 is reachable.
  • Attackers can send crafted NFS requests to corrupt kernel memory, read kernel memory, bypass KASLR, and execute a command with root privileges.
  • The vulnerability has reportedly existed since Linux kernel 3.16 and was found by ANSSI's Jérémy Jean; OpenSec shared an exploit and patch with NFSD maintainers.
  • No exploitation of CVE-2026-99362 in the wild has been reported.
  • Apply the latest kernel security updates from the distribution vendor and reboot; if patching is delayed, restrict port 2049 to trusted clients or disable nfs-server if NFS is unnecessary.
  • OpenSec recommends monitoring for nfsd kernel warnings, shells spawned by kernel workers, bursts of short NFSv4.1 sessions, and related kernel oopses.

Article Details

Vulnerability Types
  • Heap buffer overflow in the Linux NFS server (nfsd)
  • Remote privilege escalation to root
Severity
Critical
Affected Versions
  • Linux kernel versions older than 6.12.117
  • Linux kernel versions older than 6.18.61
  • Linux kernel versions older than 7.3.2
  • Linux kernel versions older than 7.4-rc1
Exploitation Status
not_reported
Exploit Availability
claimed_or_private
Patch Status
available
Workarounds
  • Restrict access to the NFS server over TCP port 2049 to trusted clients or networks.
  • If NFS sharing is not required, stop and disable the nfs-server service in /etc/nfs.conf.

MITRE ATT&CK

CVE

People

Products

Related Articles