Linux kernel NFS server flaw NFS2ROOT gives remote root (CVE-2026-99362)

Linux kernel NFS server flaw NFS2ROOT gives remote root (CVE-2026-99362)

At a glance

SeverityCRITICAL
CVSSCVE-2026-99362: 9.8
EPSS (30-day exploit probability)CVE-2026-99362: 1.1%
In CISA KEV (exploited)No
VendorLinux
CVE IDsCVE-2026-99362

Primary-source details

  • CVE-2026-99362: CVSS 9.8 (Critical), per NVD; a fixed version has not been published.

A critical flaw in the Linux kernel’s in-kernel NFS server, CVE-2026-99362 and nicknamed NFS2ROOT, lets a remote attacker gain root without credentials or user interaction, according to Security Affairs. It carries a CVSS score of 9.8. The researchers who built a working exploit say they know of no attacks in the wild.

This Linux NFS vulnerability dates back to 2014, which is why a large number of file servers, storage appliances and build systems may carry it. A fix is available in the kernel.

What happened

The bug sits in how nfsd handles the reply cache that NFSv4.1 clients negotiate. A client can shrink that cache so each slot has zero length. The NVD description explains that a crafted COMPOUND request then fills the narrowed reply buffer so the server never encodes the SEQUENCE status, yet treats the request as successful. The server then copies the whole reply, including headers and the client-chosen tag, into a zero-length slot. The result is a heap write past the end of the allocation, and the client controls most of the bytes written.

According to the report by security firm OpenSec, as relayed by Security Affairs, this happens before authentication. Chaining normal NFS requests in a specific order let its researchers leak about 3.8 KB of kernel memory, get around address randomisation and plant a command in reused memory that the kernel runs as root when the connection closes. OpenSec demonstrated root access against a test server.

The coverage reports the following timeline: the bug was introduced in March 2014 and first shipped in Linux 3.16. Jérémy Jean of France’s ANSSI found it and submitted a fix on August 17, 2026. OpenSec says it found the same flaw independently on September 21 and sent maintainers an exploit and patch the next day. The CVE and fixes were published around November 20. We are covering it now because OpenSec’s technical write-up and a public mailing-list post appeared at the end of November, which makes exploit development by others more likely.

Am I affected?

Per the reporting, exploitation needs all of the following:

  • A vulnerable kernel.
  • The in-kernel NFS server (nfsd) running.
  • NFSv4.1 or 4.2 enabled, which is the default.
  • Network access to TCP port 2049.

The server does not have to be internet-facing. An attacker already inside the network, or on a flat storage network, can reach it. Typical exposed systems include file servers, storage devices, build systems and Kubernetes storage nodes. The NVD record does not list affected version ranges, so use your distribution’s advisory to confirm. Distribution kernels often backport fixes without changing the version number.

Quick checks suggested in the reporting:

uname -r
lsmod | grep -w nfsd
cat /proc/fs/nfsd/versions
ss -ltn 'sport = :2049'

Technical details

  • CVSS 3.1: 9.8 (critical), vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, per NVD.
  • Class: slab out-of-bounds write (heap overflow) in nfsd4_sequence handling. NVD has not assigned a CWE.
  • Exploitation: no known in-the-wild exploitation reported by OpenSec; a proof of concept exists in the researchers’ hands.

Why this matters

This section is our analysis, not reported fact. A pre-authentication kernel write reachable on a default-enabled protocol is a worst case for storage hosts, because compromise yields root on a machine that often holds shared data and credentials. The absence of reported attacks reflects current exploitation, not difficulty: the flaw is simple to trigger over the network, and exposure is mostly about whether port 2049 is reachable from places it should not be. Treat internet-reachable NFS as an emergency, and internal NFS servers as a patch within days, sooner if untrusted users or workloads share the network.

What to do

  1. Update the kernel and reboot. The reported fixed releases are Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, as appropriate for your branch.
  2. On distribution kernels, install the vendor update that lists CVE-2026-99362 rather than comparing version numbers, since backports are common.
  3. If you cannot patch immediately, restrict TCP port 2049 to trusted storage networks only, and block it from user and guest segments and from the internet.
  4. If NFS is not needed on a host, stop nfsd and remove the export configuration.

Detection and hunting ideas

No indicators of compromise have been published. Based on the mechanism, hunt for unexpected NFSv4.1 sessions from hosts that are not known clients, connections to port 2049 from user subnets, kernel oops or KASAN-style slab messages mentioning nfsd in logs, and unexplained root processes spawned on NFS servers shortly after a client disconnects.

Related free tool: test how long a password would take to crack with our Password Strength Checker. It runs entirely in your browser and nothing you type is sent or stored.

Related coverage

Sources

Spotted an error or outdated detail? Email contact@cyberstrikenews.com with the article link. We correct and note every change. Read our Editorial Policy.

Similar Posts