Key points

The exploit chain works like this: each NFSv4.1 session has “slots” holding a copy of the most recent reply, and the client is allowed to negotiate the size of that buffer — including choosing 0 bytes. A malicious packet makes the server believe the reply has succeeded, then copies the entire reply into the 0-byte buffer, writing 61 bytes past the heap object, about 40 of them chosen by the attacker. From that single overflow, the attacker leaks kernel memory to defeat KASLR (the layer that hides kernel memory addresses), plants a callback, and when the connection closes, the kernel executes code with root privileges. According to the KASAN report in the fix, this is a “write primitive” in the kernel — and in the kernel, the ability to write is everything.

What makes the flaw frightening is the exposure. Port 2049 sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes — and containers sharing a directory use the host’s nfsd module, so a shared folder can quietly turn the host into a target. OpenSec put it bluntly in its advisory: “Port 2049 sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes. Since 2014, the Linux kernel listening on it has let anyone who can reach it write into kernel memory before logging in… Kernel hardening does not remove the overflow. Patch every host.”

It is also a milestone for how security bugs are found: one of the two parties that found NFS2ROOT used an automated AI-powered testing system, and OpenSec says that same system built the full exploit. BleepingComputer lists NFS2ROOT in a long run of Linux privilege-escalation flaws disclosed in 2026 — RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot and DirtyDecrypt/DirtyCBC — showing the Linux kernel is being scrutinised more closely than ever, by people and by machines.

Why it matters

This is the rarest and most dangerous kind of flaw in cybersecurity: remote, no user interaction, low complexity, the highest privilege — and it sat quietly in the kernel of millions of servers for 12 years. The good news is that fixes are available on every stable branch and there is no sign of real-world exploitation; the bad news is that every unpatched NFS server with port 2049 open to the Internet is exposed, and now that the fix is public, attackers also know where to look.

Sources
BleepingComputer — “New NFS2ROOT Linux flaw can let attackers gain root privileges”, Nov 27, 2026: bleepingcomputer.com/news/security/new-nfs2root-linux-flaw-can-let-attackers-gain-root-privileges/
CSO Online — “Flaw in Linux NFS file sharing exposes servers to remote takeover”, Nov 27, 2026: csoonline.com/article/4254114/flaw-in-linux-nfs-file-sharing-exposes-servers-to-remote-takeover.html