NFS2ROOT CVE-2026-99362: A 12-Year-Old Path to Root

By 12 min read
NFS2ROOT CVE-2026-99362: an unauthenticated NFSv4.1 client on port 2049 overflowing the Linux nfsd reply cache

Any machine that can open a TCP connection to port 2049 on a Linux NFS server may be able to corrupt that server’s kernel memory, with no username, password or mount needed. The flaw, CVE-2026-99362, has been in the kernel for twelve years, and its discoverers at OpenSec call it NFS2ROOT because their private exploit ends in a root shell.

In short: NFS2ROOT is a heap overflow in the Linux nfsd reply cache for NFSv4.1 sessions, fixed in kernels released on 19 November 2026. It only matters on hosts that run the in-kernel NFS server with NFSv4.1 or 4.2 enabled, but on those hosts you should patch and reboot, or close port 2049 to untrusted networks, now.

What is NFS2ROOT (CVE-2026-99362)?

NFS2ROOT is CVE-2026-99362, an out-of-bounds write in nfsd, the NFS file server built into the Linux kernel. An out-of-bounds write is a bug where code writes data past the end of the memory it was given, overwriting whatever sits next to it.

The Linux kernel CVE team assigned the CVE on 19 November 2026, in an announcement titled “nfsd: preflight SEQUENCE replies before accepting a slot”. The vulnerable code is in fs/nfsd/nfs4state.c and was introduced by commit 47ee52986472, dated March 2014, which first shipped in Linux 3.16.

Key facts at a glance

Item Detail
CVE CVE-2026-99362
Name NFS2ROOT (given by OpenSec)
Component Linux kernel NFS server (nfsd), NFSv4.1 sessions
Bug class Out-of-bounds heap write (CWE-787)
Attacker needs Network access to TCP 2049, no credentials
Server condition nfsd running, NFSv4.1 or 4.2 enabled, unpatched kernel
Introduced Commit 47ee52986472, March 2014, Linux 3.16
Fixed upstream 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 (19 Nov 2026)
Found by Jérémy Jean (ANSSI) and OpenSec, independently
Exploited in the wild None reported as of 26 Nov 2026
Four headline numbers for NFS2ROOT: 12 years old, CVSS 9.8, 61 bytes overflowed, no credentials.
NFS2ROOT combines an old bug, a critical score and no login requirement. Data: kernel.org CVE announce, Ubuntu, BreachNews.

Why does an NFS server bug matter in 2026?

NFS, the Network File System, is the standard way Linux and Unix machines share directories over a network. It is the quiet plumbing behind file servers, NAS appliances, build farms, home directories and Kubernetes storage nodes, which BreachNews lists as typical places to find it.

Most NFS servers never face the internet, and that is the point. Security Affairs notes that internal reachability is enough: any compromised laptop, container or VPN user on the same network segment can reach port 2049 on a file server. That makes NFS2ROOT a strong lateral movement and privilege escalation bug, even where it is not an initial access bug.

What is an NFSv4.1 session?

NFSv4.1, defined today in RFC 8881, added sessions to NFS. A session gives each client a fixed set of numbered slots, and the server keeps a small cached copy of its last reply in each slot. If a reply gets lost and the client retries, the server replays the cached copy instead of running the operation twice.

The client and server agree on how big that cached reply may be when the session is created. The SEQUENCE operation, which starts almost every NFSv4.1 request, tells the server which slot the request uses. NFS2ROOT lives exactly where those two ideas meet.

How does the NFS2ROOT overflow work?

The kernel’s own description lays out the mechanism. This section explains it at a conceptual level, for defenders; it is not a recipe.

Step 1: the client shrinks the reply cache

When creating a session, a client can negotiate the cached reply size down to the smallest value the server accepts. According to the kernel CVE announcement, that leaves each slot with a data buffer of zero length.

Step 2: the reply buffer is narrowed too early

The function nfsd4_sequence() shrinks the reply buffer to that cached limit before it has accepted the slot. A crafted COMPOUND request, which is a bundle of NFS operations sent as one message, can fill the narrowed buffer so it holds the SEQUENCE opcode but not its status word.

Step 3: success is recorded anyway

