A memory-corruption bug in the Linux kernel's built-in NFS server, nicknamed NFS2ROOT and tracked as CVE-2026-99362, can let an unauthenticated machine on the network write past the end of a kernel heap buffer, and the team that disclosed it says that is enough for a root shell. The flaw sits in how nfsd handles NFSv4.1/4.2 session replies, it dates back to a March 2014 change that shipped in Linux 3.16, and it is rated CVSS 9.8 by the kernel's CVE team, according to watchTowr and BreachNews. Fixed kernels have been out since early November; the disclosure write-up landed on November 25 and coverage spread on November 26–27.
Why it matters: NFS servers are common in labs, render farms, home NAS boxes and internal storage. The attack needs no login, no user action and, according to most write-ups, nothing beyond reaching TCP port 2049. No in-the-wild exploitation had been reported as of November 26–27, and the bug was not in CISA's Known Exploited Vulnerabilities catalog, per watchTowr, BreachNews and tldrcve. No public exploit code has been released.
What the bug is
We read the upstream fix directly. Its author, Jérémy Jean, writes that a client can negotiate the session's cached-reply size down to the minimum, so every reply slot gets a zero-length cache buffer. A crafted COMPOUND request then tricks the server into treating a truncated SEQUENCE reply as successful and copying the whole reply into that empty slot. The commit's own KASAN trace shows an 80-byte write out of bounds, and it notes the client chooses most of the overflowing bytes. The fix checks the reply size before the server accepts the slot.
The commit is dated August 17, 2026, carries a Fixes: tag pointing at commit 47ee52986472 ("nfsd4: adjust buflen to session channel limit"), and was merged into mainline with the nfsd pull for Linux 7.4 on October 25.
Secondary reports add the rest of the story:
- Who found it: Jean, of France's cybersecurity agency ANSSI according to the write-ups, sent the fix after finding it by code review. OpenSec Intelligence separately flagged the bug in September and published the "NFS2ROOT" write-up on November 25, according to the outlets covering it. OpenSec says it chained the overflow with a heap leak to defeat KASLR and got root in a lab; it has kept the exploit private. We couldn't open OpenSec's post from this unattended run, so its claims are relayed here as reported by those outlets.
- Who is exposed: all four must be true, according to the checks OpenSec published and the write-ups repeat: a vulnerable kernel, the in-kernel
nfsdloaded, NFSv4.1 or 4.2 enabled, and port 2049 reachable by the attacker. NFSv3 and NFSv4.0 are reported not to be on the vulnerable path. Sources disagree on whether the server needs a configured export: tldrcve says the kernel team's description implies export checks are skipped, while other write-ups say there is no clear public answer. Assume yes, it can be hit, until your vendor says otherwise. - Severity: 9.8 from the kernel CNA, per watchTowr and BreachNews, and 9.4 from Red Hat on its own scoring, per BreachNews and grep.tips.
Fixed kernel versions
We confirmed each of these stable releases contains the backported fix by checking the stable tree's tags:
| Branch | First fixed release | Released |
|---|---|---|
| 7.3 | 7.3.2 | Nov 6 |
| 6.18 | 6.18.61 | Nov 6 |
| 6.12 | 6.12.117 | Nov 10 |
| 6.6 | 6.6.163 | Nov 23 |
| 6.1 | 6.1.193 | Nov 23 |
| 5.15 | 5.15.226 | Nov 23 |
| 5.10 | 5.10.275 | Nov 23 |
Most people run a distribution kernel, not one of these, and here the reports are messy. BreachNews says Red Hat shipped RHSA-2026:103817 for RHEL 8.10 on November 26 and that Ubuntu had no fix as of November 25. For Debian, BreachNews and CommandLinux say trixie is fixed but bookworm's default 6.1 kernel was still vulnerable. tldrcve's own pages contradict each other on Red Hat and Ubuntu. Check your vendor's CVE tracker for CVE-2026-99362 rather than relying on any of these snapshots.
What to do
- Check whether you're exposed. These are the checks the write-ups attribute to OpenSec:
uname -r # kernel version
lsmod | grep -w nfsd # is the in-kernel NFS server loaded?
cat /proc/fs/nfsd/versions # look for +4.1 or +4.2
ss -ltn 'sport = :2049' # is anything listening on 2049?
- Patch. Install your distribution's fixed kernel as soon as it lands, then reboot. Kernel fixes don't apply until you do.
- Until then, restrict port 2049 to the specific clients that need it, at the host firewall and at the network edge. NFS should never face the internet.
- If you can live without NFSv4.1/4.2, the write-ups describe turning them off in
/etc/nfs.confunder[nfsd](vers4.1=n,vers4.2=n) and restartingnfs-server. That drops pNFS and some 4.2 features. If the box doesn't need to serve NFS at all, stop and disablenfs-server. - Don't forget appliances. NAS boxes and storage appliances built on Linux may run
nfsdwithout you thinking of them as "Linux servers". Watch for firmware updates that name CVE-2026-99362.
None of the workarounds replaces the kernel update. They only shrink who can reach the bug.
What to watch
Whether OpenSec or anyone else publishes exploit code, whether CISA adds the CVE to KEV, and when Ubuntu and Debian bookworm ship fixed kernels. A 12-year-old bug with a stated root exploit and a simple network precondition is the kind that gets weaponised once details spread.
Sources
- Linux kernel (GitHub mirror) — nfsd: preflight SEQUENCE replies before accepting a slot (commit 35ff1a7a7e38) github.com
- watchTowr — NFS2ROOT (CVE-2026-99362) FAQ: Linux NFS Exposure and Fix watchtowr.com
- BreachNews — NFS2ROOT CVE-2026-99362: Linux nfsd Root Bug Patched breachnews.com
- CommandLinux — Critical NFS2ROOT Flaw In Linux Kernel NFS Server Allows Remote Root Access commandlinux.com
- grep.tips — A 12-year-old flaw in Linux's NFS server hands root to anyone on port 2049 grep.tips
- tldrcve — Nfs2root (CVE-2026-99362) in plain English tldrcve.com