Linux Kernel NFS2ROOT (CVE-2026-99362): Remote Root, Patch Now

Linux kernelNFSCVE-2026-99362Product security

On 19 November 2026 the kernel’s CVE team published CVE-2026-99362, known as NFS2ROOT: a heap overflow in the in-kernel NFS server, rated CVSS 9.8. A client that can reach TCP port 2049 triggers it during NFSv4.1 session setup, before it has mounted anything or logged in.

The 9.8 is not inflated. OpenSec, who reported the bug, has published a video of an unauthenticated client getting a root shell on a Linux NFS server over port 2049 alone. Their exploit code is private, and there are no reports of attacks in the wild. Even so, treat this as a remote root bug and patch.

Developing story. Last checked: 26 November 2026, against the releases of that day (5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2). NVD has not yet analysed the CVE; the CNA score is 9.8.

NFS2ROOT in short

CVE-2026-99362
ComponentNFSv4.1 SEQUENCE handling in fs/nfsd
Bug classHeap out-of-bounds write into a session slot’s reply cache
Kconfig gateCONFIG_NFSD and CONFIG_NFSD_V4
Runtime gateA running NFS server with NFSv4.1 or 4.2 enabled (the default)
AttackerAny host that can reach TCP port 2049; no mount, no credentials
IntroducedLinux 3.16 (2014)
Fixed in5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
ScoresCVSS 9.8 from the kernel CNA and SUSE (NVD has not analysed it yet)
ExploitRemote root demonstrated on video by OpenSec; exploit code private; not in CISA KEV; no reported exploitation (26 November)
Found byOpenSec (reported with a working exploit on 22 September) and, independently, Jérémy Jean of ANSSI, who wrote the upstream fix

Every long-term branch has a release with the fix. Distribution kernels lag: Debian’s tracker shows trixie fixed (6.12.117-1) and bookworm’s default 6.1 kernel still vulnerable on 26 November.

What the bug is

An NFSv4.1 client opens a session, and each session slot keeps a copy of its last reply so a retried request can be answered again. The client decides how big that cache is, and it may choose zero bytes. A crafted request then makes the server believe a reply succeeded and copy the whole reply into that empty cache. According to OpenSec, that writes 61 bytes past the end of a kernel heap object, 40 of them chosen by the client.

Three details make it serious:

  • No account, no mount. It happens during session setup, before any export is touched.
  • Export options don’t help. Read-only, root_squash and Kerberos (sec=krb5) all apply later than the bug.
  • Old and on by default. The code has been in the kernel since 2014, and NFSv4.1 and 4.2 are enabled by default.

From overflow to root

A heap overflow on its own often ends in a crash. What turns NFS2ROOT into a remote root is that the same bug also leaks: per OpenSec, the corrupted slot can be made to hand back several kilobytes of kernel memory, which reveals where the kernel is loaded. With that, the overflow can be aimed. OpenSec’s chain ends with the kernel running a shell as root when the attacker disconnects. Their video shows root and uid=0(root) printed on the victim’s console, from a client that only talks to port 2049.

OpenSec says its automated research harness built the exploit, and that the exploit stays private. That buys time, not safety: the fix is public, the mechanism is described, and a researcher working from the patch knows where to look.

Our verdict. Treat NFS2ROOT as a pre-auth remote root on any unpatched Linux NFS server that untrusted hosts can reach. No public exploit code today does not mean low risk.

Am I exposed?

You are exposed if all four are true:

ConditionHow to check
Kernel older than the fixed release of its branch, with no distribution backportuname -r, your distribution’s tracker
The in-kernel NFS server is runninglsmod | grep -w nfsd
NFSv4.1 or 4.2 is enabledcat /proc/fs/nfsd/versions shows +4.1 or +4.2
Port 2049 is reachable by hosts you don’t trustss -ltn 'sport = :2049' plus your firewall rules

A storage network that only trusted clients can reach narrows who can attack, but anyone on it, or anything compromised on it, can still reach the bug. Kernel hardening does not remove the overflow.

What to do

  1. Patch and reboot. 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 or later in the same branch, or the distribution update that lists CVE-2026-99362.
  2. If you can’t patch today, close port 2049 to everything except the clients that need it.
  3. Or turn off NFSv4.1 and 4.2 (vers4.1=n and vers4.2=n in the [nfsd] section of /etc/nfs.conf, then restart the NFS server). This also turns off pNFS and some 4.2 features.
  4. If the device doesn’t need to serve NFS, build the server out (CONFIG_NFSD=n).
  5. Look for attempts. OpenSec reports a kernel warning from nfsd4_check_resp_size on every attempt, successful or not. Oopses with nfsd4_* frames and shells started by kernel workers on a file server are also worth a look.

30-second checklist

CheckResult
CONFIG_NFSD or CONFIG_NFSD_V4 not setNot affected, code_not_present
nfsd built but never started on the productNot affected, requires_configuration, if nothing can start it
nfsd running, port 2049 reachable only from a trusted storage networkAffected: patch promptly, the attacker pool is everything on that network
nfsd running, port 2049 reachable from untrusted networksAffected: patch now; until then close 2049 or disable NFSv4.1 and 4.2

Doing this for your own kernel

Upload your kernel .config to KernelScan and you see whether NFS2ROOT, and every other kernel CVE, is actually built into your kernel: a product without CONFIG_NFSD gets it marked not affected automatically. With Security Factors you describe how the product is deployed, for example whether untrusted networks can reach it, and each remaining CVE is checked against its attack paths. The result is a CycloneDX VEX document you can import into Dependency-Track.

References: OpenSec: NFS2ROOT (CVE-2026-99362) (advisory and video), watchTowr FAQ, Debian security tracker, SUSE, mainline fix. Exploit details are OpenSec’s; we have not reproduced the exploit. Status as of 26 November 2026; NVD had not scored the CVE yet.