Because of how the error path works, the operation’s status stays at success. When the server then stores the reply in the slot cache, it copies the whole reply, headers included, into the zero-length buffer. The KASAN memory checker trace in the fix shows a write of 80 bytes. BreachNews and Security Affairs report that 61 of those bytes land past the end of the heap object, and that the client controls most of them.

Seven-stage flow from an unauthenticated NFSv4.1 session to a root command run on disconnect.
The overflow needs only a session and one crafted request; turning it into root takes a leak and a memory reclaim on top. Data: kernel.org CVE announce, OpenSec via BleepingComputer.

From overflow to root

OpenSec’s write-up could not be opened for this article, so its exploit details come from reporting by BleepingComputer, BreachNews and Security Affairs. All three describe the same chain: the overflow is used to leak about 3.8 KB of kernel memory, which defeats KASLR, the kernel’s address randomisation. The attacker then places a forged callback in freed memory, and when the NFS connection closes, the kernel runs a command as root.

OpenSec says this worked in a lab demonstration and that the exploit stays private. Security Affairs quotes the firm’s blunt advice: “Kernel hardening does not remove the overflow.”

Who found NFS2ROOT, and when?

Two parties found the bug independently, and the order matters for anyone reading the hype around AI-found bugs.

According to BleepingComputer, BreachNews and Security Affairs, Jérémy Jean of ANSSI, the French national cybersecurity agency, sent a fix upstream on 17 August 2026. OpenSec’s automated analysis harness, which the firm calls Antara, flagged the same flaw on 21 September, and OpenSec sent a working exploit and a patch to the NFS server maintainers and the kernel security team on 22 September.

Timeline from the March 2014 commit through ANSSI and OpenSec reports to the November 2026 CVE.
The fix was upstream for three months before the CVE made the bug public. Data: kernel.org, BreachNews, Security Affairs.

Disclosure timeline

Date Event Source
March 2014 Commit 47ee52986472 adds the vulnerable code (Linux 3.16) kernel.org
17 Aug 2026 ANSSI’s Jérémy Jean submits a fix upstream BleepingComputer, BreachNews
21 to 22 Sep 2026 OpenSec flags the bug and reports an exploit to maintainers BreachNews, Security Affairs
19 Nov 2026 Kernel CVE team publishes CVE-2026-99362 and fixed versions linux-cve-announce
25 Nov 2026 OpenSec publishes its NFS2ROOT write-up BreachNews
26 to 27 Nov 2026 First Red Hat errata for RHEL 8 extended support streams BreachNews

Security Affairs gives 20 November for the CVE; the kernel announcement itself is dated 19 November. For another bug this month that sat in plain sight until someone looked hard, see the KVM escape that let one VM read 127 GB of host RAM.

Who is affected by CVE-2026-99362?

A host is exposed only when all four of these are true, a checklist that BreachNews attributes to OpenSec:

  1. The running kernel is older than the fixed release for its branch and has no vendor backport.
  2. The nfsd kernel module is loaded and the NFS server is running.
  3. NFSv4.1 or 4.2 is enabled.
  4. TCP port 2049 is listening on an address other than loopback.

Machines that only mount NFS shares as clients are not affected. Red Hat states that default RHEL configurations do not run or enable nfsd, so the attack surface there is limited to systems deliberately set up to export NFSv4.1 or 4.2 shares. Threat Landscape and Security Affairs note that where the NFS server is enabled, 4.1 and 4.2 are typically on by default.

Fixed kernel versions

Branch Fixed in
7.4 mainline 7.4-rc1
7.3 7.3.2
6.18 6.18.61
6.12 6.12.117
6.6 6.6.163 (per watchTowr)
6.1 6.1.193 (per watchTowr)
5.15 5.15.226 (per watchTowr)
5.10 5.10.275 (per watchTowr)

Distribution status

Distribution kernels use their own version numbers, so the upstream table is only a guide. As of the dates below:

  • Ubuntu (25 November): the main linux package was listed as vulnerable on 16.04, 18.04, 20.04, 22.04 and 24.04 LTS, with fixes in progress for 26.04 LTS and 26.10. 14.04 is not affected because it predates Linux 3.16.
  • Red Hat: the CVE page offers mitigations and rates the flaw Critical. BreachNews reports RHSA-2026:103817 for RHEL 8.10 extended support on 26 November and RHSA-2026:104030 for RHEL 8.6 on 27 November, with RHEL 9 and 10 still on mitigations only.
  • Debian (per BreachNews, 25 November): trixie fixed in linux 6.12.117-1; bookworm’s default kernel still vulnerable, with a fixed linux-6.12 package via DLA-4927-1.
  • SUSE (per BreachNews): status pending, rated Important.

