NFS2ROOT shows how a reply cache became a remote root boundary
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
NFS2ROOT shows how a reply cache became a remote root boundary
A Linux host can expose a root-level attack surface without running a web server, database, or container control plane. If it serves NFSv4.1 or NFSv4.2 through the kernel's nfsd service, a client that can reach TCP port 2049 may reach a memory corruption bug before normal authentication becomes relevant. OpenSec calls the issue NFS2ROOT and reports a complete path from an unauthenticated NFS connection to a root shell. The assigned identifier is CVE-2026-99362 (NFS2ROOT: A local privilege escalation from an NFS client; Linux kernel CVE-2026-99362 record).
That description needs one important qualifier. OpenSec's report documents its own exploit demonstration and credits OpenSec Intelligence with turning the flaw into remote root. Red Hat's advisory confirms the out-of-bounds write and says the impact can range from a kernel crash to potential arbitrary code execution, but it does not independently reproduce OpenSec's root shell in the advisory (NFS2ROOT: A local privilege escalation from an NFS client; Red Hat CVE-2026-99362 record). The safe conclusion for defenders is still urgent: a network-facing kernel service has a critical memory safety flaw, and the affected service is often deployed on storage systems that are expected to be reachable by many machines.
The bug was disclosed on November 20, 2026, after a longer path through upstream development. OpenSec dates the original faulty behavior to a 2014 change that shipped in Linux 3.16. It also credits Jérémy Jean of ANSSI with an independent discovery and an upstream fix sent in August 2026 (NFS2ROOT: A local privilege escalation from an NFS client). The public record therefore contains more than a severity score. It gives defenders a way to connect the report, the kernel fix, and the distribution status without treating a researcher's exploit video as the only evidence.
The boundary is the NFS server itself
NFS is a remote filesystem protocol, but the relevant code for this issue is not a user-space file sharing application. The Linux NFS server, nfsd, runs in the kernel. Red Hat's advisory says a host is exposed when it is configured to export NFSv4.1 or NFSv4.2 shares, while systems that do not operate as NFS servers are not exposed to this specific flaw ().
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Google Cloud patched a critical path traversal flaw spanning Dataform, BigQuery Studio, and Colab Enterprise. The public record explains the cross-tenant impact, but not the exploit path. Here is what the evidence supports, what Git integration changes, and which controls still matter after a managed-service fix.
That distinction matters in asset inventories. A Linux machine may have NFS client packages installed because it mounts a share, yet never load the in-kernel server. A storage node, hypervisor, build farm, backup server, or Kubernetes worker may do the opposite and accept NFS connections even though its primary inventory label says something else. The question is not simply whether the word NFS appears in a package list. The questions are whether nfsd is active, which protocol versions it accepts, what address it listens on, and which networks can reach port 2049.
OpenSec describes the vulnerable path as pre-authentication and network reachable. Its affected-scope summary points to in-kernel nfsd serving NFSv4.1 or NFSv4.2 on a reachable TCP port 2049 (NFS2ROOT: A local privilege escalation from an NFS client). Red Hat reaches the same operational boundary from a different angle: its default Red Hat Enterprise Linux configurations do not enable the NFS server daemon, so systems that never export NFS shares are outside the stated attack surface (Red Hat CVE-2026-99362 record).
This is also why a firewall is useful but not a complete fix. Restricting 2049 to a storage VLAN reduces who can deliver the input. It does not correct the parser or the memory management bug. A compromised workload, an untrusted tenant on a flat storage network, or an accidentally exposed interface could still become the origin of a valid NFS connection. Red Hat recommends disabling the NFS server when it is not required and restricting access to trusted networks when it must remain available (Red Hat CVE-2026-99362 record).
Illustration of the trust boundary described in the upstream and distribution records. It explains the data path, not a captured exploit or measured result.
The failure starts with a negotiated cache size
The root cause sits in NFSv4.1 session handling. Each session slot keeps a cached reply so that a retried request can receive the same response. The client negotiates the maximum size of cached replies. According to the upstream vulnerability description reproduced by Debian and Ubuntu, a client can negotiate ca_maxresponsesize_cached down to the minimum header size. The server then allocates slots whose cached data area can have zero length (Linux kernel CVE-2026-99362 record; Debian Security Tracker CVE-2026-99362; Ubuntu CVE-2026-99362).
A zero-length cache is not automatically a vulnerability. The dangerous condition appears when the server accepts a SEQUENCE operation without checking that the fixed-size response, plus the status needed for a following operation, can fit inside the negotiated limit. Debian's technical description says a compound tag can fill the narrowed buffer until it contains the SEQUENCE opcode but not the status word that follows. The encoder returns without marking the operation as failed, and the request is treated as successful (Debian Security Tracker CVE-2026-99362).
The next step is the memory safety failure. The server copies the complete reply, including RPC and compound headers, into the zero-length slot buffer. The upstream KASAN report records an 80-byte write and a slab out-of-bounds condition in the reply encoding path. Debian's tracker preserves the relevant call chain and the fix rationale, while Ubuntu repeats the same upstream description in its CVE record (Debian Security Tracker CVE-2026-99362; Ubuntu CVE-2026-99362).
The useful engineering lesson is not that a cache was too small. It is that a negotiated resource limit changed the size of a destination buffer, but the response path did not carry that limit through every later operation. One function narrowed the buffer. Another function encoded a response under the assumption that the operation had succeeded. A third path copied the result into the cache. The bug lived in the gap between those responsibilities.
A robust implementation has to validate the invariant before state changes become visible. The SEQUENCE response must fit before the server accepts the slot and consumes the sequence identifier. If it does not fit, the operation must return an error and leave the slot and its reply cache unchanged. That is the behavior described by Debian's tracker and Ubuntu's upstream-fix text (Debian Security Tracker CVE-2026-99362; Ubuntu CVE-2026-99362).
This is a classic boundary problem in protocol code. The peer is allowed to choose a value within the protocol's negotiation rules. The server is still responsible for ensuring that the chosen value cannot make a later write exceed an allocation. A minimum legal value is often the most interesting value to test because it forces the implementation through paths that normal clients rarely exercise.
What the public evidence does and does not show
OpenSec reports a complete exploit chain. In its account, the initial overwrite corrupts neighboring slot bookkeeping, a replay leaks kernel heap data, a forged pointer enables an arbitrary free, and reclaimed memory supplies a callback that later executes a shell as root (NFS2ROOT: A local privilege escalation from an NFS client). Those steps explain why the researcher rated the issue as critical and why the issue is more serious than a simple denial of service.
That chain remains an attributed research result. The public Red Hat record describes potential arbitrary code execution and denial of service, not a vendor-confirmed campaign or a universal exploit across all kernels and configurations (Red Hat CVE-2026-99362 record). The available sources also do not establish active exploitation in the wild. The article should not turn OpenSec's controlled demonstration into a claim that every vulnerable host has already been compromised.
The distinction affects incident response. A vulnerable NFS server should be treated as a high-priority exposure, especially when 2049 is reachable beyond a tightly controlled storage segment. That does not by itself prove an intrusion. Teams should look for kernel warnings and crashes around the NFS server, unexpected service instability, unusual NFS session patterns, and other host-level indicators, but they should not assume that one warning is proof of remote root. OpenSec lists nfsd warnings, kernel oops frames, shell activity associated with kernel workers, and bursts of short NFSv4.1 sessions as hunting leads (NFS2ROOT: A local privilege escalation from an NFS client).
The evidence also has a practical limit around appliances. OpenSec says the faulty behavior persisted through distribution and appliance kernels, but an appliance vendor may ship a heavily backported kernel whose version string does not resemble an upstream fixed release (NFS2ROOT: A local privilege escalation from an NFS client). A scanner that compares only the first three numbers of uname -r can produce both false positives and false negatives. The authoritative answer for a managed appliance is its vendor advisory or security update, not a guess based on the upstream branch number.
Patch status is a distribution question
The upstream and distribution records show why a single version rule is not enough. OpenSec lists fixes in Linux 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1 (NFS2ROOT: A local privilege escalation from an NFS client). Debian's tracker lists fixed packages for bookworm, trixie, and unstable, including 6.1.192-3 for bookworm and 6.12.117-1 for trixie, while also recording later security package revisions (Debian Security Tracker CVE-2026-99362). Those are distribution package versions, not a promise that every kernel carrying a similar upstream base is fixed.
Ubuntu's CVE page shows the operational risk of waiting for a simple upstream comparison. On the page last updated November 25, 2026, Ubuntu lists several long-term support kernel lines as vulnerable, while newer releases show work in progress rather than a universal fixed state (Ubuntu CVE-2026-99362). That status can change as packages move through testing and security publication. Administrators should use the current Ubuntu record and installed package metadata when making a deployment decision.
Red Hat's record provides another reason to check the vendor page. It links multiple stable kernel commits and scopes exposure to hosts that actually run the NFS server (Red Hat CVE-2026-99362 record). Enterprise distributions commonly backport security fixes without changing the major upstream version in the way a source-built kernel would. The right question is whether the vendor package includes the fix for CVE-2026-99362, not whether the string printed by uname -r looks newer than a blog post's table.
A sensible patch workflow starts with an inventory query for NFS servers, not a scan of every Linux host. Identify machines with nfsd loaded or the nfs-server service enabled. Record the NFS protocol versions configured on each host and the listening addresses for TCP 2049. Map each machine to its distribution, kernel package, reboot policy, and owner. Then check the vendor's security record and install the fixed package through the normal update channel.
The reboot step is part of the fix for a kernel vulnerability. Installing a new package does not replace the kernel currently executing on the host. Maintenance automation should verify the running kernel after reboot and should record whether an NFS service restart was needed. For immutable or appliance systems, the equivalent may be a firmware or platform update rather than a package install. OpenSec explicitly tells operators to patch and reboot, while Red Hat warns that stopping nfs-server terminates active NFS sessions and interrupts client operations (NFS2ROOT: A local privilege escalation from an NFS client; Red Hat CVE-2026-99362 record).
Temporary controls while updates move
If the host does not need to serve NFS, disable the server service and remove it from the boot path. Red Hat provides systemctl stop nfs-server and systemctl disable nfs-server as mitigation commands, with a warning that stopping the service interrupts active clients (Red Hat CVE-2026-99362 record). Treat that as a change with application impact, not as a harmless hardening toggle.
If NFS must remain online, restrict TCP 2049 to the smallest set of trusted clients and interfaces. That control should be applied at more than one boundary when the architecture allows it. A host firewall can reduce accidental exposure, while a storage network policy can keep a compromised application network from reaching the service. The rule should be explicit about IPv4 and IPv6, because closing one address family while leaving the other reachable is not a complete restriction.
OpenSec also describes disabling NFSv4.1 and NFSv4.2 as a temporary option, with a warning that this removes pNFS and some NFSv4.2 features (NFS2ROOT: A local privilege escalation from an NFS client). That tradeoff may be unacceptable for a production storage platform. It is better understood as a containment choice for a controlled maintenance window, not a replacement for patching. Teams should confirm which clients depend on those protocol versions before changing the server configuration.
Do not rely on kernel hardening as the sole response. OpenSec's report says hardening does not remove the underlying overflow (NFS2ROOT: A local privilege escalation from an NFS client). Mitigations can make exploitation more difficult or reduce reachability, but the defective response path remains present until the affected code is replaced or the server is removed from exposure.
What this teaches about protocol testing
The most interesting part of NFS2ROOT is the smallness of the triggering condition. The server did not need an exotic extension, a malformed transport packet, or a credential bypass. The client used a legal negotiation field to request a very small cached reply size, then exercised a compound operation whose response bookkeeping did not respect that size (Linux kernel CVE-2026-99362 record; Debian Security Tracker CVE-2026-99362; Ubuntu CVE-2026-99362).
Protocol test suites should spend more time at the edges of negotiated values. A test that covers a normal cache size can prove that the common path works while missing the minimum. The more useful cases combine minimum values with retries, compound requests, error responses, session slot reuse, and state transitions. Those combinations are where an implementation's assumptions about ordering become visible.
The fix also points to a review pattern for kernel code. When a function changes the size, ownership, or lifetime of a buffer, reviewers should trace every caller that can write into it afterward. The question is not only whether the allocation is correct at the moment it is created. It is whether later encoders, caches, retry handlers, and error paths still know the current bound. The nfsd bug crossed those layers inside a mature protocol implementation.
There is a second operational lesson. Security teams often prioritize internet-facing HTTP services because they are easy to enumerate and easy to recognize. NFS can be less visible, especially when it lives on private networks or inside a storage product. Its reachability still matters. A private network is a trust boundary, not an authentication substitute, and a kernel parser exposed to every workload in that network deserves the same patch discipline as a public API.
The practical decision for defenders
On December 1, 2026, the useful decision is narrow and concrete. Find every Linux host that serves NFS. Determine whether NFSv4.1 or NFSv4.2 is active and whether TCP 2049 is reachable from any network that should not be able to act as a storage client. Check the current distribution or appliance advisory for CVE-2026-99362. Patch and reboot. Until that is complete, disable the service or restrict the port to the smallest trusted set that still supports the business function (NFS2ROOT: A local privilege escalation from an NFS client; Red Hat CVE-2026-99362 record).
The evidence supports calling this a critical kernel memory corruption flaw with a documented remote-root demonstration from OpenSec. It does not support claiming universal exploitation, universal appliance exposure, or a confirmed active campaign. That boundary is not a rhetorical detail. It is the difference between a useful remediation plan and a headline that makes incident responders chase claims the sources never made.