# NFS2ROOT (CVE-2026-99362): Linux NFS Server Flaw, Check, Fix

NFS2ROOT is a remote heap overflow in the Linux kernel NFS server, CVSS 9.8, no login needed. Who is exposed, how the bug works, how to check and what to patch.

Source: https://zyberum.com/insights/nfs2root-cve-2026-99362 · Updated: 2026-12-04

Of the Linux vulnerabilities published in the last weeks, CVE-2026-99362 carries the highest score: 9.8 from the kernel's own CVE team. It is a heap overflow in the kernel's NFS server that a remote client can trigger over one TCP connection, without logging in. The researchers who reported it named it NFS2ROOT. The faulty ordering of two steps has been in the kernel since 2014.

The good news is in the conditions. Most Linux systems do not run an NFS server, and those that do rarely offer it to the internet. The bad news: where it runs, it is usually the file server everything else depends on, and its export list does not protect it. This page covers who is exposed, how the bug works, how to check in two minutes and what to do.

## The facts in one table

| | |
|---|---|
| CVE | CVE-2026-99362, published 19 Nov 2026 by the kernel.org CNA |
| Nickname | NFS2ROOT (OpenSec) |
| Component | Linux kernel NFS server (nfsd), NFSv4.1 session handling, `nfsd4_sequence()` in `fs/nfsd/nfs4state.c` |
| Bug class | Heap out-of-bounds write (CWE-787) into a reply cache slot of length zero |
| Attacker | Remote, no authentication, one TCP connection to port 2049 |
| Impact | Kernel crash at the least. kernel.org, Debian and Proxmox describe remote code execution as root, Red Hat says crash or potentially code execution |
| Introduced | Linux 3.16, by a commit from 2014 |
| Fixed upstream | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 |
| Scores | kernel.org 9.8 (CVSS 3.1), SUSE 9.8, Red Hat 9.4, Amazon 9.4, Ubuntu 9.3 (CVSS 4.0). NVD has not scored it yet |
| In the wild | Not reported as of 4 Dec 2026. Not in CISA KEV |
| Credit | Fix authored by Jérémy Jean (ANSSI), tested by Mayank Jangid (OpenSec), who reported it independently |

## Which systems are exposed?

A system is exposed when four things are true at the same time: a kernel without the fix, the in-kernel NFS server running, NFSv4.1 or 4.2 enabled, and port 2049 reachable for the attacker. NFS clients are not affected. A user-space NFS server such as NFS-Ganesha is a different code base.

Where the kernel NFS server typically runs:

- **File servers and home directory servers** in offices, labs and universities.
- **Virtualisation and backup hosts** that export storage to each other. Proxmox published its own advisory.
- **Kubernetes storage nodes** and hosts that provide NFS volumes to a cluster.
- **Build and CI infrastructure** that shares caches and artefacts.
- **NAS appliances and embedded Linux devices** that share a directory over NFS: storage boxes, machine controllers and development boards that export their file system for debugging. For these, no vendor statement was available when we wrote this. The rule is generic: a kernel from 3.16 on without the backport that runs nfsd with version 4.1 or 4.2 has the bug. Older vendor kernels can have it too, as Red Hat's fix for the 3.10-based RHEL 7 kernel shows.

Two common assumptions do not hold:

- **"We restrict clients in /etc/exports."** The export list is evaluated when a client wants to mount. The flaw sits in the session handling before that.
- **"It is only reachable internally."** That lowers the risk and does not remove it. An NFS server is the classic second step after a first foothold: one compromised workstation in the same network is "internal".

## How does NFS2ROOT work?

The server copies a reply into a cache slot that the client was allowed to negotiate down to length zero, because a failed step is mistaken for success. The fix commit describes the chain precisely. It needs three pieces of background.

**Sessions and the reply cache.** Since NFSv4.1 every client works inside a session. Each request starts with a SEQUENCE operation that names a slot and a sequence number. The server keeps the last reply of every slot, so that a request which is sent again after a network hiccup is answered from the cache and not executed twice. The client proposes how large a cached reply may be when it creates the session.

**The minimum is zero.** A client may negotiate that size down to the minimum the server accepts. The server then allocates slots whose cache area, `sl_data[]`, has length zero. That is legal and intended: such a client simply does not want replies cached.

**The ordering from 2014.** When a request arrives, the server narrows its reply buffer to the negotiated cache size before it has accepted the slot. This is the ordering the 2014 commit introduced.

Normally the server refuses to cache a lone failed SEQUENCE. That safeguard reads the reported status, and the reported status was "ok". So one missed error code turns a legal, if unusual, session into a write past the end of a kernel object.

A write of this kind into kernel memory is a crash at the least. OpenSec states that it built a chain from it to a command running as root, including a way around kernel address randomisation, and shows a video. The exploit is not public. The independent evidence is the upstream fix with its sanitizer report and the ratings of the vendors, which range from "crash or potentially code execution" (Red Hat) to "execute arbitrary code as root" (Proxmox). For planning, the difference does not matter: a remotely crashable file server is already an outage.

### What the patch changed

