TrueNAS are being a bit slow in getting any information out about CVE-2026-99362 (NVD-CVE-2026-99362) that has a published exploit available. This vulnerability is old and it's entirely possible there are people running TrueNAS with NFS that will not get an official patch from iXsystems.
With some help from AI, I've come up with the following procedure to patch a running system:
On a system that you can compile a new Linux kernel:
git clone https://github.com/truenas/linux/ truenas-linux
git checkout TS-25.04.2.4
git fetch origin 37fc2ec211630360e9aefcaaec8730db964645f2
git cherry-pick 37fc2ec211630360e9aefcaaec8730db964645f2
NOTE: if there are any problems at this point, don't go further because it may result in a damaged NFS kernel module.
# Login to TrueNAS
scp /boot/config-$(uname -r) user@compilehost:truenas-linux/truenas.config
scp /lib/modules/$(uname -r)/build/Module.symvers user@compilehost:truenas-linux/
# Back on your system to compile Linux, you'll need a not too old version of make:
cp truenas.config .config
scripts/config --disable SYSTEM_TRUSTED_KEYS
scripts/config --disable SYSTEM_REVOCATION_KEYS
make olddefconfig
# Prepare module build environment (ensure LOCALVERSION matches uname -r suffix, e.g., -production+truenas)
make -j$(nproc) LOCALVERSION=-production+truenas modules_prepare
# Build ONLY the nfsd module directory
make -j$(nproc) LOCALVERSION=-production+truenas M=fs/nfsd modules
# Check that output matches "uname -r" of your TrueNAS system
modinfo fs/nfsd/nfsd.ko | grep vermagic
# Copy fixed nfsd.ko to TrueNAS
scp ./fs/nfsd/nfsd.ko root@truenas:nfsd.ko_CVS-2026-99362
# Login to TrueNAS
nfsdir="/usr/lib/modules/$(uname -r)/kernel/fs/nfsd"
mv $nfsdir/nfsd.ko $nfsdir/nfsd.ko.dist
cp -p $nfsdir/nfsd.ko.dist $nfsdir/nfsd.ko
cp ~root/nfsd.ko_CVS-2026-99362 $nfsdir/nfsd.ko
# Now if everything goes well, this should reboot into a patched TrueNAS
shutdown -r now
# The above process should work for any version of TrueNAS in their repo on github.