r/truenas • u/nashekwalibream • 13h ago
Community Edition NFS2ROOT (CVE-2026-99362): TrueNAS 25.10.8's kernel predates the fix. Not an emergency if NFS is LAN-only, but apps and VMs on the NAS can reach it
I didn't see this posted here, so here's a summary for anyone running NFS shares on TrueNAS Community Edition (SCALE).
TL;DR: If your NFS port is only reachable from your LAN, this isn't an emergency. There's no public exploit, and NFS shouldn't be exposed to the internet anyway. It's still worth a look on TrueNAS for two reasons. First, the usual advice ("it's patched upstream, just update") doesn't work here yet, because no TrueNAS release ships the fix. Second, apps, containers and VMs running on the NAS can reach its NFS port without going through your router or switch ACLs.
What it is
- CVE-2026-99362, CVSS 9.8. It's a heap overflow in the kernel's NFS server (nfsd), in how it caches NFSv4.1/4.2 session replies. OpenSec, one of two teams that found it independently, says one unauthenticated TCP connection to port 2049 is enough to corrupt kernel memory, and it chained that into a root shell. That exploit isn't public, and I couldn't find a public proof of concept. OpenSec write-up, OSV record, Red Hat
- The bug has been in the kernel since 3.16 (2014). It's fixed in 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1.
Why TrueNAS users should care
- TrueNAS 25.10.8, the current stable release (Nov 5), runs kernel 6.12.113, per the release announcement. That's older than 6.12.117, and I found no sign that iX backported the fix, so assume it's unfixed.
- I couldn't find a TrueNAS advisory or forum thread about it as of Nov 26. Older releases run older kernels, so assume they're affected too. The 26 and 27 pre-releases (27-RC.1 is from Oct 6) came out before the fix too. iX's 27.x kernel source picked up a fixed 6.18 kernel on Nov 24, but that isn't in any release yet.
- TrueNAS CORE runs FreeBSD's NFS server, not Linux nfsd, so this CVE doesn't apply to CORE.
Check your box (read-only, from the TrueNAS shell; paste one line at a time)
uname -r
sudo cat /proc/fs/nfsd/versions
ss -ltn 'sport = :2049'
sudo midclt call nfs.configWhat to look for:
uname -r: a 6.12.x kernel below 6.12.117 doesn't have the fix./proc/fs/nfsd/versions:+4.1or+4.2means the vulnerable code path is on. It needssudo. If the file is missing, nfsd usually isn't running.ss: a listener on anything other than 127.0.0.1 or [::1] is reachable from the network.midclt call nfs.config:"protocols"shows whether NFSv4 is enabled, and"bindip"shows which addresses NFS listens on (empty means all).
The TrueNAS admin shell is zsh, which may not treat # as a comment when you paste. Don't add inline comments to these lines.
If the first three all show up, you're exposed to anything that can reach port 2049.
What helps until a fixed release ships
- If you don't use NFS, stop the NFS service and turn off its auto-start.
- If all your clients can use NFSv3, uncheck NFSv4 under System > Services > NFS > Enabled Protocols. Then re-check with
sudo cat /proc/fs/nfsd/versions. The write-up also suggests turning off only NFSv4.1 and 4.2. TrueNAS doesn't offer that setting and regenerates/etc/nfs.confitself, so unchecking NFSv4 is the supported way to do it here. - Firewall tcp/2049 so only your actual NFS clients can reach it (separate storage VLAN, router/switch ACL).
- The per-share Authorized Networks/Hosts lists won't help. The attack only needs NFSv4.1 session operations, which run before the server checks any share (Ostorlab write-up).
- Setting Bind IP Addresses narrows which networks can reach 2049. But apps and containers on the same box can usually still reach the host's own IPs. An app compromised from the internet could use this to get root on the host. The same goes for VMs on a bridge and for devices on the same VLAN, which never pass through your router's ACL.
- Update to the first TrueNAS release that ships kernel 6.12.117 or newer, then reboot.
Detection hints (from the write-up): the nfsd4_check_resp_size warning (it fires on every attempt), oopses with nfsd4_*, svc_* or call_usermodehelper* frames, shells spawned by kernel workers, or bursts of short NFSv4.1 sessions from one source.
There's also a Hacker News thread on the write-up.


