← gociux.comall insights

Vulnerability alert · 27 Nov 2026

NFS2ROOT (CVE-2026-99362): one connection to port 2049 can root a Linux NFS server

, Gociux · 27 Nov 2026 · 5 min read

TL;DR

If a Linux server, NAS or Kubernetes storage node runs the kernel NFS server and an untrusted network can reach its TCP port 2049, treat it as remotely rootable until it runs a fixed kernel. That means CVE-2026-99362 ("NFS2ROOT"), patched upstream but still pending in many distribution kernels. The fix only counts after a reboot. Until then, restricting port 2049 to the hosts that really need it is the most effective step, and turning off NFSv4.1 and 4.2 is the fallback.

What the flaw is

The bug is in nfsd's handling of the NFSv4.1 SEQUENCE operation, which every v4.1 and v4.2 request starts with. A crafted request overflows a heap buffer in the kernel before any authentication. NFSv3 and NFSv4.0 don't use sessions and aren't affected. The bug was introduced in kernel 3.16 in 2014 and fixed by upstream commit 35ff1a7a7e38 in October and November 2026 (Threat Landscape).

OpenSec found it with its AI research system Antara and reported it to the kernel maintainers on 22 September 2026. An ANSSI researcher had reported it independently in August. OpenSec says its private exploit leaks kernel memory to defeat KASLR and then gets a root shell over a single TCP connection. In its words: "If your Linux server speaks NFS, anyone who can reach port 2049 can own it. No password, no account, no click." (Cybernews)

Exploitation status: no public exploit and no attacks reported as of 26 November, and not in CISA's KEV catalog (watchTowr). The finders used an AI-assisted harness and the fix is public, so expect others to rebuild an exploit from the patch.

Who is exposed

Check a server in one minute

# is the kernel NFS server running, and which versions does it offer?
systemctl is-active nfs-server nfs-kernel-server 2>/dev/null
cat /proc/fs/nfsd/versions        # "+4.1" or "+4.2" = exposed version enabled

# who can reach it, and which kernel is actually running?
ss -tlnp | grep ':2049'
uname -r

Compare uname -r with your distribution's advisory for CVE-2026-99362 (Ubuntu, Red Hat, Debian, SUSE trackers), not with upstream version numbers. Distributions backport the fix under their own kernel releases. As of 26 November, Debian had fixed packages for some lines, Ubuntu listed supported kernels as vulnerable with fixes in progress, and Red Hat listed RHEL 6–10 as affected with no errata yet (Threat Landscape).

What to do, in order

  1. Restrict port 2049 today. Allow it only from the clients that mount the shares, at the host firewall and the network edge. NFS should never face the internet; if yours does, close it now.
  2. If you can't restrict it, disable NFSv4.1 and 4.2. In /etc/nfs.conf, under [nfsd], set vers4.1=n and vers4.2=n, restart the NFS server, and check /proc/fs/nfsd/versions shows -4.1 -4.2. Clients fall back to v4.0 or v3. You lose pNFS and some 4.2 features, so test with your clients first.
  3. Stop and disable the NFS server anywhere it isn't actually used. Old build boxes and forgotten lab VMs are typical.
  4. Patch and reboot when your distribution ships the fixed kernel. Live-patching services may cover it; confirm with your vendor. Until the new kernel is running, you are not protected.
  5. Watch for attempts: kernel warnings or oopses mentioning nfsd (nfsd4_check_resp_size), unexpected shells spawned by kernel worker threads, and bursts of short-lived NFSv4.1 sessions from unfamiliar sources.

Storage servers often fall outside the normal patch cycle because rebooting them disrupts everything that mounts them. For PCI DSS and NIS2, this is a critical vulnerability: document the interim restriction, plan the reboot window, and record when the fixed kernel went live. Our stack check emails you when a product you list lands in CISA KEV, and the radar tracks CVEs climbing in exploitation likelihood, such as CVE-2026-99362.

Questions

Which kernel versions fix CVE-2026-99362?

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, plus 7.4-rc1. Distribution kernels carry the fix under their own version numbers, so check your distribution's advisory, and reboot into the new kernel.

Are NFS clients affected by NFS2ROOT?

No. The flaw is in the kernel NFS server (nfsd). Machines that only mount NFS shares are not affected, and neither are user-space servers like NFS-Ganesha or servers limited to NFSv3 or NFSv4.0.

How do I mitigate NFS2ROOT without rebooting?

Restrict TCP port 2049 to trusted clients with a firewall. If that isn't possible, disable NFSv4.1 and NFSv4.2 by setting vers4.1=n and vers4.2=n under [nfsd] in /etc/nfs.conf and restarting the NFS server. Install the fixed kernel as soon as your vendor ships it.

Not sure which servers speak NFS?

We map storage and NFS exposure across servers, NAS and clusters, apply firewall and protocol mitigations without breaking mounts, and plan the kernel reboots, with evidence your PCI DSS or NIS2 auditor will accept.

Request a quote →

Sources

Developing story, last checked 27 Nov 2026 around 07:30 UTC. Your distribution's advisory is the source of truth for fixed kernels.