A 12-year-old Linux kernel bug lets anyone on port 2049 get root without logging in
Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server

CVE-2026-99362 is a pre-auth heap overflow in the Linux kernel's NFS server, present since 2014. Any host serving NFSv4.1 or 4.2 on a reachable tcp/2049 can be compromised by a single TCP connection that writes 61 bytes past a kernel heap object, chained into a remote root shell. OpenSec's Antara found the bug and built the full exploit autonomously. Fixed in Linux 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1; patch and reboot, or firewall port 2049.
Kernel hardening does not remove the overflow. Patch every host.
- r3tr0
yeet can actually patch this via its XDP L7 programmable firewall
https://github.com/yeet-src/pfw
Here is the specific rule. I just added and confirmed it. (can see the CI).
https://github.com/yeet-src/pfw-rules/blob/53f78fc5823354f4a...
just pull the repo w `pfw pull` then `pfw ls` and apply and you're all set.
- superkuh
It really sounds like this is only NFS 4.1 and 4.2 and up(?). So my mitigation for right now (on distros that are out of support re: kernel) is simply to disable 4.1 and 4.2 protocol like the below (turn nfs-server off first),
$ echo "-4.1 -4.2" | sudo tee /proc/fs/nfsd/versions
I am no security expert but for now this change, which is temporary and reverts on reboot, seems reasonable. Before I did this I checked if my clients used nfs 4.1 or 4.2 at all and only one computer on my network did and it has fine 3/4 support. The vast majority of my nfs traffic is v3.
- gsich
no poc posted
- snvzz
Each such vuln a reminder that seL4[0] exists, and that Linux's TCB isn't getting smaller anytime soon.
- Gigachad
Thankfully no one assumed NFS secure for the public internet anyway so this should be minimally impactful. Also looks like it was patched upstream months ago.
Still, just another example of why C code can’t be exposed to the internet.