NFS2ROOT (CVE-2026-99362): Critical Linux NFS Server Flaw Lets Unauthenticated Attackers Gain Root

Cyber · 2026-11-30 · By Reef Administrator - H.A

NFS2ROOT (CVE-2026-99362): Critical Linux NFS Server Flaw Lets Unauthenticated Attackers Gain Root

A 12-year-old out-of-bounds write in the Linux kernel's NFSv4.1 server (nfsd) lets anyone who can reach port 2049 corrupt kernel memory and take root; patch to the fixed kernel and reboot.

A critical flaw in the Linux kernel's built-in NFS file server can let an attacker take full root control of a server over the network, without a password. The bug is tracked as CVE-2026-99362 and its finders have nicknamed it NFS2ROOT. It has a CVSS score of 9.8 out of 10. Red Hat rates it 9.4, which is still Critical.

The flaw has been in the kernel for about 12 years, since Linux 3.16 (2014). Patches came out on 19 November 2026. No attacks in the wild have been reported yet, but researchers have already built a working remote-root exploit, so admins should patch now.

What the flaw is

NFS (Network File System) lets computers share folders over a network. Linux has an NFS server built into the kernel, called nfsd. The bug is in how nfsd handles NFSv4.1 sessions (and NFSv4.2, which builds on them).

Each NFSv4.1 session has "slots" that keep a copy of the server's last reply, so a client can safely resend a request. A client can ask the server to keep this cached reply very small, even zero bytes. The researchers found that if a client does this and then sends a specially crafted request, the server copies its full reply into the tiny buffer anyway. That writes past the end of the buffer into kernel memory (an out-of-bounds write on the heap).

The fix, titled "nfsd: preflight SEQUENCE replies before accepting a slot", makes the server check the reply size before it uses the slot.

Why it is so serious

The researchers point out that port 2049 is often open on file servers, NAS boxes, build farms and Kubernetes storage nodes, so many machines could be reachable from inside a network.

Who is affected

You are exposed only if all of these are true:

Red Hat notes that a default RHEL install does not run the NFS server, so ordinary desktops and web servers are usually safe. File servers, NAS appliances and storage nodes are the main risk.

Timeline

Fixed kernel versions

Upgrade to at least the version shown for your kernel series:

Distribution status (check your vendor's page for updates):

After installing the new kernel, reboot. The old kernel stays in memory until you do.

If you can't patch right away

How to spot an attack

The researchers say there is no simple network signature, but these signs on a file server are worth checking:

Sources

REEF SENTINEL