NFS2ROOT (CVE-2026-99362) is a 12-year-old heap overflow in the Linux kernel’s own NFS server, nfsd. One TCP connection to port 2049, no password, no mount, and kernel memory gets corrupted. A public exploit appeared on 28 Nov 2026, and when the video was made (2 Dec) Ubuntu had no fixed kernel yet.
If you only mount shares or run a normal desktop, you’re not affected. If you run an NFS server, here’s how to check it and three ways to shield it, including the surprise: the advisory’s IPv4 firewall rule let IPv6 walk right in.
Check your server and your distro’s advisory first. Firewall and config changes can cut off real NFS clients, so try them on staging: Ubuntu · Debian · Red Hat.
Watch the video
NFSv4.1 sessions explained simply, the bug, and a real, fully updated Ubuntu 26.04 file server: check and three shields.
What is the bug?
NFSv4.1 uses sessions with numbered slots, and the server caches each slot’s last reply. The client chooses how big that cache is. Pick the minimum and each slot gets a zero-byte buffer.
A padded request then makes the reply encoder give up without reporting an error, so nfsd copies the whole reply into that zero-byte buffer: an 80-byte write, 61 bytes past the end, most of them chosen by the client. It happens before login, with no file handle and no mount, in every kernel since Linux 3.16 (2014).
Ratings: CVSS 9.8 (Linux CNA), 9.4 (Red Hat), Critical (Ubuntu). OpenSec built a private root exploit, and a separate public exploit (28 Nov) was only tested on Linux 6.12 and can crash the server. Kerberos on exports doesn’t stop the overflow. No attacks were seen in the wild and it wasn’t in CISA KEV.
Who is exposed?
- You run the kernel NFS server (
nfs-serveris active). - NFSv4.1 or 4.2 is enabled (the default).
- An attacker can reach tcp/2049.
Check your server (read-only)
systemctl is-active nfs-server
sudo cat /proc/fs/nfsd/versions # +4.1 / +4.2 = the vulnerable versions are on
ss -ltn 'sport = :2049' # listening on IPv4 AND IPv6?
On my fully updated Ubuntu 26.04 test VM (kernel 7.0.0-44) the changelog had no CVE-2026-99362 line: still vulnerable.
Three shields until the fix lands
Shield 1: turn off NFSv4.1 and 4.2. Set vers4.1=n and vers4.2=n in /etc/nfs.conf (or a file in /etc/nfs.conf.d/) and restart the NFS server. Clients that need 4.1/4.2 features will be affected.
Shield 2: firewall tcp/2049 to your storage network only, for IPv4 and IPv6. This is where I found the surprise. A rule like tcp dport 2049 ip saddr != NET drop only matches IPv4. nfsd also listens on IPv6, and an IPv6 client still mounted the share. Two rules work: accept the storage network first, then drop the port for everyone else.
Shield 3: don’t need it? Turn it off. sudo systemctl disable --now nfs-server
The fix
When your distro ships the fixed kernel (Debian already had it), install it, reboot, and check uname -r. Also hunt for kernel warnings from nfsd4_check_resp_size and unexplained file-server crashes.
Educational: a throwaway test VM where the only client is the VM itself. No exploit was downloaded, shown or run. Status as of 2 Dec 2026; check your distro’s tracker for updates.
Summary
- The bug: nfsd copies a whole reply into a zero-byte slot cache, pre-auth, since Linux 3.16.
- Not affected: machines that only mount NFS shares.
- Shield: disable 4.1/4.2, or firewall tcp/2049 for IPv4 and IPv6, or turn nfsd off. Then the fixed kernel and a reboot.
Also on Linux: USB2Shell: plug in a USB, get root
Sources: OpenSec (NFS2ROOT) · CVE record · NVD · Upstream fix · oss-security · Debian DLA-4942-1
More on YouTube
Prefer watching? The full NFS2ROOT walkthrough is on our YouTube channel: watch the video. For more hands-on breakdowns of security bugs, Linux servers and dev tools, subscribe at youtube.com/@fineshotai.
