Loading SecureCyberVM…
SecureCyberVM
CVE Lookup Daily Threat Briefing Exploited CVEs Ransomware Zero-day
SecureCyberVM
Get the Patch Brief

NFS2ROOT: 12-year-old Linux NFS server flaw CVE-2026-99362 allows remote root

A critical out-of-bounds write in the Linux kernel's NFSv4.1+ server code, dubbed NFS2ROOT, can let unauthenticated attackers gain root on exposed file servers. Stable kernel fixes are out and Debian has shipped updates.

NFS2ROOT: 12-year-old Linux NFS server flaw CVE-2026-99362 allows remote root

A critical memory-corruption bug in the Linux kernel’s NFS server, tracked as CVE-2026-99362 and nicknamed NFS2ROOT, can let an unauthenticated attacker on the network run code as root on an exposed file server. The flaw sits in the in-kernel nfsd code that handles NFSv4.1 and 4.2 sessions, and BleepingComputer reports that it dates back roughly 12 years, to Linux 3.16.

Fixes are already in the upstream stable kernels and are now reaching distributions; Debian shipped an update for Debian 12 on November 27. There are no reports of exploitation in the wild, but a security firm says it has built a working remote-root exploit, so any NFS server reachable from untrusted networks should be patched and rebooted promptly.

What happened

According to the kernel CNA’s description in the NVD record, the problem is in nfsd4_sequence(), which handles the SEQUENCE operation that opens every NFSv4.1+ compound request. The server shrinks the reply buffer to the session’s cached-reply limit before it has accepted the request’s slot. A client can negotiate that limit down so far that the per-slot cache becomes zero-length, and then send a compound that fills the reduced buffer. When the server caches the reply, it writes past the end of the slot’s memory. The upstream fix checks that the SEQUENCE result, plus room for the next operation’s status, fits within the negotiated limit before the buffer is narrowed.

BleepingComputer credits the discovery to Jérémy Jean of France’s ANSSI, who submitted the fix in August. The NFS2ROOT name comes from security firm OpenSec, which, according to the same report, shared a full remote-root exploit and a patch with the NFSD maintainers in late September. OpenSec’s chain, as BleepingComputer describes it, leaks kernel memory to defeat KASLR, plants a callback in freed memory and gets the kernel to run an attacker-supplied command as root when the NFS connection closes.

Who is affected

NVD lists the bug as introduced in Linux 3.16 and fixed in the following stable releases:

  • 5.10 series: 5.10.275
  • 5.15 series: 5.15.226
  • 6.1 series: 6.1.193
  • 6.6 series: 6.6.163
  • 6.12 series: 6.12.117
  • 6.18 series: 6.18.61
  • 7.3 series: 7.3.2, and mainline from 7.4-rc1

Exposure requires the kernel NFS server to be loaded and running with NFSv4.1 or 4.2, and TCP port 2049 to be reachable by the attacker, according to BleepingComputer. Machines that only mount NFS shares as clients are not described as affected. Debian’s DLA 4942-1 fixes Debian 12 (bookworm) in kernel package version 6.1.192-3, a backport. Patch status for other distributions such as Ubuntu, Red Hat Enterprise Linux and SUSE was not confirmed at the time of writing; check each vendor’s tracker.

Severity and exploitation

The kernel CNA scores the flaw 9.8 (critical) under CVSS 3.1, with a network attack vector, low complexity, and no privileges or user interaction required. Debian describes it as an out-of-bounds write that could result in remote code execution. BleepingComputer reports no known in-the-wild exploitation. OpenSec’s exploit has not been reported as publicly released, but its technique has now been described in outline, which lowers the bar for others.

What defenders should do now

  1. Find every host running the kernel NFS server, for example by checking whether the nfs-server service is active and whether anything listens on TCP 2049.
  2. Install your distribution’s fixed kernel (or a stable release at or above the versions listed) and reboot; the fix does not take effect until the new kernel is running.
  3. If you cannot patch immediately, restrict TCP 2049 to known client addresses with host or network firewalls, and never expose it to the internet.
  4. Where the NFS server is not needed, stop and disable it.
  5. Remember appliances and NAS devices built on Linux; ask vendors whether their firmware ships an affected nfsd.
  6. Watch for warning signs OpenSec has listed, per BleepingComputer: kernel warnings from nfsd4_check_resp_size, oopses with nfsd4_*, svc_* or call_usermodehelper* frames, shells spawned by kernel worker threads on file servers, and bursts of short-lived NFSv4.1 sessions from one source.

SCVM analysis

NFS2ROOT stands out in a year crowded with Linux privilege-escalation bugs because it is remote and needs no account at all. Most of those flaws require a local foothold; this one needs only network reach to a file server, which is often a high-value system holding shared data and home directories. The saving grace is that NFS is rarely meant to face the internet, so for most organisations the real exposure is internal: a single compromised workstation on a flat network could reach storage servers directly. That makes this a good moment to review segmentation around storage as well as to patch. The quiet path from fix to disclosure also matters. The upstream change landed in August under a terse commit message, which is typical of kernel security fixes, so teams that track only headline CVEs and not stable kernel updates will tend to learn about such bugs late.

Sources

About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

SecureCyberVM

Install SecureCyberVM

Get the Daily Threat Briefing and exploited-CVE alerts one tap away, full screen, like an app.