NAS appliances and storage products that embed a Linux kernel will need their own vendor firmware updates.

Why do the severity scores disagree?

The kernel CVE record and Ubuntu score NFS2ROOT 9.8. Red Hat scores it 9.4 because its vector rates the integrity impact as Low. BreachNews reports that SUSE uses 8.1, rating the attack complexity High.

Bar chart comparing CVSS scores of 9.8, 9.8, 9.4 and 8.1 for NFS2ROOT.
Every vendor rates NFS2ROOT high or critical; they disagree only on how hard it is to exploit and what it can change. Data: Ubuntu, Red Hat, SUSE via BreachNews.

The difference is less important than it looks. A 9.4 or an 8.1 on an unauthenticated kernel memory corruption bug on a file server still belongs at the top of the queue. Prioritise by exposure: an internet-facing or flat-network NFS server comes before one reachable only from two backup hosts.

How does NFS2ROOT compare with other recent Linux root bugs?

November 2026 has been busy for Linux server bugs. Here is how NFS2ROOT compares with two others covered on this site.

  NFS2ROOT KVM escape OpenSSH sshole
CVE CVE-2026-99362 CVE-2026-99312 CVE-2026-123158
Component Kernel NFS server Kernel KVM, AMD nested OpenSSH on musl
Attacker needs Reach TCP 2049 Root in a guest VM Reach SSH
Credentials None Guest root None for locked accounts
Bug age About 12 years Just under 4 years Not stated
In the wild None reported None reported Yes, about 40 hours after fix
Narrowing condition NFSv4.1/4.2 enabled Nested virtualization on musl libc, no PAM

The pattern is that each bug needs a specific configuration, and each is critical on the machines that have it. The sshole case is the warning: once a fix is public, the gap to exploitation can be measured in hours. For a bug in another piece of infrastructure plumbing that ran as root, see Juniper CVE-2026-103406.

How do you detect NFS2ROOT exploitation?

Security Affairs, citing OpenSec, warns that the attack uses legitimate NFS traffic, so network tools may not flag it. BleepingComputer reports OpenSec’s view that there are no network signatures. Detection therefore leans on the host.

Kernel log signals

  • Warnings from nfsd4_check_resp_size: Security Affairs reports OpenSec’s claim that these appear on every exploitation attempt, successful or not. Only that source makes the “every attempt” claim.
  • Oopses or crashes with nfsd4_*, svc_* or call_usermodehelper* functions in the stack trace. call_usermodehelper is the kernel facility that starts user-space programs, which is why it matters here.

Ship dmesg and the journal’s kernel messages to your SIEM and alert on these strings on any NFS server.

Process and network behaviour

  • A shell or unexpected process whose parent is a kernel worker thread on a file server.
  • Bursts of short-lived NFSv4.1 sessions from a single source address, especially from hosts that are not known NFS clients.
  • New NFS clients that do not appear in your export lists.

MITRE ATT&CK mapping

None of the sources publishes an ATT&CK mapping. Based on the described behaviour, it fits T1210 (Exploitation of Remote Services) for lateral movement and T1068 (Exploitation for Privilege Escalation). That mapping is this article’s, not the researchers’.

Find exposed hosts

Run the four checks from the “Who is affected” section across your Linux estate with your configuration management tool: uname -r, lsmod | grep -w nfsd, cat /proc/fs/nfsd/versions (look for +4.1 or +4.2), and ss -ltn 'sport = :2049'. Then scan your own address space for TCP 2049 to catch appliances that your agents do not cover.

How do you mitigate CVE-2026-99362?

