Linux kernel · CVE-2026-99362
Nfs2root
Patch now if…Root, no login, on NFS servers open to untrusted hosts.
TL;DR
A Linux kernel NFS server bug lets anyone who can reach port 2049 get root, no login needed. OpenSec showed it working but keeps its exploit private; no attacks seen. If you serve NFSv4.1 or 4.2 to untrusted hosts, firewall 2049 until you can update.
More details
The client shrinks its session's reply cache to the minimum, then pads a request so the server copies 80 bytes into a zero-length buffer, 61 of them past the end of the kernel heap object and 40 chosen by the client; replaying the request returns 3.8 KB of kernel heap memory and the KASLR offset. Jérémy Jean of ANSSI sent the fix on 17 Aug and OpenSec's automated harness Antara found the bug on its own (reported 22 Sep); the fix reached the main kernel on 26 Oct and the first stable kernels on 6 Nov, but Ubuntu and Red Hat have no fix yet.
How scary is it?
Are you affected? only if all are true
1Kernel 3.16 or later, unpatchedcommand
The bug came in with kernel 3.16 (2014). Upstream fixed it in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Distro kernels backport fixes, so compare with your distro's version under Update.2,3,4,5,6,7,8,1
uname -r2The kernel NFS server runscommand
Only machines that share files with the kernel's own NFS server (nfsd) are affected; Red Hat says systems that don't act as an NFS server aren't exposed, and default RHEL doesn't run or enable it. A line of output means nfsd is loaded.1,9
lsmod | grep -w nfsd3NFSv4.1 or later is oncommand
The overflow is in NFSv4.1 session handling, and OpenSec and Red Hat both name servers offering NFSv4.1 or 4.2; OpenSec says they're on by default. In the output, +4.1 or +4.2 means this condition is met.1,2,9
cat /proc/fs/nfsd/versions4Untrusted hosts reach 2049command
The attacker needs one TCP connection to port 2049, no login and no mounted share: OpenSec calls it pre-auth, and the kernel CVE team says the steps involved skip the export access checks. A listener on any address other than loopback counts, unless a firewall lets only trusted hosts in.1,2
ss -ltn 'sport = :2049'What to do
1Update the kernel and reboot
Fixed so far: Debian 13 in 6.12.117-1, and Debian 12's optional linux-6.12 kernel in 6.12.117-1~deb12u1. Debian 12's default 6.1 kernel is still listed as vulnerable, although upstream fixed 6.1 in 6.1.193 on 23 Nov. Ubuntu lists its main kernel as vulnerable on every release from 16.04 to 26.10, with fixes in progress for 26.04 (7.0.0-45.45) and 26.10 (7.3.0-12.13); Ubuntu gives no date for them. Red Hat lists RHEL 6 to 10 as affected with no fix yet. On other distros, OpenSec's advice is to install the kernel update that lists CVE-2026-99362.11,10,9,8,2,1
Latest safe versions checked 24 Nov
2Can't update yet? Close 2049command
Firewall TCP port 2049 so only trusted hosts, such as your storage network, reach the server; Red Hat's page has firewalld steps. If the machine doesn't need to share files, stop the server with Red Hat's systemctl stop nfs-server and systemctl disable nfs-server; stopping it ends active NFS sessions. Or, from OpenSec, turn off NFSv4.1 and 4.2 with these lines in /etc/nfs.conf, then restart nfs-server; this turns off pNFS and some 4.2 features.1,9
[nfsd]
vers4.1=n
vers4.2=n3Scan and look for signs
The free NFS tool anfs added a check on 22 Nov that tells a vulnerable server from a fixed one over the network without triggering the overflow. OpenSec says each attempt leaves kernel warnings from nfsd4_check_resp_size; also look for kernel oopses naming nfsd4_, svc_ or call_usermodehelper functions, shells started by kernel workers, and bursts of short NFSv4.1 sessions from one address. The attack is valid NFS, so there is no network signature.13,1
4Why it isn't Patch now
It only matters where the kernel NFS server runs with NFSv4.1 or 4.2 and untrusted hosts can reach port 2049; machines that don't serve NFS aren't exposed. On servers that do, treat it as urgent: no login is needed and OpenSec built a root shell from it. OpenSec keeps its exploit private, we found no public exploit code or reports of attacks, and it isn't on CISA's list of exploited bugs. The ratings agree it's severe: the kernel CVE team gives 9.8, Red Hat Critical (a draft 9.8) and Ubuntu Critical. We'd change the verdict to Patch now if exploit code is published or attacks are reported.1,2,9,10,12
This page shows you how to check. It can't tell you you're safe.
Sources (13) and changelog
- OpenSec: Nfs2root write-up, root shell video, exploit private, checks, stopgaps, signs 25 Nov
- CVE record (kernel CNA): CVE-2026-99362, since 3.16, fixed versions, 9.8 and its reasoning 23 Nov
- Linux kernel (GitHub mirror): the fix by Jérémy Jean, written 17 Aug
- Linux kernel (GitHub mirror): nfsd-7.4 merge into the main kernel, with the fix 26 Oct
- kernel.org: 7.3.2 changelog, includes the fix 6 Nov
- kernel.org: 6.18.61 changelog, includes the fix 6 Nov
- kernel.org: 6.12.117 changelog, includes the fix 10 Nov
- kernel.org: 6.1.193 changelog, released 23 Nov, includes the fix
- Red Hat: Critical, default RHEL doesn't run nfsd, RHEL 6 to 10 affected, no fix, mitigations
- Ubuntu: priority Critical, main kernel vulnerable, 26.04 and 26.10 fixes in progress 25 Nov
- Debian tracker: fixed in Debian 13 6.12.117-1 and linux-6.12 6.12.117-1~deb12u1, Debian 12's 6.1 vulnerable
- CISA KEV catalog: not listed
- anfs (GitHub): CVE-2026-99362 check that doesn't trigger the overflow 22 Nov
- Published.