CVE-2026-99362 · CVSS 3.1: 9.8 Critical

NFS2ROOT

A pre-authentication heap overflow in the Linux kernel’s NFS server. Anyone who can reach TCP port 2049 on an unpatched server with NFSv4.1 or 4.2 enabled can corrupt kernel memory, and the finders turned that into a root shell.

Last checked 27 November 2026. Distribution status changes daily, so check your vendor’s tracker too.

Component
nfsd (in-kernel NFS server)
Reachable via
TCP 2049, no login
Present since
Linux 3.16 (2014)
Exploited in the wild
None reported as of 26 Nov
Public exploit
No. The finders kept theirs private

Am I affected?

You’re exposed if all of these are true:

  1. The machine runs the in-kernel Linux NFS server (nfsd). NFS clients are not the issue, and user-space servers like NFS-Ganesha are a different codebase.
  2. NFSv4.1 or NFSv4.2 is enabled. On most current distributions, it is by default.
  3. Something untrusted can reach TCP port 2049 on it.
  4. The kernel doesn’t yet include the fix.

NAS boxes, Kubernetes storage nodes and home-lab file servers are the usual suspects.

Quick checks

# Is the kernel NFS server running, and which versions does it serve?
cat /proc/fs/nfsd/versions        # look for +4.1 or +4.2

# Is anything listening on 2049?
ss -tlnp | grep 2049

# Which kernel is running?
uname -r
Don’t judge by uname -r alone. Distributions backport fixes into kernels with older-looking version numbers, so check your distribution’s security tracker for CVE-2026-99362 to see whether your exact package is fixed.

How to fix it

1. Update the kernel and reboot

According to the kernel CVE record, the fix is in these upstream stable releases and later:

BranchFixed in
7.4 (mainline)7.4-rc1
7.37.3.2
6.186.18.61
6.126.12.117
6.66.6.163
6.16.1.193
5.155.15.226
5.105.10.275
Installing the package isn’t enough. The fix lives in the running kernel, so you have to reboot.

2. If you can’t patch yet

OpenSec and watchTowr both recommend one of these stopgaps:

# /etc/nfs.conf
[nfsd]
vers4.1=n
vers4.2=n

# then
sudo systemctl restart nfs-server
cat /proc/fs/nfsd/versions        # should now show -4.1 -4.2
Detection is hard. The attack uses valid NFS traffic, so OpenSec says there’s no simple network signature to alert on. Patching is the real fix, and OpenSec notes that standard kernel hardening doesn’t remove the overflow.

What’s actually wrong

NFSv4.1 sessions keep a per-session reply cache so the server can replay answers to retried requests. According to OpenSec, a client can shrink that cache to zero bytes and then make the server write a full reply into it. The result is an out-of-bounds write in kernel memory.

That happens before any check on who the client is. watchTowr adds that much of the overwritten data comes back to the client, which can help an attacker map the kernel’s memory layout. OpenSec chained the overflow into a kernel memory leak, a KASLR bypass, an arbitrary free and a root shell on a lab server.

The upstream fix, “nfsd: preflight SEQUENCE replies before accepting a slot”, makes the server check that a reply will fit before it commits to it. A follow-up hardens the NFSv4 encoder.

Who found it

The bug was found twice, independently. Both deserve the credit.

Jérémy Jean
ANSSI, France’s national cybersecurity agency

Found the bug and sent the fix upstream on 17 August 2026, with a KASAN report.

He wrote the patches that landed in the kernel. OpenSec’s own write-up credits him for this.

OpenSec Intelligence
with Antara, OpenSec’s automated white-box harness

Antara flagged the same reply-cache path on 21 September 2026 and, by OpenSec’s account, built the full root exploit without human help.

OpenSec reported it to the NFS maintainers and security@kernel.org on 22 September with the exploit and a patch. They coined the name NFS2ROOT and published the research on 25 November. Read their write-up.

Thanks also to the NFS server maintainers who reviewed and merged the fix, the Linux kernel CVE team who assigned and published CVE-2026-99362, and watchTowr, whose FAQ added exploitation and mitigation detail.

Timeline

DateEvent
Mar 2014Commit 47ee52986472 introduces the bug, released in Linux 3.16.
17 Aug 2026Jérémy Jean (ANSSI) sends the fix upstream.
21 Sep 2026OpenSec’s Antara independently flags the bug and builds a root exploit.
22 Sep 2026OpenSec reports to the NFS maintainers and security@kernel.org.
6–10 Nov 2026Fixed stable releases: 6.18.61, 7.3.2, then 6.12.117.
19 Nov 2026CVE-2026-99362 published by the kernel CVE team. OpenSec’s page gives 20 November.
23 Nov 2026Backports: 6.6.163, 6.1.193, 5.15.226, 5.10.275.
25 Nov 2026OpenSec publishes the NFS2ROOT research and a demo video.
26 Nov 2026watchTowr, Red Hat and Oracle Linux publish analysis and updates.

Sources