Protect.Computer
NEWS

NFS2ROOT: 12-Year-Old Linux NFS Server Flaw Gives Remote Root

· 2 min read · Network safety Device safety
NFS2ROOT: 12-Year-Old Linux NFS Server Flaw Gives Remote Root

A critical flaw in the Linux kernel’s Network File System (NFS) server, tracked as CVE-2026-99362 and nicknamed NFS2ROOT, lets a remote attacker with no account take root control of a server, BleepingComputer reports. It is a heap buffer overflow in the kernel’s NFS server (nfsd): specially crafted requests make the server write past the end of a memory buffer, which an attacker can use to read kernel memory, get around KASLR (a protection that hides where kernel code sits in memory) and plant a command that the kernel runs as root when the attacker closes the connection. According to BleepingComputer, the bug is 12 years old and dates to Linux 3.16 (March 2014). It was found by Jérémy Jean of the French agency ANSSI, who submitted a fix in August, and named by security firm OpenSec, which says it gave the NFS maintainers a working remote-root exploit and a patch in late September. BleepingComputer says there are no reports of the flaw being exploited in the wild.

The risk sits on machines that offer NFS to a network: OpenSec notes that port 2049 is commonly open on file servers, NAS appliances, build farms and Kubernetes storage nodes, and that the vulnerable code runs before any login. Kernel hardening does not remove the overflow, OpenSec says, so patching is the fix.

How to check if you’re affected

Affected versions are, per BleepingComputer, Linux kernels older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1, and only on hosts where the NFS server (nfsd, using NFSv4.1 or 4.2) is loaded and running and TCP port 2049 can be reached from the internet. Our note, not BleepingComputer’s: distribution kernels often carry backported fixes under a different version number, so check your vendor’s security notice for CVE-2026-99362 rather than comparing numbers alone.

  • Install your distribution’s latest kernel security update, then reboot so the patched kernel is the one running.
  • If you cannot patch yet, limit access to TCP port 2049 to trusted clients or networks.
  • If a host does not need to share files over NFS, stop and disable its nfs-server service.
  • There are no network signatures for the attack. BleepingComputer, relaying OpenSec, lists signs to watch for: kernel warnings from nfsd4_check_resp_size, shells spawned by kernel worker processes on a file server, bursts of short NFSv4.1 sessions from one source, and kernel oopses with nfsd4_*, svc_* or call_usermodehelper* in the trace.

We could not read OpenSec’s own write-up (its site returned an access challenge), so its statements and the version list above are as BleepingComputer reports them. The first kernel commit linked below is the one BleepingComputer links as Jean’s August fix; it was authored on August 17 and committed on October 4, and its commit message describes a client negotiating a very small cached-reply size, after which an over-long reply is copied into a zero-length buffer.

Sources

Related reading