RemarkableCloud

NFS2ROOT (CVE-2026-99362): a 9.8 root bug in the Linux NFS server, and how to check yours

RC RemarkableCloud Team 10 min read Articles
On this page
NFS2ROOT (CVE-2026-99362): a 9.8 root bug in the Linux NFS server, and how to check yours

CVE-2026-99362, nicknamed NFS2ROOT, lets anyone who can open a TCP connection to port 2049 get root on a Linux server that runs the kernel’s NFS server with NFSv4.1 or 4.2 enabled, with no login, mount or export needed. The kernel CVE team scores it 9.8 out of 10, the bug has been in the kernel since Linux 3.16 in 2014, and the fix is in upstream kernels 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2. A server that does not run the NFS server is not exposed, and four commands tell you which kind you have.

The details went public on November 25, 2026, when OpenSec Intelligence published its write-up, and distributions are still shipping fixes: on November 27, Debian 13 had a fixed kernel, while Ubuntu’s LTS kernels were still listed as vulnerable.

This article covers what the flaw is, which servers it reaches, where each distribution stands, how to check a server, and how to patch or contain it, with the commands.

What is NFS2ROOT?

NFS2ROOT key numbers: CVSS 9.8 from the kernel CVE team, in the kernel for 12 years since Linux 3.16, zero logins needed

Key factValue
CVECVE-2026-99362
Componentnfsd, the Linux kernel’s NFS server (NFSv4.1 session slot reply cache)
Bug typeHeap out-of-bounds write, before authentication
CVSS 3.1 (kernel CVE team)9.8, AV:N/AC:L/PR:N/UI:N
In the kernel sinceLinux 3.16, 2014 (about 12 years)
What an attacker needsOne TCP connection to port 2049

The bug sits in how nfsd caches replies for NFSv4.1 sessions. A client can negotiate the cached reply size down to the minimum, which leaves a zero-length slot buffer; nfsd then copies a full SEQUENCE reply into it. Debian’s tracker quotes the kernel’s own description of the result: a slab out-of-bounds write of 80 bytes, which BreachNews says lands 61 bytes past the heap object, with most of the data under the client’s control. The fix, “nfsd: preflight SEQUENCE replies before accepting a slot”, checks that the reply fits before the buffer is narrowed.

OpenSec Intelligence turned the overflow into a root shell: a kernel memory leak to defeat address randomization, then a controlled free and a forged structure that runs code as root when the connection closes, as Threat Landscape describes the chain.

Date (2026)Event
August 17Jérémy Jean of ANSSI, France’s cybersecurity agency, sends a fix upstream with a crash report
September 22OpenSec reports the bug, found by its automated harness, to the nfsd maintainers and the kernel security team
October 26Fix lands in the mainline kernel
November 6First stable kernels with the fix
November 19CVE-2026-99362 published by the kernel CVE team
November 25OpenSec publishes the NFS2ROOT write-up

The timeline is as tldrcve and BreachNews report it from OpenSec’s write-up.

Which servers are affected?

A server is exposed only when all four of these are true, following OpenSec’s checklist as tldrcve and BreachNews publish it:

  1. The running kernel is older than a fixed release and has no distribution backport of the fix.
  2. The nfsd module is loaded, meaning the machine runs the kernel NFS server.
  3. NFSv4.1 or 4.2 is enabled. NFSv3 and NFSv4.0 do not use this code path.
  4. Port 2049 listens on an address other than loopback.

Exports do not matter: Threat Landscape says the attack works without an existing export, a file handle or a successful mount. Machines that only mount NFS shares as clients do not load nfsd, so they fail the second condition.

That makes the exposed group narrower than “every Linux server since 2014”. Web, mail and database servers usually have no reason to run an NFS server; file servers, storage boxes and clusters that share home directories or uploads over NFS do. Where nfsd does run, the fourth condition is the one that changes the risk most: on fresh Ubuntu 26.04 and Rocky 9.8 installs, RFF’s lab found NFSv4.1 and 4.2 enabled by default once the NFS server was running, so a reachable port 2049 is usually enough.

Upstream branchFirst fixed release
5.105.10.275
5.155.15.226
6.16.1.193
6.66.6.163
6.126.12.117
6.186.18.61
7.37.3.2
Mainline7.4-rc1

These upstream numbers only help on a vanilla kernel. Distribution kernels carry their own version numbers and backports, so check the vendor’s tracker instead of comparing against this table.

Is it being exploited?

Not that anyone has reported. Threat Landscape wrote on November 26 that no public exploit code and no confirmed exploitation had been reported, and tldrcve noted the same day that the flaw was not in CISA’s Known Exploited Vulnerabilities catalog. OpenSec showed its exploit working but keeps it private.

That can change quickly. A detailed public write-up of the bug’s mechanics is often all a capable attacker needs, and our article on how fast attackers exploit new vulnerabilities shows how short that window has become. Patch or contain it now, rather than waiting for a KEV entry.

