On November 19, 2026, CVE-2026-99362 (CVSS 9.8 from the kernel CNA, 9.4 from Red Hat) was published against the Linux kernel’s in-kernel NFS server, nfsd. OpenSec named it NFS2ROOT: a heap out-of-bounds write in the NFSv4.1 and 4.2 session reply cache that a client can reach before any authentication, on any host where TCP 2049 is reachable. The bug dates back to Linux 3.16 in 2014, so every long-lived file server is in scope.
This guide gives you a 60-second exposure check, a dated fix table per distribution, a real Debian kernel patch with uname before and after the reboot, and the three stopgaps that hold where no kernel fix exists yet. The exposure check, the Debian patches and the three stopgaps were run in November 2026 on Debian 13 and 12, Ubuntu 26.04 and 24.04, and Rocky Linux 10.2 with SELinux enforcing, with a second machine proving each block from the outside.
What NFS2ROOT hits and what it leaves alone
NFS2ROOT is a flaw in the kernel module nfsd, not in nfs-utils, rpc.mountd or any userspace package. A client that negotiates the smallest possible session reply cache can make the server copy a whole reply into a slot buffer of zero length. The CVE record titles the fix “nfsd: preflight SEQUENCE replies before accepting a slot”, and OpenSec says its working exploit, which reaches a root shell, stays private.
Four conditions have to hold together before a host is exposed. If any one of them is false, the bug cannot be reached over the network:
- The nfs-server unit runs and the kernel has started nfsd threads.
/proc/fs/nfsd/versionsshows+4.1or+4.2, which is the default on every distro tested here.- TCP 2049 accepts connections from a machine that is not one of your NFS clients.
- The running kernel is older than the fixed build your distribution ships, which on several of them means every build available today.
Machines that only mount shares are clients and are not affected by this bug. As of 2026-11-26, watchTowr’s FAQ reports no exploitation in the wild, and BleepingComputer reported none a day later. Do not read that as time to spare: the upstream diff is public, and a pre-auth write in kernel memory is exactly what attackers diff patches for.
The 60-second exposure check
Run these on any box you suspect is serving NFS. Reading the versions file needs root, because the kernel creates it readable by root only. On the Rocky host a plain cat returned Permission denied, so use sudo from the start. The last command gives you the build to compare against the fix table further down.
systemctl is-active nfs-server
sudo cat /proc/fs/nfsd/versions
sudo ss -ltnp 'sport = :2049'
uname -v
Our Debian 13 server, freshly built with one export, answered the first three like this. The service is active, both vulnerable minor versions are on, and 2049 listens on every IPv4 and IPv6 address:

A listening socket only tells you the server side. The question that decides your exposure is who can connect, so test from a host that is not in /etc/exports. If this succeeds from a workstation subnet, a jump host or the internet, that host can talk to nfsd before any export rule is checked:
nc -zv -w3 10.0.1.50 2049
From the lab client the port was wide open, which is what every untouched install looks like:
Connection to 10.0.1.50 2049 port [tcp/nfs] succeeded!
Export restrictions don’t help here. Our export allowed only 10.0.1.60, yet the TCP handshake and the NFSv4 session setup happen before nfsd consults the export table.
NFS2ROOT fix status by distribution
Upstream fixed the bug with commit 35ff1a7a7e38 (in 7.4-rc1), and the CVE record lists stable releases 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2 as fixed. Distribution kernels carry their own version strings, so check the vendor column, not the upstream number. Every row below was read on the vendor’s page on 2026-11-27:
| Distribution | Status (checked 2026-11-27) | Fixed package or advisory |
|---|---|---|
| Debian 13 (trixie) | Fixed | linux 6.12.117-1 in trixie, 6.12.118-1 in trixie-security |
| Debian 12 (bookworm) | Fixed | linux 6.1.192-3 in bookworm-security (DLA-4942-1); linux-6.12 6.12.117-1~deb12u1 (DLA-4927-1) |
| RHEL 8.10 | Fixed | RHSA-2026:103817, kernel-4.18.0-553.190.1.el8_10 (2026-11-26); kernel-rt in RHSA-2026:103838 |
| RHEL 8.6 AUS / EUS Long-Life | Fixed | RHSA-2026:104030, kernel-4.18.0-372.230.1.el8_6 (2026-11-27) |
| RHEL 9 and RHEL 10 | Affected, no erratum | None yet; Red Hat lists the mitigation only |
| Rocky Linux 8 | Fixed | RLSA-2026:103817, kernel-4.18.0-553.190.1.el8_10 (2026-11-27) |
| Rocky Linux 9 and 10 | No advisory | None on errata.rockylinux.org; dnf updateinfo on 10.2 returns nothing |
| AlmaLinux 8 | Fixed | ALSA-2026:103817 (2026-11-26) |
| AlmaLinux 9 and 10 | No advisory | None on errata.almalinux.org |
| Ubuntu 26.04 LTS | Vulnerable, work in progress | Ubuntu lists 7.0.0-45.45 as in progress; pro fix reports no fix |
| Ubuntu 24.04 LTS | Vulnerable | None yet |
Sources for the table are the Debian security tracker, the Red Hat CVE page and its JSON feed, errata.rockylinux.org, errata.almalinux.org and the Ubuntu CVE page. AlmaLinux status is read from AlmaLinux’s own errata index, not inferred from Rocky. If you are reading this after November, re-check the RHEL 9, RHEL 10 and Ubuntu rows before you plan around them, because those are the ones that will move.
Debian 13 and 12 patched in one reboot
Debian is the one family here where the fix is already in the archive for both supported releases. We started from a Debian 13 image dated before the fix so the before state is real. First confirm which kernel metapackage you actually have, because cloud images use linux-image-cloud-amd64 and standard installs use linux-image-amd64:
dpkg -l 'linux-image-*' | grep ^ii
The unpatched host was on 6.12.116-1, and apt already saw the trixie-security build waiting:

Upgrade the metapackage you found above. Replace linux-image-cloud-amd64 with linux-image-amd64 on a non-cloud install; the security repository is what matters, and both pull from it:
sudo apt-get update
sudo apt-get install -y linux-image-cloud-amd64
The install unpacks the new image, builds its initramfs and regenerates GRUB. The lines worth checking are the ones naming the new kernel:
Get:2 https://deb.debian.org/debian-security trixie-security/main amd64 linux-image-6.12.118+deb13-cloud-amd64 amd64 6.12.118-1 [34.7 MB]
Get:3 https://deb.debian.org/debian-security trixie-security/main amd64 linux-image-cloud-amd64 amd64 6.12.118-1 [1496 B]
Unpacking linux-image-6.12.118+deb13-cloud-amd64 (6.12.118-1) ...
Unpacking linux-image-cloud-amd64 (6.12.118-1) over (6.12.116-1) ...
Setting up linux-image-6.12.118+deb13-cloud-amd64 (6.12.118-1) ...
Setting up linux-image-cloud-amd64 (6.12.118-1) ...
Installing a kernel package fixes nothing until the host boots it. nfsd is in-kernel, so restarting nfs-server on the old kernel leaves the vulnerable code running. Reboot, then check again:
sudo systemctl reboot
After the reboot, uname shows the trixie-security build dated 2026-11-20:

