NFS2ROOT on Linux: 12-year bug, remote root and patch now
CVE-2026-99362 in the Linux NFS server allows remote root via a heap overflow. Patch now, close 2049, and audit NFS exposure. High priority.
NFS2ROOT is a critical vulnerability in Linux’s NFS server (nfsd) that lets a remote attacker gain root. Tracked as CVE-2026-99362, it’s been around since Linux 3.16 (2014) and affects kernels older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 when nfsd v4.1/v4.2 is loaded and TCP 2049 is reachable.
What happened
The bug is a heap buffer overflow in nfsd. With crafted NFSv4.1 requests, an attacker can write past the buffer, read kernel memory, bypass KASLR, and plant a callback that the kernel runs as root when the NFS connection closes. No user interaction, low complexity.
The fix landed in August and patched builds are out. There are no reports of in-the-wild exploitation yet, but a full exploit was shared with maintainers, so the clock is ticking for anyone exposing 2049.
Why it matters
NFS often sits on file servers, NAS, build farms, and storage nodes in Kubernetes clusters. If that 2049 faces the Internet or an untrusted network, you just gave a straight path to the kernel. This isn’t about a leaked token; it’s root on the host.
I’ve said this in other fire drills, like in the Drupal critical RCE playbook: when remote execution or trivial escalation is on the table, you don’t negotiate—you patch and you segment. Same here, but stronger, because the blast radius is the kernel.
How to check exposure
- Kernel at risk:
uname -rand compare with 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1. - nfsd loaded:
lsmod | grep nfsdorsystemctl status nfs-server. - Port 2049 exposed:
ss -tulpn | grep :2049and review firewall/SG/VPC rules. If 2049 hits the Internet, that’s bad.
What to do now
- Apply vendor kernel patches and reboot to load the new kernel. Without a reboot it doesn’t count.
- If you can’t patch today, restrict 2049 to trusted clients/networks. Tight segmentation.
- If the host doesn’t need NFS, shut it down and disable it:
systemctl stop nfs-server && systemctl disable nfs-server. Reinforce via/etc/nfs.conf. - Inventory kernels and nfsd across critical infra. Prioritize backports and maintenance windows on storage, CI/CD, and clusters.
- Add network access controls: firewalls, VPC ACLs, and explicit ingress rules. NFS should never be world-open.
Signals to monitor
- Kernel warnings referencing
nfsd4_check_resp_size. - Shells spawned by kernel workers on file servers.
- Burst of short NFSv4.1 sessions from a single source.
- Kernel oops with
nfsd4_*,svc_*, orcall_usermodehelper*frames.
My take
Twelve years living with an overflow in a service we assume is internal. Yet 2049 ends up facing out more often than we like to admit. My read: immediate patching, 2049 under lock, and a living inventory of who runs nfsd and on which kernel. If you exposed NFS to the Internet, sending you a hug—and a sprint reprioritization.
PS: 2049 sounds sci‑fi, but if it’s open today it’s bringing you a very real incident.