In priority order:

  1. Patch and reboot. Install your distribution’s kernel that lists CVE-2026-99362 and reboot; the kernel CVE team says cherry-picking the commits is not supported. Check that the running kernel changed after the reboot.
  2. Close port 2049 to untrusted networks. Allow only the specific client addresses that need the shares, at the host firewall and the network edge. Red Hat documents a firewalld rich rule approach. Remember to cover IPv6 as well as IPv4.
  3. Disable NFSv4.1 and 4.2 if you can live without them. Set vers4.1=n and vers4.2=n in the [nfsd] section of /etc/nfs.conf and restart nfs-server. Threat Landscape warns this also turns off pNFS and some 4.2 features.
  4. Stop NFS where it is not needed. systemctl stop nfs-server and systemctl disable nfs-server, per Red Hat. Stopping the service ends active sessions.
  5. Contact storage vendors. Ask NAS and appliance vendors for a firmware timeline, and isolate those devices until it arrives.
  6. Hunt on exposed servers. Search kernel logs back to at least 19 November for the signals above, since that is when the bug became public.

Security Affairs stresses that steps 2 to 4 reduce exposure but do not fix the bug.

What is still unknown?

  • OpenSec’s own write-up could not be retrieved for this article, so exploit details rely on three independent news reports of it.
  • Internet exposure has no reliable public count. One source cites a figure of over 1.5 million NFS hosts from a social media post that could not be verified here.
  • Kerberos: no source says whether NFS servers that require Kerberos (sec=krb5) are protected. The SEQUENCE operation runs inside the session, so do not assume Kerberos helps until a vendor says so.
  • Fix commits are reported differently by different outlets; the kernel announcement lists 1a5a227bca6a, 37fc2ec21163, ed98b0c57e5e and 35ff1a7a7e38 for the four branches.
  • Exploit reproduction: a fix was submitted upstream in August and the CVE went public on 19 November. How long the exploit stays private is the key open question.

The bottom line

NFS2ROOT is a twelve-year-old kernel bug that lets anyone who can reach port 2049 corrupt a Linux NFS server’s memory without logging in. No exploitation has been reported yet, and it only affects hosts that run nfsd with NFSv4.1 or 4.2. On those hosts, patch and reboot this week, and until then make sure only known clients can reach port 2049.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is NFS2ROOT?

NFS2ROOT is the name OpenSec gave to CVE-2026-99362, a heap buffer overflow in the Linux kernel's in-kernel NFS server (nfsd). A remote client can trigger it over an NFSv4.1 or 4.2 session without logging in, and OpenSec says it can lead to code execution as root.

Is NFS2ROOT exploited in the wild?

Not as far as anyone has reported. watchTowr said on 26 November 2026 that no in-the-wild exploitation was known, and the CVE was not in CISA's Known Exploited Vulnerabilities catalog. OpenSec has kept its working exploit private.

Which Linux kernel versions fix CVE-2026-99362?

The kernel CVE team lists fixes in 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. watchTowr also lists backports in 5.10.275, 5.15.226, 6.1.193 and 6.6.163. Distribution kernels carry their own version numbers, so check your vendor's CVE page.

Am I affected if I only mount NFS shares as a client?

No. The bug is in the server side, nfsd. A machine that only mounts shares from elsewhere and does not run the NFS server is not exposed to this flaw.

Does NFS2ROOT affect NFSv3?

The bug sits in NFSv4.1 session handling, and sources describe the precondition as NFSv4.1 or 4.2 being enabled. Threat Landscape states NFSv3 and NFSv4.0 are not affected, but a server that offers 4.1 alongside v3 is still exposed.

How do I check if my server is vulnerable to NFS2ROOT?

Check four things: the running kernel lacks the fix (uname -r against your vendor's advisory), the nfsd module is loaded, /proc/fs/nfsd/versions shows +4.1 or +4.2, and port 2049 is listening on a non-loopback address. If all four are true, the host is exposed.

How do I mitigate CVE-2026-99362 without rebooting?

Restrict TCP port 2049 to trusted clients at the host or network firewall, or set vers4.1=n and vers4.2=n under [nfsd] in /etc/nfs.conf and restart nfs-server. Both only reduce exposure; the fix requires a patched kernel and a reboot.

Why does Red Hat score NFS2ROOT 9.4 and not 9.8?

Red Hat rates the integrity impact as Low in its own CVSS vector, which brings the score to 9.4. The kernel CVE record and Ubuntu use 9.8. Red Hat also notes that default RHEL installs do not run nfsd at all.

Keep reading

NFS2ROOTCVE-2026-99362Linux kernelNFS securitynfsdvulnerability managementthreat detection