Somewhere in the Linux kernel, a bug has been sitting quietly since 2014. On 25 November, researchers at OpenSec showed the world what it can do: give a complete stranger root access to a Linux file server, with no password, no account and no click. They call it NFS2ROOT. It is rated 9.8 out of 10 — about as bad as a vulnerability gets.

The flaw is tracked as CVE-2026-99362, and it lives in nfsd, the Linux kernel’s built-in NFS server. NFS, the Network File System, is the workhorse that lets computers share files across a network. It runs inside the kernel itself, in the most privileged part of the system, and it parses network input before it knows who sent it. That is where the bug lives: in the gap between a stranger knocking on the door and the server asking who they are.

Here is what happens. When a computer talks NFS version 4.1 or 4.2 — the defaults — each session keeps a cached copy of its last reply, so a retried request is answered exactly once. The client gets to decide how big that cache is. The bug lets a client shrink it to zero bytes, and then make the server copy a full reply into it anyway. The copy lands on the kernel heap, and the client chooses most of the bytes it contains. One TCP connection to port 2049, the NFS port, writes 61 bytes past the end of a kernel heap object. Chained together with a few more steps, that is a root shell.

OpenSec’s write-up lays out the chain. First the overflow corrupts the bookkeeping of a neighbouring session slot. Then a replay request leaks about 3.8 kilobytes of kernel heap, revealing the memory addresses that defeat the kernel’s address randomisation. Then a forged pointer tricks the kernel into freeing an object of the attacker’s choosing. That memory is refilled with a fake callback, built out of ordinary NFS client names. Finally the attacker hangs up, the server calls the fake callback, and the kernel runs the attacker’s command as root. In the demonstration video, the command is simple — whoami, id, poweroff — and the victim machine prints “root”, then “uid=0(root)”, then switches itself off.

The bug is twelve years old. It was introduced by a commit in Linux 3.16, released in 2014, that narrowed the reply buffer while handling SEQUENCE operations. It survived every review, every audit and every fuzzing campaign since. OpenSec says its automated white-box harness, Antara, flagged the reply-cache path, scored the bug 9.8, and built the leak, the arbitrary free and the root shell by itself, end to end, with no human in the loop. A researcher at France’s ANSSI, Jérémy Jean, found the same flaw independently and wrote the upstream fix. The CVE was published on 20 November; OpenSec’s write-up and video landed on 25 November, and the story reached the front page of Hacker News overnight.

Fixes are already available: kernel versions 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, along with backports to older long-term branches including 5.10.275, 5.15.226, 6.1.193 and 6.6.163. The instruction from OpenSec is blunt: patch every host, and reboot. Kernel hardening does not remove the overflow. If patching cannot happen today, the fallback is to firewall TCP port 2049 so only trusted networks can reach it, or to stop the NFS server service entirely if file sharing is not needed.

Who is actually exposed? Four conditions have to be true: an unpatched kernel, the in-kernel NFS server running, NFS version 4.1 or 4.2 enabled — which they are by default — and port 2049 reachable from somewhere other than the local machine. That combination describes a lot of infrastructure: Linux-based NAS boxes, build farms sharing caches, Kubernetes storage nodes, and self-managed NFS servers on cloud machines. Ordinary desktop and laptop users are not affected — the flaw is in the server side only, and a machine that merely mounts NFS shares is safe. Red Hat notes that its default configurations do not run the in-kernel NFS server at all, limiting the damage to systems specifically configured to export shares.

But there is a wrinkle, and it arrived at the worst possible time. The disclosure landed in Thanksgiving week in the United States, when many IT teams are short-staffed and the people who would normally patch a fleet of servers are on holiday. Security researchers have been blunt about the mood: administrators are already exhausted from a quick succession of critical vulnerabilities in recent months, and now a remote root flaw in one of the most widely deployed pieces of infrastructure on Earth needs patching before the long weekend is over. Some cloud vendors have been slower than others to publish advisories — Amazon Linux had no listing for the CVE at all as of the morning of 26 November, though its newest kernels may already contain the fix.

The exploit itself is being kept private. OpenSec has not released the code, and the details it published are enough for defenders to understand the bug without handing attackers a finished weapon. That restraint will not last forever — the fix is public, the vulnerable code is public, and skilled attackers can work backwards from both. The window for patching is measured in days, not months.

NFS2ROOT is also a story about how vulnerabilities are found now. Twelve years ago, a human wrote the buggy code. This year, an automated system found it, scored it and turned it into a root shell on its own. The same week, AI agents were documented escaping their sandboxes and probing government websites, and the FBI warned that AI hacking tools are automating attacks at machine speed. The defenders’ tools are getting faster. The attackers’ tools are too. The difference, as ever, is who patches first.

For anyone running a Linux file server, the message is simple: check your kernel version, check whether nfsd is running, and if port 2049 is reachable from outside your trusted network, close it or patch it today. A twelve-year-old bug does not care that it is a holiday.

Leave a Reply

Your email address will not be published. Required fields are marked *