Our exports came back on their own: nfs-server was active and /proc/fs/nfsd/versions again read +3 +4 +4.1 +4.2. That is correct, since the kernel now carries the fix and the minor versions don’t need to be off. Do not wait on the package changelog as proof either: apt changelog returned 404 for this build in our run, so it could not be read at all. The Debian tracker and uname -v are the evidence.
Debian 12 needs one extra look. The bookworm fix bumps the kernel ABI, so the image name changes from 6.1.0-56 to 6.1.0-57. A monitoring check that greps for the old name will keep saying “current” on an unpatched box. Run the same install and reboot, then read both fields:
uname -r
uname -v
The bookworm host came up on the new ABI with the build dated 2026-11-26:
6.1.0-57-cloud-amd64
#1 SMP PREEMPT_DYNAMIC Debian 6.1.192-3 (2026-11-26)
Before the upgrade that host ran 6.1.192-2 from 2026-11-16, which looked recent and was still vulnerable. Date alone is not a test. If you build your own kernels on Debian instead, the Debian kernel install guide covers moving to a newer upstream series. The fix is per branch, so a bigger number is not enough: you need 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 or 7.3.2 and later within that same branch, or 7.4-rc1 onward. A 6.18.40 or 7.1 build is newer than 6.12.117 and still vulnerable.
RHEL, Rocky Linux and AlmaLinux kernels
The EL8 line is fixed: RHEL 8.10, Rocky 8 and AlmaLinux 8 all ship kernel-4.18.0-553.190.1.el8_10, so sudo dnf update kernel and a reboot close it there. EL9 and EL10 are the problem. On Rocky Linux 10.2, dnf offers a newer kernel, which looks like the answer until you ask whether any advisory covers this CVE:
sudo dnf -q check-update kernel
sudo dnf updateinfo list --cve CVE-2026-99362
The kernel update is real, but the advisory query comes back empty:

We downloaded that kernel-core-6.12.0-264.21.1.el10_3 RPM without installing it and searched its changelog: zero matches for 99362. The running kernel’s changelog lists other nfsd CVEs fixed this autumn, which is exactly the trap. A recent nfsd fix in the changelog is not this fix. Installing 264.21.1 is still worth doing for those other bugs, but it does not close NFS2ROOT, so apply one of the stopgaps below and keep it in place.
Red Hat’s statement notes that default RHEL configurations neither run nor enable nfsd. That is true only until someone follows a Rocky and AlmaLinux NFS server setup and enables the service, which describes most hosts you care about. When an EL9 or EL10 erratum appears, dnf updateinfo list --cve CVE-2026-99362 will show it, and that is the check to script.
Ubuntu 26.04 and 24.04 still waiting
Ubuntu marks every supported release vulnerable, with 26.04 showing a work-in-progress build. Your host may run a flavour kernel such as linux-gcp or the HWE stack. The quickest way to see its own answer is the Pro client, which ships by default on Ubuntu server and cloud images and answered this query on both of our Ubuntu lab hosts:
sudo pro fix CVE-2026-99362
On 26.04 it prints the CVE description, then names both source packages and exits 1:

Ubuntu 24.04 returned the same verdict against linux and linux-gcp-7.0. Rerun the command daily: once it prints that the CVE is resolved, install the kernel it pulls and reboot. Until then, if you followed the Ubuntu 26.04 NFS server guide, your server is exposed in its default shape, and the ufw rule in the next section is the fastest fix.
Port 2049 restricted to known clients
OpenSec’s advice for anyone who cannot patch today is “Close 2049”, Red Hat lists it next to disabling the service, and it keeps every NFS feature working for the clients you trust. It only helps if the attacker isn’t already on an allowed address, so allow single hosts or the storage subnet, never a whole office range. Each tool below was tested from an allowed client and from a second machine that must be refused.
firewalld on RHEL, Rocky and AlmaLinux
Create a dedicated zone holding only the client addresses, give it the nfs service, and make sure the zone your interface sits in does not also offer nfs:
sudo firewall-cmd --permanent --new-zone=nfsclients
sudo firewall-cmd --permanent --zone=nfsclients --add-source=10.0.1.60/32
sudo firewall-cmd --permanent --zone=nfsclients --add-service=nfs
sudo firewall-cmd --permanent --zone=public --remove-service=nfs
sudo firewall-cmd --reload
Our first pass failed this test. After the reload, the host that should have been refused still connected. The Rocky cloud image had put eth0 into the trusted zone, which accepts everything, so the new zone changed nothing. Check the default zone before you trust any firewalld rule, because a trusted zone accepts what every source restriction was meant to refuse.
sudo firewall-cmd --get-active-zones
If your client-facing interface shows up under trusted, switch the default zone to public. Confirm first that sudo firewall-cmd --zone=public --list-services includes ssh, or this command locks you out of a remote host. Where the interface is bound to trusted explicitly instead of by default, run --zone=public --change-interface=eth0 in its place, once with --permanent and once without, so the binding survives a reload:
sudo firewall-cmd --set-default-zone=public
Our host before and after the switch, with the nfsclients zone holding the one allowed source:

With public as the default, which here offers only cockpit, dhcpv6-client and ssh, the rule held. The allowed client still connected, and the second host got an ICMP reject:
nc: connect to 10.0.1.51 port 2049 (tcp) failed: No route to host
“No route to host” is firewalld’s default reject, not a network fault. A timeout would mean a drop rule somewhere upstream. Either way, port 2049 is closed to that source.
ufw on Ubuntu
ufw denies inbound by default once enabled, so the rule is a single allow. Add OpenSSH first if ufw is not active yet, otherwise enabling it cuts your session:
sudo ufw allow OpenSSH
sudo ufw allow from 10.0.1.60 to any port 2049 proto tcp
sudo ufw --force enable
sudo ufw status numbered
The status shows 2049 open to one address and SSH open to all.
Status: active
To Action From
-- ------ ----
[ 1] OpenSSH ALLOW IN Anywhere
[ 2] 2049/tcp ALLOW IN 10.0.1.60
[ 3] OpenSSH (v6) ALLOW IN Anywhere (v6)
From the allowed client the connection succeeded; from another host it hung until the three-second timeout, because ufw drops silently:
nc: connect to 10.0.1.52 port 2049 (tcp) timed out: Operation now in progress
There is no IPv6 rule for 2049 in that list, so IPv6 clients are denied too. If your clients use IPv6, add their addresses with the same allow from syntax.
nftables on Debian or anything else
On a Debian server without a firewall manager, a small nft table does the job. Using a separate table keeps it independent of any existing ruleset, and the accept rule must come before the drop:
sudo nft add table inet nfsguard
sudo nft add chain inet nfsguard input '{ type filter hook input priority 0; policy accept; }'
sudo nft add rule inet nfsguard input tcp dport 2049 ip saddr 10.0.1.60 accept
sudo nft add rule inet nfsguard input tcp dport 2049 drop
sudo nft list table inet nfsguard
The listing confirms the accept rule sits above the drop, which is the order nft evaluates them in.
table inet nfsguard {
chain input {
type filter hook input priority filter; policy accept;
tcp dport 2049 ip saddr 10.0.1.60 accept
tcp dport 2049 drop
}
}
The allowed client connected, and the other host timed out with the same Operation now in progress message as ufw. Because the table is inet, the drop also covers IPv6 traffic to 2049. These rules live in memory only; add the table to /etc/nftables.conf and enable nftables.service if it has to survive the reboot you will eventually do for the kernel fix.
NFSv4.1 and 4.2 turned off in nfs.conf
Where clients sit on networks you can’t narrow, the next control is to turn off the minor versions that contain the bug. Both watchTowr and OpenSec list this. The price, as OpenSec puts it, is that this “turns off pNFS and some 4.2 features”. In practice that means 4.2 operations like server-side copy and sparse file handling stop working until you turn it back on. nfsconf edits /etc/nfs.conf safely, so there’s no hand-editing:
sudo nfsconf --set nfsd vers4.1 n
sudo nfsconf --set nfsd vers4.2 n
sudo systemctl restart nfs-server
sudo cat /proc/fs/nfsd/versions
The versions file is the proof on the server side, and both minor versions now carry a minus sign.
+3 +4 -4.1 -4.2
A server-side flag is only half the proof, so we mounted from the client with each version forced. 4.2 and 4.1 are refused with exit code 32, and 4.0 still mounts:

