NFS2ROOT (CVE-2026-99362): Linux NFS flaw gives remote root
Part of the CVE-2026-99362 story · since 29 Nov
- Sun 29 Nov, 11:00 UTC. Security Affairs, first report. NFS2ROOT Linux flaw lets attackers gain remote root access.
- Sun 29 Nov, 11:07 UTC. cybersixt, its first report on the story. NFS2ROOT (CVE-2026-99362): Linux NFS flaw gives remote root. This article, 2nd of 2.
A heap overflow in the Linux kernel's NFS server, CVE-2026-99362, lets anyone who can reach TCP port 2049 on an unpatched server run code as root without logging in. The kernel's CVE record, published on 19 November, rates it 9.8 and traces it to Linux 3.16, released in 2014. The fix is in stable kernels 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, and in 7.4-rc1.
OpenSec, which named the bug NFS2ROOT, says its AI system Antara flagged it on 21 September and built a working attack without human help, Security Affairs reported on Sunday. A researcher at France's cybersecurity agency ANSSI found the same flaw independently and submitted a fix in August. OpenSec says it is not aware of attacks exploiting it.
Distribution fixes are uneven. Debian has fixed kernels for Debian 12 and 13. Red Hat lists Red Hat Enterprise Linux 8 as fixed but RHEL 7 and 9 as affected with no fix released. SUSE lists SUSE Linux Enterprise Server 15 SP7, 16.0 and 16.1 and openSUSE Leap 16.0 and 16.1 as affected, and Ubuntu lists 26.04 and 14.04 as affected; its tracker had not given a status for 16.04 to 24.04 when we checked.
How the bug works
The CVE record describes the mechanism. When the NFS server handles a SEQUENCE operation, it shrinks the reply buffer to the session's cached-reply limit before it accepts the request. A client can negotiate that limit down to the minimum, which leaves every session slot with a zero-length reply cache. The client then pads the request's COMPOUND tag so the reply has room for the SEQUENCE opcode but not the status word after it.
The server stops encoding but still treats the operation as successful, so it copies the whole reply, headers and tag included, into the zero-length slot. Because the tag comes from the client, the attacker chooses most of the bytes written past the end of the buffer. OpenSec turned that write into a root shell, according to Security Affairs. The fix checks that the SEQUENCE result fits before shrinking the buffer and leaves the slot unchanged when it does not.
Who is exposed
An attacker needs a vulnerable kernel running the in-kernel NFS server, NFSv4.1 or 4.2 enabled, which is the default, and network access to TCP port 2049. The server does not have to face the internet: an attacker already inside the network can reach it, OpenSec says, via Security Affairs.
What to do
Install the kernel update from your distribution that lists CVE-2026-99362 and reboot. Vendors backport fixes, so the version number alone does not show whether a kernel is patched. Where no fix exists yet, as on RHEL 9 and SUSE, OpenSec's advice, as reported by Security Affairs, is:
- limit TCP 2049 to trusted storage networks, for IPv6 as well as IPv4;
- disable NFSv4.1 and 4.2 with
vers4.1=nandvers4.2=nunder[nfsd]in/etc/nfs.confand restart the NFS server, which also turns off pNFS and some NFSv4.2 features; - stop and disable the NFS server where it is not needed;
- watch for
nfsd4_check_resp_sizewarnings, unexpected crashes innfsd4_*,svc_*orcall_usermodehelper*functions, shells started by kernel worker processes and bursts of short NFSv4.1 sessions from one address.
"Kernel hardening does not remove the overflow. Patch every host," OpenSec says. Red Hat and SUSE have not given dates for their fixes.
How the story developed
2 articles from 2 outlets since 29 Nov. Still developing; the latest report was 16 hours ago. This was the 2nd report, within the hour.
- Sun 29 Nov, 11:00 UTC. Security Affairs, first report. NFS2ROOT Linux flaw lets attackers gain remote root access.
- Sun 29 Nov, 11:07 UTC. cybersixt, its first report on the story. NFS2ROOT (CVE-2026-99362): Linux NFS flaw gives remote root. This article, 2nd of 2.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 2 articles as a listHide the list
- Sun 29 NovDay 02
- NFS2ROOT Linux flaw lets attackers gain remote root access11:00 · Security Affairs · First report
- NFS2ROOT (CVE-2026-99362): Linux NFS flaw gives remote root11:07 · cybersixt · This article, 2nd of 2
Sources
- CVE-2026-99362 recordPrimary sourcecve.org
- Linux stable fix commitPrimary sourcegit.kernel.org
- Debian security trackerPrimary sourcesecurity-tracker.debian.org
- Red Hat CVE pagePrimary sourceaccess.redhat.com
- SUSE CVE pagePrimary sourcesuse.com
- Ubuntu CVE pagePrimary sourceubuntu.com
- Security Affairs on OpenSec's reportReportsecurityaffairs.com
More reporting
- Linux kernel vulnerability NoisyTCP crashes servers before login17 Nov · names the same CVE, actor or vendor
- OpenAI says AI agents exploited 948 Linux kernel flaws in one run5 Nov · names the same CVE, actor or vendor
- CVSS 9.8 Linux flaw lets attackers take root on Go servers by default1 Nov · names the same CVE, actor or vendor
- Buda.com data breach exposes 190,000 users' ID numbers30 Nov
- Rhysida affiliate ran ransomware attacks with OpenCode AI agent30 Nov
Written by CyberSIXT from the sources above.How we reportCorrectionsRSS