Last updated: 28 November 2026. Verified against OpenSec's own NFS2ROOT disclosure as relayed by Cybernews and Sandbanks Digital's vendor-patch summary; seeHow this was checked.
A bug that's been sitting in the Linux kernel's built-in NFS server since 2014 just got a name, a working exploit, and a 9.8 CVSS score. CVE-2026-99362 — nicknamed NFS2ROOT by the security firm OpenSec — lets an attacker send a single crafted request to any exposed NFS server and walk away with a root shell. No login, no account, no user interaction. If a server is reachable on the right port and running the right NFS version, that's the whole prerequisite list.
Who found it, and how
The fix traces back to Jérémy Jean of ANSSI, France's national cybersecurity agency, who submitted a patch to the kernel in August 2026. OpenSec's own automated vulnerability-research tool, Antara, found the same underlying bug independently the following month and reported it to the NFSD maintainers and security@kernel.org on September 22, 2026, along with a working exploit and a proposed fix. OpenSec published its own write-up under the NFS2ROOT name on November 25, 2026, once the kernel CVE team had assigned CVE-2026-99362 and the fixes had landed upstream.
What's actually broken
The flaw lives in nfsd, the NFS server built directly into the Linux kernel — not in any particular Linux distribution's packaging or a userspace daemon layered on top. Newer NFS protocol versions keep a cache of recent replies, and the connecting client gets to say how much memory that cache is allowed to use. NFS2ROOT abuses that: a crafted request shrinks the reply cache down to zero bytes, and the server then tries to write its full response into that undersized buffer anyway, spilling the overflow into adjacent kernel memory — by OpenSec's own account, about 61 bytes past the end of a kernel heap object, written before the server has even verified who's connecting.
That overflow alone is enough to crash the server. Getting from there to a root shell takes an extra step: OpenSec's exploit chain first leaks kernel memory to recover addresses and defeat KASLR (kernel address space layout randomization), then uses the overflow a second time to overwrite memory it controls to redirect execution — arriving at arbitrary code running as root.
Who's actually exposed
Four things all have to be true at once for a server to be vulnerable:
- The kernel doesn't yet have the fix.
- The in-kernel NFS server (
nfsd) is actually running. - NFS version 4.1 or 4.2 is enabled — servers offering only NFSv3 or NFSv4.0 never execute the vulnerable code path at all.
- TCP port 2049 is reachable, whether from the open internet or just from other machines on the same local network.
The bug has existed since Linux kernel 3.16, released in 2014 — kernels older than that never had the faulty code in the first place. Fixes have landed upstream in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, and 7.3.2 (with 7.4-rc1 also carrying the fix), but upstream landing and your distribution actually shipping a patched kernel are two different things, and as of late November 2026 there was a real gap between them. Debian 13 had a fixed kernel in 6.12.117-1; Debian 12's standard 6.1 line was still vulnerable, with the fix only available via the optional linux-6.12 backport. Ubuntu's security tracker listed releases from 16.04 through 26.10 as vulnerable, with fixes for 26.04 LTS and 26.10 still in progress. Red Hat hadn't published a fixed kernel at all, though Red Hat notes its default installs don't run the NFS server out of the box. NAS vendors Synology and QNAP hadn't published advisories specifically addressing NFS2ROOT as of the same date — worth checking directly rather than assuming silence means "not affected."
Is this actually being exploited right now?
As of the most recent reporting, no attacks had been publicly reported, and the vulnerability hadn't appeared on CISA's Known Exploited Vulnerabilities catalog. OpenSec has kept its own working exploit private rather than publishing it, and no one else has claimed a public one. That's a meaningfully different risk posture than "actively exploited in the wild" — but a detailed technical write-up plus a confirmed, specific kernel fix is exactly the kind of information that lets other researchers (or attackers) reconstruct a working exploit quickly, so the lack of in-the-wild attacks so far isn't a reason to deprioritize patching.
What to actually do about it
- Check whether you're exposed before assuming either way. Run
uname -rfor your kernel version,lsmod | grep -w nfsdto confirm the NFS server module is loaded,cat /proc/fs/nfsd/versionsto see whether NFSv4.1 or 4.2 show up with a+, andss -ltn 'sport = :2049'to see whether anything beyond localhost can reach the port. All four conditions true means you're exposed. - Patch and reboot as soon as your distribution ships a kernel carrying the fix — the old, vulnerable kernel keeps running in memory until you actually reboot, so patching the package alone isn't enough.
- If a patched kernel isn't available yet, drop NFSv4.1 and 4.2 support as a stopgap: set
vers4.1=nandvers4.2=nunder the[nfsd]section of/etc/nfs.confand restartnfs-server. This isn't a fix, just a way to stop traffic from reaching the vulnerable code path — test that your backups and NFS clients still function correctly after capping the version, since some older clients may not negotiate down gracefully. - Keep port 2049 off the open internet regardless of patch status, and restrict access with firewall rules to only the specific hosts that actually need NFS access.
- If you don't actually need NFS, turn it off. A lot of environments default to SMB for file sharing anyway, and SMB isn't affected by this bug at all.
update log
- 28 November 2026: first version, covering disclosure through November 26, 2026.
- To recheck next time: whether Ubuntu, Red Hat, or Debian 12's standard kernel line ship fixes, whether a public exploit appears, and whether the vulnerability gets added to CISA's Known Exploited Vulnerabilities catalog.
Frequently asked questions
Do I need an account on the NFS server to exploit this?
No. The vulnerability triggers before the server authenticates the connecting client at all — a single crafted request to an exposed port is the entire requirement, with no credentials, no mounted share, and no user interaction needed.
Am I safe if I only run NFSv3?
Based on current reporting, yes, specifically for this bug: NFS2ROOT's vulnerable code path only executes for NFSv4.1 and NFSv4.2 connections. Servers offering only NFSv3 or NFSv4.0 don't run that code at all, so they aren't affected by this particular flaw.
Is a public exploit available?
Not as of the most recent reporting. OpenSec built a working exploit but has kept it private, sharing it only with the NFSD maintainers and the kernel security team rather than publishing it.
My NAS vendor hasn't published anything about this — am I fine?
Not necessarily. Reporting as of late November 2026 found that Synology and QNAP hadn't published advisories specifically naming NFS2ROOT, but that's different from confirming they're unaffected — check whether NFS is enabled on your device at all, and what NFS version it negotiates, since that determines exposure regardless of what the vendor has or hasn't published yet.
Related Dev Talk articles
No existing Dev Talk article covers Linux kernel vulnerabilities or NFS security closely enough to link here in good faith; none are included.
Originally published on DEV Talk.