A plain mount with no vers= option negotiated vers=4.0 on its own, so most clients keep working without a change. The ones that break are those whose fstab pins vers=4.2 or vers=4.1; they fail with Protocol not supported at the next mount, so grep your clients’ fstab before the change, not after.
Once the patched kernel is running, undo it and restart nfs-server so the versions file reads +4.1 +4.2 again:
sudo nfsconf --unset nfsd vers4.1
sudo nfsconf --unset nfsd vers4.2
sudo systemctl restart nfs-server
Our revert brought the server straight back to +3 +4 +4.1 +4.2. Set a reminder for that step; leaving 4.1 off forever costs you sessions and pNFS for no reason once the kernel is fixed.
nfs-server stopped where nothing mounts
Many hosts run nfs-server because a template or an old project left it enabled. If no client mounts from the box, stop and disable it; this is Red Hat’s first listed mitigation and the only one with no trade-off:
sudo systemctl disable --now nfs-server
Check the result, not the unit state alone. Nothing listens on 2049 and the kernel reports zero nfsd threads:

The nfsd module stays loaded in lsmod after this, which looks alarming but isn’t exposure: with zero threads and no socket, nothing accepts the SEQUENCE request the bug needs. Count threads, not modules.
Controls that do not stop NFS2ROOT
Two settings come up in every NFS hardening thread, and neither belongs in your mitigation plan for this CVE:
root_squashmaps a client’s UID 0 for file access after a mount. Our export had it on (exportfs -vshowedroot_squash), and that does nothing against a pre-auth kernel overflow that fires before any file operation.sec=krb5on the export is unverified as a mitigation. None of the advisories or the OpenSec write-up claims Kerberos blocks it, and the session setup the bug abuses is not where export security flavours are enforced. Treat a Kerberos-secured NFS setup as still exposed.
Export host lists fall in the same bucket, as shown in the exposure check. The working controls are the ones that stop the packet or the thread: a patched kernel, a firewall rule, the minor versions off, or the service off. This season’s other kernel flaws followed the same pattern; the NoisyTCP kernel bug and CVE-2026-98432 both had mitigations that blocked the path in, and both still ended with a patched kernel and a reboot.
Patching and blocking are the fix, but you still want to know whether anyone tried before you got there. OpenSec lists the traces an attempt leaves, and says the nfsd4_check_resp_size warning fires on every attempt, successful or not. A daily look at journalctl -k and your flow logs on each server is cheap insurance:
- The kernel log on each NFS server holds no warnings from
nfsd4_check_resp_size. - No oops or call trace in that log names
nfsd4_*,svc_*orcall_usermodehelper*frames. - No shell process has a kernel worker thread as its parent.
- No single source opens bursts of short NFSv4.1 sessions against port 2049.
Because the warning fires either way, a log with no nfsd4_check_resp_size line is a meaningful signal, as long as nobody with root has had the chance to edit it. A hit means a host outside your client list reached nfsd, so treat that server as compromised and rebuild it rather than just patching it.
Post-patch audit checklist
Run this on every NFS server once you’ve applied a fix or a stopgap. Each line is a condition that must hold, and the order matches the time it takes:
uname -vnames the fixed vendor build from the table, not just a recent date.- On Debian 12,
uname -rshows the new ABI (6.1.0-57or later), not the one your monitoring was pinned to. - On EL9, EL10 and Ubuntu, a stopgap stays in place until
dnf updateinfo list --cveorpro fixreports a fix. nc -zvto port 2049 fails from a host outside the export list.- No interface that carries client traffic sits in the firewalld
trustedzone. - Any nft rule for 2049 is saved in
/etc/nftables.confand survives a reboot. /proc/fs/nfsd/versionsshows-4.1 -4.2on unpatched servers that rely on the version toggle.- The toggle is reverted to
+4.1 +4.2after the patched kernel boots. - Hosts that share nothing print
0forsudo cat /proc/fs/nfsd/threads, or have no such file because nfsd never loaded.
Fleet builds from older guides, such as an NFS server on Debian or NFS on Fedora, ship with the same defaults we tested, so sweep those first.