The fix moves a check to the front. Eighteen lines in `fs/nfsd/nfs4state.c`: before the reply buffer is narrowed and the slot's sequence number consumed, the server computes how large the SEQUENCE result will be and rejects the request if that does not fit the negotiated size. Slot and cache stay as they were, which is what RFC 8881 requires for this case. A second commit makes the encoder report an error when the header of an operation cannot be written. Its message calls it "a guard rather than a fix".

One detail for the record: the upstream fix carries a tag that names an AI coding tool as assistance, and the reporting company found the bug with an AI analysis tool. Like the [2Shell series](/insights/2shell-vulnerabilities-overview), this is twelve-year-old code read again with new tools.

## How to identify NFS2ROOT

Four commands answer the question on one host. All four conditions must be true for the host to be exposed.

```bash
# 1. Which kernel is running? (the running one, not the installed one)
uname -r

# 2. Is the kernel NFS server loaded?
lsmod | grep -w nfsd

# 3. Which NFS versions does it offer? Look for +4.1 or +4.2
cat /proc/fs/nfsd/versions

# 4. Does it listen on an address other than loopback?
ss -ltn 'sport = :2049'
```

If command 2 prints nothing, the NFS server is not loaded and the host is not exposed, whatever the kernel version.

### Compare with the distribution package, not the upstream number

Distributions backport the fix into their own kernel versions. Status as published by the vendors (Ubuntu: page of 1 December, the others between 26 November and 2 December 2026):

| Distribution | Fixed kernel |
|---|---|
| Debian 13 (trixie) | 6.12.117-1 |
| Debian 12 (bookworm) | 6.1.192-3 from the security suite (DLA-4942-1) |
| RHEL 10 | 6.12.0-264.22.1.el10_3 (RHSA-2026:105695) |
| RHEL 9 | 5.14.0-741.29.1.el9_9 (RHSA-2026:105696) |
| RHEL 8.10 | 4.18.0-553.190.1.el8_10 (RHSA-2026:103817) |
| RHEL 7 (ELS) | 3.10.0-1160.172.1.el7 (RHSA-2026:107000) |
| SUSE SLE 15 SP7 | kernel-default 6.4.0-150700.53.97.1 or later; other products partly still in progress |
| Amazon Linux 2 and 2023 | fixed on 27 Nov 2026 (ALAS2-2026-4166, ALAS2023-2026-3540) |
| Proxmox VE | proxmox-kernel 7.0.14-30-pve and 7.3.3-1-pve |
| Ubuntu | all supported releases listed as vulnerable on 1 Dec 2026, fixes in progress: check the Ubuntu CVE page |

On Red Hat systems `dnf updateinfo list --cve CVE-2026-99362` shows whether the erratum is still open. RHEL 6 is not affected. Extended-support streams have their own errata, listed on the Red Hat CVE page.

### Find the NFS servers you did not know about

On a network you are responsible for, a scan for TCP port 2049 finds every NFS server faster than asking around. Expect surprises: a NAS in a department, a lab machine, a build host. For embedded products you make yourself, check the kernel configuration and the start scripts of the image: is `nfsd` built and started, and was that meant for production or left over from development?

### Look for traces

There is no network signature, because the traffic is valid NFS. OpenSec names these signs on the server:

- Kernel warnings from `nfsd4_check_resp_size`, which according to OpenSec appear on every attempt, successful or not. Search `journalctl -k` and `dmesg`.
- Kernel oops reports with `nfsd4_` or `svc_` functions in the trace, and unexplained reboots of a file server.
- Shells or other processes started by kernel worker threads on a machine that only serves files.
- Bursts of very short NFSv4.1 sessions from one source.

If the server was reachable from untrusted networks, look back to 19 November 2026, the day of publication.

## What to do

Update the kernel and reboot. Everything else is a stopgap until the maintenance window.

1. **Install the fixed kernel** of your distribution and **reboot** into it. Verify with `uname -r`. An installed kernel that is not running protects nothing.
2. **Order by exposure:** NFS servers reachable from the internet or from guest and client networks first, then servers in flat internal networks, then storage that only specific hosts can reach.
3. **Appliances and products:** ask the vendor of NAS systems and storage appliances for the firmware that contains the fix, and name the CVE.

### Stopgaps until the reboot

- **Limit who can reach port 2049.** This is the most effective interim measure, and a good idea permanently. Allow only the addresses of your real NFS clients, on the host firewall and on the network. Red Hat, SUSE and OpenSec all recommend it.
- **Disable NFSv4.1 and 4.2** if your clients can live with 4.0 or v3 (described by Red Hat and OpenSec):

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

```bash
systemctl restart nfs-server
cat /proc/fs/nfsd/versions    # must no longer show +4.1 or +4.2
```

Side effects: the restart interrupts clients, mounts pinned to 4.1 or 4.2 fail, and pNFS and server-side copy are gone.

- **Stop the NFS server where nobody needs it:** `systemctl disable --now nfs-server`. On many of the surprises from the scan, this is the right fix.

What does not help: export restrictions, and settings aimed at local attackers such as limits on user namespaces. OpenSec adds that kernel hardening "does not remove the overflow". For live patching, ask your vendor whether a live patch for this CVE exists. We found no confirmed one.