Which distributions have a fixed kernel?

Distro status for CVE-2026-99362: Debian 13 fixed in 6.12.117-1, Debian 12 fixed only in the linux-6.12 backport, default 6.1 still vulnerable, Ubuntu 26.04 fix in progress, Ubuntu 24.04, 22.04 and 20.04 vulnerable

Distribution and kernelStatus on November 27, 2026
Debian 13 trixieFixed in linux 6.12.117-1
Debian 12 bookworm, linux-6.12 backportFixed in 6.12.117-1~deb12u1 (DLA-4927-1)
Debian 12 bookworm, default 6.1 kernelVulnerable (6.1.192-2)
Ubuntu 26.04 LTSVulnerable, fix in progress in 7.0.0-45.45
Ubuntu 24.04, 22.04 and 20.04 LTSVulnerable, no fixed kernel listed

The Debian rows come from Debian’s security tracker and the Ubuntu rows from Ubuntu’s CVE page, last updated November 25. Ubuntu rates the flaw Critical. For the Red Hat family, sources disagree: BreachNews reported on November 26 that Red Hat had shipped a fixed RHEL 8 kernel (RHSA-2026:103817), with fixes for other RHEL versions not yet announced, while Threat Landscape’s analysis the same day still listed no errata. Red Hat also notes that default RHEL installs do not enable nfsd. On AlmaLinux or Rocky, check your vendor’s errata page for a kernel that names CVE-2026-99362.

CVSS 3.1 score for CVE-2026-99362: 9.8 from the Linux kernel CNA and Ubuntu, 9.4 from Red Hat, 8.1 from SUSE

Who scored itCVSS 3.1Rating
Linux kernel CNA9.8Critical
Ubuntu9.8Critical
Red Hat9.4Critical
SUSE8.1Important

Red Hat rates the integrity impact Low, and SUSE raises the attack complexity to High, as BreachNews reports from their CVE pages. Every vendor still puts it in its top two severity tiers.

How do I check my server?

Run these four checks, one per condition. First the running kernel:

uname -r

Then whether the NFS server module is loaded. No output means nfsd is not running, and the flaw cannot be reached on this server:

lsmod | grep -w nfsd

If nfsd is loaded, see which NFS versions it offers. Look for +4.1 or +4.2:

sudo cat /proc/fs/nfsd/threads /proc/fs/nfsd/versions

And whether port 2049 listens on a public or private address, not only on 127.0.0.1:

ss -ltn 'sport = :2049'

To see whether your installed kernel already carries the fix, search its changelog for the CVE or the fix’s title. On Ubuntu:

zgrep -cE 'CVE-2026-99362|preflight SEQUENCE replies before accepting a slot' /usr/share/doc/linux-modules-$(uname -r)/changelog.Debian.gz

On Debian, the same search on /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz. On RHEL, AlmaLinux and Rocky:

rpm -q --changelog kernel-core-$(uname -r) | grep -cE 'CVE-2026-99362|preflight SEQUENCE replies before accepting a slot'

A count of 0 means the running kernel does not include the fix. Each attempt to trigger the bug also leaves kernel warnings from nfsd4_check_resp_size, according to tldrcve and RFF, so on an exposed server it is worth a look:

sudo journalctl -k | grep -E 'nfsd4_check_resp_size|nfsd4_'

How do I patch or contain it?

1. If you do not need the NFS server, turn it off. This ends active NFS sessions, so confirm nothing mounts from this machine first:

sudo systemctl stop nfs-server
sudo systemctl disable nfs-server

On Debian and Ubuntu the service may also be called nfs-kernel-server. Run lsmod | grep -w nfsd again afterwards; once nfsd is gone, the flaw is out of reach.

2. Install the fixed kernel as soon as your distribution ships it, and reboot. Take a snapshot first. The fix does nothing until the new kernel is running.

sudo apt update && sudo apt full-upgrade
sudo dnf upgrade kernel
sudo reboot

Use the apt line on Debian and Ubuntu and the dnf line on the Red Hat family. After the reboot, run uname -r and the changelog check above. On Debian 12, the fixed kernel is the linux-6.12 backport from DLA-4927-1; the default 6.1 kernel had no fix on the tracker when we checked.

3. Until then, limit port 2049 to the clients that need it. With ufw, add the allow rule for each client before the deny (203.0.113.10 is an example address):

sudo ufw allow from 203.0.113.10 to any port 2049 proto tcp
sudo ufw deny 2049/tcp

With firewalld, remove the open NFS service and allow only trusted sources:

sudo firewall-cmd --permanent --remove-service=nfs
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="2049" protocol="tcp" accept'
sudo firewall-cmd --reload

Port 2049 should never be open to the whole internet in the first place.

4. Or turn off NFSv4.1 and 4.2 as a stopgap. In /etc/nfs.conf (or a file in /etc/nfs.conf.d/), under the [nfsd] section:

[nfsd]
vers4.1=n
vers4.2=n
sudo systemctl restart nfs-server

This also disables pNFS and some NFSv4.2 features, and in RFF’s tests existing 4.1 mounts failed with “Stale file handle” until the clients remounted. Plan it as a short maintenance, and undo it once the fixed kernel is running.

How this works on a RemarkableCloud server

Every server we sell is fully managed at no extra cost. For a flaw like this one, our agents detect newly reported vulnerabilities and measure which servers are actually exposed, we put preventive measures in place before a patch exists, and we roll out patches after testing them on a dev box and on canary servers. The managed firewall and IDS run on centralized log analysis and live threat data, and every server takes a daily snapshot, with extra snapshots free before a change.

If you run an NFS server on one of our servers, or are not sure whether something you installed started one, open a ticket and we will check it with you. For more on how quickly new flaws get used, read how fast attackers exploit new vulnerabilities, or see what our managed VPS includes.

Methodology

  • Flaw, timeline and exploit chain: OpenSec Intelligence’s NFS2ROOT write-up as reported on November 25 and 26, 2026 by BreachNews, Threat Landscape and tldrcve. We could not load OpenSec’s page or the kernel mailing list announcement during this run, so the timeline and the exploit chain are as those reports give them; they agree on the dates, the affected range and the fixed upstream versions. The fix description comes from Debian’s tracker, which quotes the kernel CVE text.
  • Scores: the 9.8 kernel CNA score as shown on Ubuntu’s CVE page and Tenable’s plugin 383796; the Red Hat (9.4) and SUSE (8.1) scores as BreachNews reported them from those vendors’ CVE pages on November 26, which we did not open ourselves.
  • Distribution status: Debian’s security tracker and Ubuntu’s CVE page as read on November 27, 2026 (Ubuntu’s last update was November 25). Red Hat’s status is from BreachNews’s November 26 update, which conflicts with Threat Landscape’s analysis the same day, so we report both. Status changes daily; check your vendor before acting on this table.
  • Exploitation: no public exploit or confirmed attacks per Threat Landscape (November 26); CISA KEV status per tldrcve (November 26).
  • Commands: the four exposure checks and the nfs.conf stopgap follow OpenSec’s checklist as tldrcve and RFF publish it; the changelog and kernel-log checks are RFF’s; the service, package and firewall commands are standard systemd, apt, dnf, ufw and firewalld usage.

Questions and answers

What is NFS2ROOT?

NFS2ROOT is CVE-2026-99362, a heap overflow in nfsd, the Linux kernel's built-in NFS server. A client that can reach TCP port 2049 can trigger it during NFSv4.1 session setup without a login, a mount or an export, and the researchers who named it turned it into a root shell. The kernel CVE team scores it 9.8 out of 10.

Is my server affected by CVE-2026-99362?

Only if four things are true at once: the running kernel predates the fix, the nfsd module is loaded, NFSv4.1 or 4.2 is enabled, and port 2049 listens on a non-loopback address. A server that does not run the NFS server, or that only mounts NFS shares as a client, does not meet the second condition.

Which kernel versions fix NFS2ROOT?

Upstream stable kernels 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, and mainline 7.4-rc1. On a distribution kernel, install the vendor update that names CVE-2026-99362 and reboot; the fix is not active until the new kernel is running.

Is NFS2ROOT being exploited?

No attacks had been reported as of November 26, 2026, and it was not in CISA's Known Exploited Vulnerabilities catalog. The researchers showed a working root exploit but have kept it private, so there is no public exploit code yet.

What can I do if my distribution has no fixed kernel yet?

If you do not need the NFS server, stop and disable it. If you do, limit TCP port 2049 to the client addresses that need it, or turn off NFSv4.1 and 4.2 in /etc/nfs.conf, which breaks existing 4.1 mounts until clients remount.

Sources and references

  1. Threat Landscape, CVE-2026-99362 NFS2ROOT Linux kernel analysis (November 26, 2026) · threatlandscape.io
  2. BreachNews, NFS2ROOT: Linux patches a 12-year pre-auth remote root bug in nfsd (November 25, updated November 26, 2026) · breachnews.com
  3. tldrcve, NFS2ROOT (CVE-2026-99362) in plain English (November 26, 2026) · tldrcve.com
  4. RFF, NFS2ROOT: one connection to port 2049 can get root on a Linux NFS server. How to check yours (November 25, 2026) · getrff.com
  5. Debian security tracker, CVE-2026-99362 (read November 27, 2026) · security-tracker.debian.org
  6. Ubuntu security, CVE-2026-99362 (last updated November 25, 2026) · ubuntu.com
  7. Tenable, Nessus plugin 383796: Linux distros unpatched vulnerability, CVE-2026-99362 · tenable.com

Your server runs. You sleep.

Fully managed hosting from people who have been doing this since 2001.