A hole in Linux's NFS server for twelve years: anyone who can reach port 2049 gets root without an account
A researcher at France's cyber agency ANSSI found the flaw, patches are in recent kernel versions and no exploitation has been seen yet.
nfsd, the part of the Linux kernel that shares files over NFS, has contained a critical flaw since version 3.16 from 2014, BleepingComputer reports. The bug, CVE-2026-99362, is a heap buffer overflow: with specially crafted requests an attacker makes the server write past the end of a memory block. That lets the attacker read kernel memory, bypass the KASLR protection and plant a command that the kernel runs as root as soon as the attacker closes the NFS connection. No account or user interaction is needed.
Jérémy Jean of the French cyber agency ANSSI found the flaw and submitted a fix in August. Security firm OpenSec, which coined the name NFS2ROOT, gave the nfsd maintainers a working exploit and a patch at the end of September, ITdaily writes. Systems are vulnerable if they run a kernel older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 with nfsd serving NFS 4.1 or 4.2 and TCP port 2049 reachable.
No exploitation in the wild has been seen yet, and according to OpenSec the attack leaves no recognisable traces on the network. Anyone who cannot immediately install their distribution's kernel update and reboot should restrict port 2049 to trusted clients; anyone who does not need NFS should disable the service. On the server itself, kernel warnings from nfsd4_check_resp_size, shells spawned by kernel processes and bursts of short NFSv4.1 sessions from a single source can point to an attack.