Sysadmin terminal next to storage servers with a shield over a network port

CVE-2026-99362, known as NFS2ROOT, is a memory overflow in nfsd, the Linux kernel’s NFS server, that an unauthenticated client can trigger just by reaching TCP port 2049 on a server with NFSv4.1 or NFSv4.2 enabled. Published on November 19, 2026 with a CVSS score of 9.8, it is fixed in several stable kernel branches, but not every distribution has shipped the patch yet. This guide covers how to tell whether a server is exposed and what to do in each case.

Key points on NFS2ROOT for sysadmins in 30 seconds

  • It only affects machines serving NFS with the in-kernel server and NFSv4.1 or 4.2 enabled, which is the usual default.
  • Fixed in Linux 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2.
  • You must reboot after updating the kernel.
  • Restricting /etc/exports does not protect you; filtering port 2049 does.

The bug sits in the code that handles NFSv4.1 sessions, introduced in Linux 3.16 back in 2014. According to Red Hat, a remote client can negotiate a minimal cached reply size and send crafted requests with SEQUENCE operations, so the server writes the reply past the end of the allocated buffer. Those operations need no mounted export and never check export permissions. OpenSec, the firm that named the flaw, says it chained it into a root shell but has not released its exploit. Since November 27, GitHub repositories claiming to contain exploits for the flaw have appeared; they have not been verified and should not be run outside an isolated environment, since repositories like these are sometimes used to spread malware. No confirmed attacks have been reported.

How to tell whether a server is exposed

The NFS client is not affected, and neither are nfs-utils or user-space NFS servers. What you are looking for is machines running the in-kernel NFS server with versions 4.1 or 4.2 enabled. These checks answer that in seconds:

# Is the in-kernel NFS server running?
systemctl is-active nfs-server

# NFS versions being served: look for +4.1 or +4.2
cat /proc/fs/nfsd/versions

# Running kernel (not the installed one)
uname -r

# Is it listening on port 2049, over IPv4 and IPv6?
ss -ltn 'sport = :2049'Code language: PHP (php)

If /proc/fs/nfsd/versions shows +4.1 or +4.2 and the running kernel is older than the fixed release for its branch, the server is vulnerable. The inventory should include hypervisors, Linux-based NAS boxes and storage nodes, which often fall outside the normal patch cycle. Cloud Privado, which analysed the flaw in its lab on Debian 13, notes that NFSv4.1 and 4.2 are enabled by default on that distribution.

Patch and, above all, reboot

The fix is in Linux 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Distribution status varies. According to Debian’s security tracker, Debian 12 is fixed in kernel 6.1.192-3 (DLA-4942-1) and in the linux-6.12 package, and Debian 13 from version 6.12.117-1. Red Hat has shipped fixes for RHEL 8.10 (RHSA-2026:103817), RHEL 8.6 extended support (RHSA-2026:104030) and RHEL 10 (RHSA-2026:104032), but RHEL 9 was still unpatched as of November 29. Ubuntu had not released fixed kernels for its supported releases either, including 22.04 and 24.04, so on those systems mitigation is the only option for now. Because this changes daily, each distribution’s security tracker should be the reference.

Installing the kernel package does not close the hole on its own, because the old kernel stays loaded until reboot. After updating, uname -r should show the new version. On Debian and Ubuntu, the presence of /var/run/reboot-required means a reboot is pending; on RHEL and derivatives, needs-restarting -r does the same job.

Mitigating until a patch is available

Restricting exports to specific IPs in /etc/exports does not work as a mitigation, because the vulnerable code runs before access is checked. What works is ensuring only legitimate clients can reach port 2049. With nftables, for example, you can limit it to a trusted subnet; adapt the rule to the table and chain each server uses, and do not forget IPv6:

# Example: accept NFS only from 10.0.10.0/24 and drop the rest
nft add rule inet filter input ip saddr 10.0.10.0/24 tcp dport 2049 accept
nft add rule inet filter input tcp dport 2049 dropCode language: PHP (php)

As an emergency measure, you can also disable NFSv4.1 and 4.2 in /etc/nfs.conf and restart the service:

# /etc/nfs.conf
[nfsd]
vers4.1=n
vers4.2=n

# Apply and verify
sudo systemctl restart nfs-server
cat /proc/fs/nfsd/versionsCode language: PHP (php)

The cost is that clients fall back to NFSv4.0 or NFSv3 and lose sessions, pNFS and server-side copy, so revert it as soon as the kernel is fixed. Before applying it in production, check that clients mount with a version that will still be available. Patched or not, no NFS server should be reachable from the Internet or share a network with user devices.

Frequently asked questions

How do I know whether my NFS server is vulnerable to NFS2ROOT?

If /proc/fs/nfsd/versions shows +4.1 or +4.2 and the running kernel is older than the fixed release for its branch, it is exposed.

Is installing the updated kernel enough?

No. You must reboot, because the vulnerable kernel stays in memory until then.

Does it affect NFSv3?

The bug is in session handling, which only exists in NFSv4.1 and 4.2. That is why disabling those versions works as a temporary mitigation.

Does restricting exports by IP help?

No. The vulnerable code runs before access is checked; what works is filtering port 2049 at the firewall.

Sources:

Scroll to Top