r/StopBadBots • u/siterightaway • 3d ago
Running a Linux server for your site? Patch this NFS flaw (CVE-2026-99362) before bots own your root.
Heads up, folks—there's a massive, 12-year-old critical flaw in the Linux kernel's NFS server (CVE-2026-99362), and it's bad news. Dubbed NFS2ROOT, it basically lets remote attackers hijack your box and get full root access out of nowhere.
It's been hiding in plain sight since kernel 3.16 back in 2014. Basically, it's a nasty heap buffer overflow in nfsd. If you're running an older kernel (anything before 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1) with nfsd 4.1 or 4.2 active and port 2049 exposed to the web, you're wide open. Attackers don't even need credentials or user interaction—they just send a rigged request, mess with the kernel memory, bypass KASLR, and boom: once they drop the connection, their malicious command runs straight as root.
Look, even though we haven't seen this exploited in the wild yet, don't sleep on it. Patch your kernels ASAP and make sure you actually reboot so the fix kicks in.
Can't patch right now? Lock down TCP port 2049 to trusted IPs only, or just kill the nfs-server service in /etc/nfs.conf if you don't need it. Like OpenSec put it, kernel hardening won't save you from this overflow—you've gotta patch every single host. Keep an eye on your logs for weird nfsd4_check_resp_size warnings, random shells spawning from kernel workers, or sudden spikes in short NFSv4.1 sessions.
5
u/No_Illustrator5035 3d ago
Why would you ever expose port 2049 to the Internet?
3
u/runnercola 3d ago
Exploit or no, it’s a bad idea to expose NFS traffic to the internet in general…. Not surprised there is no exploit in the wild - as hopefully very few people actually have nfs exposed over the web.
1
u/semtexfree 2d ago
Most likely chances of success with this one will be if you are aready inside the LAN. Usually, public facing NFS servers will have rules that allows only a set of IPs to access it, and most of them won't expose any shares available.
1
u/graph_worlok 1d ago
Anybody who is actually running NFS and has the module loaded has gone out of their way to do so, lol.
1
u/ledow 1d ago
"and port 2049 exposed to the web"
If you're doing that, turn off your machine, quit your job if it's IT-related, and NEVER return to the industry EVER AGAIN.
0
u/Takeoded 3d ago
It's practically negligent to not run daily automated updates, with automatic on-demand reboots, these days. My server fleet does this every 1AM.
1
u/[deleted] 1d ago
[removed] — view removed comment