If your Linux server shares files over NFS, check the kernel version before you do anything else. A flaw that has sat in the NFS server for twelve years lets anyone who can reach port 2049 become root. No password. No account. No click. Just one TCP connection.
The bug is CVE-2026-99362. Security firm OpenSec named it NFS2ROOT. The kernel CVE team puts it in plain words: an unauthenticated attacker can corrupt kernel memory. The score is 9.8 out of 10, critical.
Who is affected is one sentence. Every kernel since 3.16, from March 2014, that serves NFSv4.1 or NFSv4.2. In other words, nearly every machine that exports folders over NFS and has not updated the kernel these past months.
The problem sits in nfsd, the NFS server inside the kernel. It keeps the last reply to each client in memory so it can repeat it if the connection drops. The protocol requires that. The client decides how big that cache is. Ask for the smallest size and the reserved space is zero bytes, and the server still copies the whole reply into it. The result is an out-of-bounds write: about 80 bytes, 61 past the object, and a good chunk of them chosen by the caller.
That overflow does not stop at a crash. Chained, it reads kernel memory to beat KASLR, frees a chosen object and plants a fake callback. When the connection closes, the kernel runs the attacker's command as root. The full path, one connection to a shell.
Jérémy Jean of France's ANSSI found it and sent the patch with a KASAN report in August. Then OpenSec's Antara harness caught the bug on its own, scored it and built the root exploit end to end. The disclosure came with the bill already paid. On 22 September they sent the full exploit and the patch to the NFSD maintainers and [email protected]. On 20 November the CVE shipped with the fixes ready. That is the usual move of the white-hat hacker: warn first, exploit never.
No sign of active exploitation so far. That is what the public record says, and it is not the same as knowing nobody has used it. A flaw with no network signature, travelling as legitimate NFS traffic, is exactly the kind of thing that leaves no trace. To catch it early, watch for kernel warnings from nfsd4_check_resp_size, shells spawned by kernel workers, and bursts of short NFSv4.1 sessions from a single source.
Here is how to know if you are exposed. Four checks, and if all four come back yes, the machine is the target: a kernel older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1, the nfsd module loaded, NFSv4.1 or 4.2 active, and port 2049 reachable from outside. Red Hat adds the nuance: its distribution does not start nfsd by default, so the risk sits with whoever exports NFS folders on purpose.
The fix is patch and reboot. A kernel flaw has no live patch that matters. You have to reboot for the new kernel to take over. If you cannot patch today, you have two exits. First, close port 2049 to the world and leave it for the storage network only. Second, turn off NFSv4.1 and 4.2 in /etc/nfs.conf. And if the server does not need to share files at all, stop nfs-server.
The pattern matters more than this one bug. A component that has lived in the kernel for twelve years, rarely reviewed because it always worked, talking to the network before it knows who is calling. The day the exploit shows up, the fix is already ready. The reboot is still pending on half a dozen servers. That is where the attacker walks in.