TrueNAS
Products
Support & Resources
Solutions
Company
Sign In

Linux Kernel NFS Server Heap Overflow — NFS2ROOT (CVE-2026-99362)

Status: Advisory Affected products: TrueNAS (Community Edition and Enterprise) 25.10.8 and earlier, and the 26.0 pre-releases (the release since renamed 27.0), on any system where the NFS service is running with NFSv4 enabled. TrueNAS CORE (FreeBSD) uses FreeBSD’s NFS server, not Linux nfsd, and is not affected. Severity (TrueNAS-adjusted): Critical — unauthenticated, remote kernel memory corruption in the NFS server, reachable by anything that can connect to tcp/2049, with a privately demonstrated chain to a root shell. Upstream severity: kernel.org CNA: CVSS 3.1 9.8 (Critical), AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Red Hat: 9.4 (Critical), Integrity rated Low. External references: CVE-2026-99362 (kernel.org CNA record); OpenSec, “NFS2ROOT: a 12-year-old pre-auth remote root in the Linux kernel’s NFS server” (2026-11-25); Ostorlab, “Linux Kernel nfsd Pre-Auth Memory Corruption” (2026-11-24); Red Hat CVE page (Bugzilla 2576719); oss-security post of 2026-11-28.

Summary

CVE-2026-99362 is a heap buffer overflow in the Linux kernel’s NFS server (nfsd), in the code that caches NFSv4.1/4.2 session replies. It has been present since Linux 3.16 (2014) and was published with fixes on 2026-11-20.

An NFSv4.1 client chooses the size of its per-slot reply cache. If it negotiates the minimum, the server allocates each slot with a zero-length cache buffer. A crafted COMPOUND then makes the server believe a SEQUENCE operation succeeded when its reply did not fit, and the server copies the whole reply into that zero-length buffer: 80 bytes written, 61 of them past the end of the kernel heap object, about 40 chosen by the client. A replay request then returns kernel heap contents to the client.

The three operations involved (EXCHANGE_ID, CREATE_SESSION, SEQUENCE) run before any export or filehandle check, and nfsd accepts them with AUTH_NULL or an unverified AUTH_SYS uid. No account, export, or mount is needed — only a TCP connection to port 2049.

OpenSec reports turning this into a full pre-authentication root shell (overflow, heap leak that recovers the KASLR slide, arbitrary free, reclaim with a fake callback, kernel runs a command as root) and has published a video. They state the exploit was sent to the kernel maintainers on 2026-09-22. The exploit is private and no public proof of concept exists as of this writing. Ostorlab and Red Hat describe code execution as possible but not demonstrated in the CVE record. We have not seen the exploit and plan on the assumption that it is real.

Fixed in Linux 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1. NFSv3 and NFSv4.0 are not affected.

Applicability to TrueNAS

TrueNAS is affected wherever the NFS service is running with NFSv4 enabled.

  • The vulnerable code is in every TrueNAS kernel. CONFIG_NFSD=m and CONFIG_NFSD_V4=y in scripts/package/truenas/debian_amd64.config; NFSv4.1/4.2 session support has no separate build option.
  • NFSv4 is on by default once NFS is turned on. The NFS service’s default protocol list is ["NFSV3", "NFSV4"]. Confirmed on a live test system: /proc/fs/nfsd/versions reads +3 +4 +4.1 +4.2, with nfsd listening on 0.0.0.0:2049 and [::]:2049.
  • The NFS service itself is off until an administrator enables it. A system that has never had NFS sharing turned on is not exposed.
  • Bind address defaults to all interfaces (bindip empty).

Shipped kernels:

Train Kernel Fixed at Status
25.10.8 (current release) 6.12.113 6.12.117 Not fixed
25.10.9 (in preparation) 6.12.120 6.12.117 Fixed — kernel being updated to 6.12.120 for this release
26.0 BETA/RC.1 pre-releases (since renamed 27.0) 6.18.52 at RC.1 6.18.61 Not fixed
27.0.0 (unreleased; formerly 26.0) 6.18.65 6.18.61 Fixed — contains the 6.18 backport (37fc2ec21163) of upstream commit 35ff1a7a7e38

Verified at code level, not only by version number: none of the upstream fix commits are present in release/25.10.8 or release/26.0.0-RC.1 of the TrueNAS kernel tree. Earlier 25.10.x and older releases run older kernels and are affected the same way.

Threat model and risk assessment

An attacker needs only a TCP connection to port 2049 on a system serving NFSv4.1 or 4.2. No account, credential, or accessible export is required.

The Authorized Networks and Authorized Hosts and IP addresses settings on an NFS share do not prevent the attack. They are checked when a client uses a filehandle, and the operations involved run before that. Requiring Kerberos for NFSv4 does not prevent it either.

Limiting the NFS bind addresses or filtering port 2049 at a router does not cover traffic that stays on the same host or network segment. Apps and virtual machines running on the TrueNAS system, and other devices on the same VLAN as an NFS interface, can still reach the port. A compromised app or virtual machine could use this vulnerability to take over the TrueNAS system that hosts it.

nfsd runs in the kernel, so a successful exploit gives full control of the system. A failed or partial attempt can disclose kernel memory or crash the system, which interrupts all storage services on that controller.

As of 2026-11-30 the CVE is not in the CISA KEV catalog, no exploitation has been reported, and no exploit is public.

Available mitigations

Until a fixed kernel is installed, in order of preference:

  1. If NFS is not in use, stop the NFS service and disable its automatic start.
  2. If every client can use NFSv3, turn NFSv4 off: System > Services > NFS, remove NFSv4 from Enabled Protocols, then confirm from a shell that /proc/fs/nfsd/versions no longer shows +4.1 or +4.2. Upstream guidance suggests disabling only 4.1 and 4.2 in /etc/nfs.conf; TrueNAS generates that file and does not offer that setting, so do not edit it by hand — removing NFSv4 in the service settings is the supported equivalent. Clients mounted with NFSv4 must be remounted with NFSv3, and NFSv4 ACL and Kerberos-over-NFSv4 use is lost while this is in place.
  3. Restrict network access to tcp/2049 to known NFS clients only (dedicated storage network or VLAN, switch/router ACLs), and set Bind IP Addresses in the NFS service to the storage interface. This reduces exposure but does not cover apps, VMs, or same-VLAN devices as described above. On a system that runs apps or virtual machines, only stopping NFS or turning off NFSv4 (items 1 and 2) closes that path.

Per-share Authorized Networks/Hosts settings are not a mitigation for this issue.

Detection (from the public write-ups, not validated against TrueNAS logs): kernel warnings from nfsd4_check_resp_size or the message sessions DRC could not cache compound; kernel oopses with nfsd4_*, svc_*, or call_usermodehelper* frames; unexpected reboots or panics while NFS is serving; shells or other processes started by kernel worker threads; bursts of short NFSv4.1 sessions from a single source, or NFSv4.1 sessions from addresses that are not known clients. A clean log does not show that no attempt occurred.

Resolution

The upstream fix is commit 35ff1a7a7e38, backported to the stable kernels as 6.12.117 and 6.18.61.

  • TrueNAS 25.10.9 will ship kernel 6.12.120, which includes the fix. Until 25.10.9 is released, no released TrueNAS version contains it; apply the mitigations above.
  • TrueNAS 27.0.0 (the release previously numbered 26.0) is already on kernel 6.18.65, which includes the fix. Systems running a 26.0 BETA or RC build do not have it and should apply the mitigations until they move to a 27.0 build.

Installing the update requires a reboot. This statement will be updated when 25.10.9 is available.