OpenSec reports pre-auth root bug in Linux nfsd (CVE-2026-99362)
OpenSec says CVE-2026-99362, a pre-auth heap overflow in Linux nfsd, allows remote root; it lists fixed kernels, so patch and reboot.
- Published
- Updated
- Ecosystem
- Critical infrastructureOpen source
- Fixed in
- Linux 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
- Exploitation
- No evidence in the source of exploitation in the wild; OpenSec says it demonstrated root in its own test and keeps the exploit private
Live scores
CVE-2026-99362- EPSS
- 0.011
some chance of attack soon - VEDAS
- 0.978
strong exploit evidence - On CISA KEV
- Not listed
- Detection rule
- No public rule yet
What happened
According to OpenSec, which published the only source for this story, CVE-2026-99362 is a pre-authentication heap overflow in the Linux kernel’s NFS server (nfsd). OpenSec calls the bug “NFS2ROOT” and says it has existed since Linux 3.16 in 2014 OpenSec. OpenSec itself rates it CVSS 9.8, critical (AV:N/AC:L/PR:N/UI:N). That score comes only from OpenSec’s post. No NVD entry or other official score is included in the sources, so it is not confirmed here, and the severity label in this advisory’s front matter is deliberately kept conservative for that reason.
OpenSec says the flaw is in how nfsd handles the NFSv4.1 session reply cache. A client can set the per-slot cache to the minimum, which OpenSec says makes each slot buffer zero bytes. The server then copies a full reply into it. OpenSec says this writes 61 bytes past the end of a kernel heap object, and that the client chooses 40 of them OpenSec.
OpenSec claims its internal tool, Antara, chained the overflow into a root shell with no human involved. It says this was shown in a recorded run against a victim machine over tcp/2049 only. OpenSec says the exploit stays private. The run has not been independently verified, and the sources do not confirm any exploitation in the wild.
OpenSec gives this timeline:
- Jérémy Jean of ANSSI sent a fix upstream on 17 Aug 2026.
- OpenSec reported the bug to the NFSD maintainers and security@kernel.org on 22 September 2026.
- The CVE was published with fixes on 20 November 2026.
OpenSec credits Jean with finding the bug independently and writing the upstream fix OpenSec.
Am I affected?
OpenSec says a host is exposed if all four of these are true:
- The kernel is older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1, with no distribution backport. Check with
uname -r. - The in-kernel NFS server is loaded. Check with
lsmod | grep -w nfsd. - NFSv4.1 or 4.2 is enabled (OpenSec says this is the default). Check with
cat /proc/fs/nfsd/versions. - tcp/2049 is listening on a non-loopback address. Check with
ss -ltn 'sport = :2049'.
OpenSec says every kernel since 3.16 carries the bug, including LTS, distribution and appliance kernels. Which specific distribution kernels are patched or backported is not confirmed in the source, so check your vendor’s advisory OpenSec.
What to do now
- Check the four conditions above on each host that serves NFS.
- Update the kernel and reboot. OpenSec lists these fixed versions: 6.12.117 (6.12 LTS), 6.18.61, 7.3.2 and 7.4-rc1 (mainline). On a distribution kernel, OpenSec says to install the update that lists CVE-2026-99362.
- If you cannot patch yet, OpenSec suggests blocking tcp/2049 from everything except the storage network. Its example is
nft add rule inet filter input tcp dport 2049 ip saddr != 10.20.0.0/16 drop. Adapt the address range to your own network. - Alternatively, OpenSec says you can disable NFSv4.1 and 4.2 by setting
vers4.1=nandvers4.2=nunder[nfsd]in/etc/nfs.conf, then restartingnfs-server. OpenSec notes this turns off pNFS and some 4.2 features. - For detection, OpenSec says the attack is valid NFS, so there is no network signature. It suggests looking for:
- kernel warnings from
nfsd4_check_resp_size; - oopses with nfsd4_*, svc_* or call_usermodehelper* frames;
- shells spawned by kernel workers on a file server;
- bursts of short NFSv4.1 sessions from one source.
- kernel warnings from
Update, 1 December 2026
- CSO Online and Orca Security say the fix is also in older stable branches: 5.10.275, 5.15.226, 6.1.193 and 6.6.163, in addition to 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. The advisory lists only the last four. (csoonline.com)
- Orca Security says NFSv3 and NFSv4.0 are not affected, and that the flaw is triggered regardless of the export list, so a server exporting nothing but running nfsd threads can still be attacked. (orca.security)
- Orca Security says distribution patch status varies: some Debian lines have fixed packages, Ubuntu 24.04 LTS and 22.04 LTS fixes are in progress, and Red Hat lists RHEL 6 through 10 as affected, with some RHEL 8 derivative fixes available. (orca.security)
- Security Affairs says the upstream fix consists of commits 5d5a72e965c8 and 241848cc774e, which check that replies fit in the buffer, and that the bug was introduced by commit 47ee52986472. (securityaffairs.com)
- CSO Online says Jérémy Jean’s fix was merged into the mainline kernel on September 14, and that embedded devices and NAS appliances running older kernels may only be patchable through firmware updates. (csoonline.com)
Sources
- OpenSec: NFS2ROOT (CVE-2026-99362): pre-auth root in Linux nfsd
- csoonline.com: Flaw in Linux NFS file sharing exposes servers to remote takeover
- orca.security: CVE-2026-99362: Critical Linux NFS Flaw Enables Unauthenticated Remote Root Access
- securityaffairs.com: NFS2ROOT: 12-Year-Old Linux NFS Flaw Gives Attackers Root