### Hardening that limits the damage

NFS belongs in a storage network, not in the network where laptops and printers live. Put file servers behind a firewall that knows the clients by address, keep NFS off any interface that faces the internet, and prefer Kerberos-secured mounts where the environment supports them. None of that would have removed this bug, but each of it decides how many machines can send the first packet.

## What it means for a penetration test

In an internal penetration test, an open port 2049 is one of the first things we look at, and it was already before this CVE: exports readable by everyone, home directories without root squashing, backups on a share. NFS2ROOT adds a reason to ask the plainer question first. Which machines in this network can talk to the file server at all, and why?

In a [network penetration test](/network-penetration-testing) we map that reach from the position of an ordinary workstation, check kernel and service versions of the storage systems, and show what an attacker who controls the file server would get: usually every project directory and backup at once. We do not crash production file servers to prove a version number. For products with embedded Linux, the same check is part of the review of the firmware image: which services does the device start, and which of them did nobody intend to ship.

The fix is a kernel update and a reboot. How long it takes you to say where an NFS server runs is the real finding, and that is what a [vulnerability management process](/insights/vulnerability-management-process) is for.

## FAQ

**Is every Linux system affected by NFS2ROOT?**

No. The flaw is in the NFS server inside the kernel. A system is exposed only if that server is running, NFS version 4.1 or 4.2 is enabled and TCP port 2049 is reachable for the attacker. NFS clients are not affected, and most distributions do not run the NFS server by default. Systems that are file servers, storage nodes or NAS appliances are the ones to check.

**Do the client restrictions in /etc/exports protect me?**

No. The export list decides who may mount what. The flaw is in the session handling that runs before those checks, so a client that is not allowed to mount anything can still reach it. What helps is a firewall rule that limits who can connect to port 2049 at all.

**Is NFS2ROOT exploited in the wild?**

As of 4 December 2026 no exploitation has been reported, and the CVE is not in the CISA KEV catalogue. The researchers at OpenSec say they have a working exploit and keep it private. Repositories that claim to contain proof-of-concept code exist; we have not verified them.

**Is a reboot required?**

Yes, unless your vendor provides a live patch for this CVE. The fix is in the kernel. Installing the package is not enough: the old kernel keeps running until the system boots into the new one. Check with uname -r after the reboot.

**Can I just switch off NFSv4.1 and 4.2?**

As a stopgap, yes. Red Hat and OpenSec describe disabling both minor versions in /etc/nfs.conf. Clients then fall back to NFSv4.0 or v3, mounts that are pinned to 4.1 or 4.2 fail, and features such as pNFS and server-side copy are gone. The restart of the NFS server interrupts clients. It does not replace the kernel update.

## Sources

- [CVE record CVE-2026-99362: nfsd: preflight SEQUENCE replies before accepting a slot](https://www.cve.org/CVERecord?id=CVE-2026-99362)
- [linux-cve-announce: CVE-2026-99362](https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99362)
- [NVD: CVE-2026-99362](https://nvd.nist.gov/vuln/detail/CVE-2026-99362)
- [OpenSec: NFS2ROOT (CVE-2026-99362)](https://opensec.in/blog/nfs2root-cve-2026-99362)
- [oss-security: CVE-2026-99362 (28 Nov 2026)](https://www.openwall.com/lists/oss-security/2026/11/28/2)
- [Red Hat: CVE-2026-99362](https://access.redhat.com/security/cve/CVE-2026-99362)
- [Debian security tracker: CVE-2026-99362](https://security-tracker.debian.org/tracker/CVE-2026-99362)
- [Ubuntu: CVE-2026-99362](https://ubuntu.com/security/CVE-2026-99362)
- [SUSE: CVE-2026-99362](https://www.suse.com/security/cve/CVE-2026-99362.html)
- [Amazon Linux Security Center: CVE-2026-99362](https://explore.alas.aws.amazon.com/CVE-2026-99362.html)
- [RFC 8881: Network File System (NFS) Version 4 Minor Version 1 Protocol](https://www.rfc-editor.org/rfc/rfc8881)
- [CISA: Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)

## Related

- [The 2Shell Vulnerabilities: React, PHP, Brotli, Java, NGINX, Ruby](https://zyberum.com/insights/2shell-vulnerabilities-overview)
- [Ruby2Shell (CVE-2026-132825): Ruby String Flaw, Detection, Fix](https://zyberum.com/insights/ruby2shell-cve-2026-132825)
- [NGINX2Shell (CVE-2026-123007): nginx HTTP/2 Flaws, Detection, Fix](https://zyberum.com/insights/nginx2shell-cve-2026-123007)
- [CVE](https://zyberum.com/glossary/cve)
- [CVSS](https://zyberum.com/glossary/cvss)
- [Vulnerability Management: A Process That Works in Practice](https://zyberum.com/insights/vulnerability-management-process)
- [One click on the wrong email. How far does the attacker get after that?](https://zyberum.com/network-penetration-testing)

---
Zyberum GmbH. Canonical page: https://zyberum.com/insights/nfs2root-cve-2026-99362
