NFS2ROOT (CVE-2026-99362): Linux NFS Server Flaw, How to Check and Fix
A heap overflow in the Linux kernel NFS server lets an unauthenticated client on TCP 2049 corrupt kernel memory. Fixed kernels and distro packages, how to check a server, and what to do until you can reboot.
A flaw in the Linux kernel's built-in NFS server, nfsd, lets a remote client write past the end of a kernel memory buffer before any authentication takes place. It is tracked as CVE-2026-99362, and the research company OpenSec, which built a working exploit, named it NFS2ROOT. The kernel project scores it 9.8 out of 10.
A server is exposed only if it runs the kernel NFS server with NFSv4.1 or 4.2 enabled and port 2049 can be reached by someone you do not trust. Most web VPSes do not run an NFS server at all. Those that do need a kernel update and a reboot, and until then a firewall rule.
What is confirmed
| Point | Status on 29 November 2026 |
|---|---|
| Affected code | In-kernel NFS server (nfsd), NFSv4.1 and 4.2 session handling, since Linux 3.16 (2014) |
| Attack | Over the network, TCP port 2049, no account needed |
| Score | CVSS 3.1: 9.8 from the kernel CVE team; Red Hat rates it 9.4, also "Critical" |
| Exploit | OpenSec says it has a private exploit that reaches a root shell; it has not published it |
| Attacks in the wild | None reported in the sources we read. That is not proof that none exist |
| Upstream fix | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 |
The CVE record was published on 19 November 2026 and updated on 23 November, when the fixes for the older long-term branches (5.10 to 6.6) were added. OpenSec's write-up followed on 25 November. The 7.2 branch is not in the list of fixed versions and received its last release on 1 November, so a server on 7.2 has to move to 7.3.
What goes wrong
In NFSv4.1 and later, each session keeps a small cache of the last reply so that a repeated request gets the same answer. The client proposes the size of that cache. According to the kernel's description, a client can negotiate it down to the minimum, which leaves a buffer of zero bytes, and then send a request built so that the server wrongly believes the reply was encoded successfully. The server copies the whole reply into the zero-length buffer. The bytes land in neighbouring kernel memory, and the client chooses most of them.
All of this happens in the session set-up steps, which the server accepts before it checks who the client is or which export it may use. That is why export restrictions in /etc/exports are not a reliable defence: the CVE record notes that these operations are processed without an export access check.
The record credits the fix to Jérémy Jean of ANSSI, the French cybersecurity agency. OpenSec states that it found the bug separately and reported it on 22 September 2026 together with its exploit. Its exploit chain, as it describes it, uses the overflow to leak kernel memory, then to free and replace a kernel object, and ends with a command run as root. Red Hat's own assessment is more cautious in wording: a crash of the system, "or potentially" code execution.
Are you affected?
Run these on the server. They only read information:
uname -r
systemctl is-active nfs-server
lsmod | grep -w nfsd
sudo cat /proc/fs/nfsd/versions
sudo ss -ltn 'sport = :2049'
- If
nfs-serveris inactive,lsmodprints nothing and nothing listens on 2049, the machine is not an NFS server and is not exposed. An NFS client that only mounts shares from elsewhere is not the subject of this CVE. - If
/proc/fs/nfsd/versionsshows+4.1or+4.2and port 2049 listens on a public or shared address, treat the server as exposed until the kernel is updated. - A server that offers only NFSv3 or NFSv4.0 does not run the affected session code.
The record concerns the kernel's NFS server. NAS appliances and storage products built on Linux use the same code, and their fixes come from the vendor. These commands were taken from standard tools and the OpenSec advisory and were not run on a test server for this article.
Which distributions have a fix
Several distributions have already shipped packages. Status read from each vendor's tracker on 29 November 2026; it changes daily, so check the linked page:
| Distribution | Status |
|---|---|
| Debian 13 (trixie) | Fixed in linux 6.12.117-1 |
| Debian 12 (bookworm) | Fixed in 6.1.192-3 through the security archive (DLA-4942-1); the 6.12 backport kernel is fixed in 6.12.117-1~deb12u1 |
| RHEL 8 | Fixed on 26 November: kernel-4.18.0-553.190.1.el8_10 (RHSA-2026:103817) |
| RHEL 10 | Fixes released on 27 November for 10.0 and 10.2 Extended Update Support |
| RHEL 9, RHEL 7 | Listed as affected, no fixed package yet |
| Ubuntu 26.10, 26.04 | Vulnerable, fix in progress |
| Ubuntu 24.04, 22.04, 20.04 | Vulnerable, no fixed package listed |
| SUSE Linux Enterprise | Fixed kernel versions listed for some products, others still in progress |
Trackers: Debian, Red Hat, Ubuntu, SUSE. We did not check AlmaLinux or Rocky Linux errata; they normally follow the RHEL release, so look for a kernel update that names this CVE.
Fix: update the kernel and reboot
A new kernel package does nothing until the server boots into it.
# Debian, Ubuntu
sudo apt update
sudo apt full-upgrade
sudo reboot
# AlmaLinux, Rocky Linux, RHEL
sudo dnf upgrade
sudo reboot
After the reboot, confirm the running kernel:
uname -r
# Debian: package version of the running kernel, compare with the tracker
uname -v
# RHEL family: does the newest installed kernel mention the CVE?
rpm -q --changelog kernel-core | grep -m1 CVE-2026-99362
# Ubuntu with the pro client: status of this CVE on the machine
pro fix CVE-2026-99362 --dry-run
NFS clients with hard mounts wait while the server restarts and continue afterwards; applications with short timeouts may report errors, so pick a quiet moment. If the server installs updates automatically, check whether it also reboots; see automatic security updates on Linux. Whether live-patching services cover this CVE is something we did not check.
If you cannot update yet
Three measures, from Red Hat's mitigation notes and the OpenSec advisory. Each of them closes the route to the vulnerable code.
Turn the NFS server off if nothing uses it. Active clients lose their mounts.
sudo systemctl disable --now nfs-server
Allow port 2049 only from the clients that need it. Replace the example network with your own. With firewalld, as Red Hat describes it:
sudo firewall-cmd --permanent --remove-service=nfs
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="10.20.0.0/16" service name="nfs" accept'
sudo firewall-cmd --reload
With ufw, where the first matching rule wins, add the allow rule before the deny rule:
sudo ufw allow from 10.20.0.0/16 to any port 2049 proto tcp
sudo ufw deny 2049/tcp
sudo ufw status numbered
If your provider has a cloud firewall or security group, close 2049 there as well. A filter by source address helps only when the allowed clients are themselves trusted; any machine that may connect can send the malicious request. More on rule order in our VPS firewall setup guide.
Disable NFSv4.1 and 4.2 if the server must stay reachable. In /etc/nfs.conf:
[nfsd]
vers4.1=n
vers4.2=n
sudo systemctl restart nfs-server
sudo cat /proc/fs/nfsd/versions
The output should show -4.1 -4.2. Clients mounted with those versions must be remounted with NFSv4.0 or NFSv3, and features that exist only in 4.1 and 4.2, such as pNFS, stop working. This is OpenSec's suggestion; test it with one client first.
Signs of an attempt
The malicious traffic is valid NFS, so there is no network signature to block. OpenSec lists what to look for on the server: kernel warnings that mention nfsd4_check_resp_size, kernel oopses with nfsd4_ or svc_ in the trace, and many short NFSv4.1 sessions from one address.
sudo journalctl -k --since "2026-11-19" | grep -E "nfsd4_check_resp_size|nfsd4_|BUG:|Oops"
A match is a reason to look closer, not proof of a break-in, and an empty result does not prove the opposite. If an exposed NFS server also shows unexplained processes or logins, follow the steps in what to do when a VPS is hacked.
Sources: the CVE record published by the Linux kernel CVE team, the OpenSec advisory, the oss-security post of 28 November 2026, kernel.org's release list, and the Debian, Red Hat, Ubuntu and SUSE security trackers.