Latest briefing

Linux NFS server flaw CVE-2026-99362 allows remote root privilege escalation

TL;DR

The Linux kernel's NFS server is vulnerable to a critical heap buffer overflow tracked as CVE-2026-99362. Remote attackers can gain full root privileges on exposed systems by sending crafted requests. Update your kernel immediately to block this attack.

What happened

A critical vulnerability in the Linux kernel's Network File System (NFS) server, dubbed NFS2ROOT, allows unauthenticated remote attackers to gain root access. The flaw exists in the nfsd component and has been present since the release of Linux kernel version 3.16 in March 2014.

The vulnerability is a heap buffer overflow triggered when the server processes specific NFSv4.1 or v4.2 requests. By sending maliciously crafted packets, an attacker can corrupt kernel memory, bypass KASLR, and place a callback that executes commands with root privileges once the NFS connection is closed. This exploitation requires TCP port 2049 to be reachable over the internet while the nfsd service is running.

Why it matters

This is a high-impact flaw because it turns a standard file-sharing service into a gateway for total system takeover. Because the vulnerability has existed for over a decade, it affects a massive range of legacy and modern Linux environments, including file servers, NAS appliances, and Kubernetes storage nodes. Since the attack requires no user interaction and can bypass standard kernel hardening, any system exposing port 2049 to the public internet is at extreme risk of a remote root compromise.

Who is affected

Systems running the following Linux kernel versions are vulnerable:

  • Versions older than 6.12.117
  • Versions older than 6.18.61
  • Versions older than 7.3.2
  • Versions older than 7.4-rc1

What to do now

  1. Update your Linux kernel to version 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 and reboot the system.
  2. Restrict access to TCP port 2049 to only trusted clients or specific internal networks.
  3. Stop and disable the nfs-server service in /etc/nfs.conf if NFS sharing is not required.
  4. Monitor system logs for kernel warnings from nfsd4_check_resp_size or kernel oopses containing nfsd4_*, svc_*, or call_usermodehelper* frames.

What we don't know yet

  • Whether this vulnerability has been exploited in the wild.

Sources

  1. bleepingcomputer.comhttps://www.bleepingcomputer.com/news/security/new-nfs2root-linux-flaw-can-let-attackers-gain-root-privileges/
  2. git.kernel.orghttps://git.kernel.org/stable/c/aff12e327620258123f847d7d06565f4555c5cb4
  3. git.kernel.orghttps://git.kernel.org/stable/c/6a26c5473bb112d8420ffd48d5331bc5fb5a2065
  4. git.kernel.orghttps://git.kernel.org/stable/c/fa85acf074f000ad3d1a5ffb703128ff97de983d
  5. git.kernel.orghttps://git.kernel.org/stable/c/cd303eb29cf34a6780f4c42aca5b8ca4a05a5d59

Offensive security engineer, ethical hacker and penetration tester. Writes Unpatched Intel from h4rithd.com.