nfs2root (CVE-2026-99362): which Linux servers need a patch?
A critical pre-login flaw in the kernel NFS server has fixes, and researchers say they turned it into a root shell.

Patch any Linux host that serves NFSv4.1 or 4.2 and can be reached on TCP port 2049. CVE-2026-99362, which researchers at OpenSec call nfs2root, is rated 9.8 by Red Hat and needs no login. OpenSec lists fixes in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1.
What is the nfs2root flaw in the Linux NFS server?
It is a heap buffer overflow in nfsd, the NFS server built into the Linux kernel. According to OpenSec, a client can set the server's reply cache to zero bytes and then make the server copy a full reply into it. The extra data lands in kernel memory, and the client controls much of it. Red Hat says the server fails to check that a response fits the negotiated buffer before caching it. The result can be a crash and denial of service, or possibly code execution. OpenSec traces the bug to a 2014 change that shipped in Linux 3.16.
Which Linux systems are exposed to CVE-2026-99362?
A host is exposed when it runs an unfixed kernel, has the in-kernel NFS server loaded, offers NFSv4.1 or 4.2, and listens on port 2049 beyond the local machine. OpenSec points to file servers, storage appliances, build farms and Kubernetes storage nodes. Red Hat lists the kernel in several Red Hat Enterprise Linux releases, including 7 through 10, and some OpenShift components as affected, and says default RHEL setups do not run the NFS server. Systems that only mount NFS shares from elsewhere are outside the conditions both describe.
Can attackers really get root through nfs2root?
OpenSec says yes and has recorded a run in which its test client gets a root shell using only port 2049. It says its automated system, Antara, built the full chain, and that the exploit stays private. Red Hat's wording is more cautious: it says an attacker could potentially execute code. OpenSec reported the bug to kernel maintainers on September 22. It also credits Jérémy Jean, who works at French cybersecurity agency ANSSI, with finding the bug separately and writing the upstream fix. The CVE was published in November with fixes.
How can you check whether a server is vulnerable?
Run a few commands on each candidate host. OpenSec suggests uname -r for the kernel version, lsmod to see whether nfsd is loaded, cat /proc/fs/nfsd/versions to see which NFS versions are on, and ss to see what listens on port 2049. The CVE record also lists fixes in 5.10.275, 5.15.226, 6.1.193 and 6.6.163 for older long-term branches. Distribution kernels often carry backported fixes under older version numbers, so confirm that your vendor's update lists CVE-2026-99362. Red Hat warns that scanners which read only version numbers can flag fixed packages.
What should Linux admins do about nfs2root today?
Patch first, and cut network access while you wait.
- Install your distribution's kernel update that names CVE-2026-99362, then reboot.
- Allow port 2049 only from trusted storage clients and networks.
- Stop and disable nfs-server on machines that do not need to share files.
- If you must delay, OpenSec says turning off NFSv4.1 and 4.2 is an option, at the cost of some features.
- Check kernel logs for warnings from nfsd4_check_resp_size and crashes involving nfsd.
- Look for shells started by kernel workers on file servers.
Related: Linux TCP flaw check, Linux root exploits to patch.