The NFS2ROOT (CVE-2026-99362) vulnerability may allow an unauthenticated attacker to gain root privileges on certain Linux servers: all they need is the ability to reach port 2049 on a vulnerable NFS server. The fix has already been integrated into several stable kernel branches, and the priority is to install the vendor update and reboot the system so it runs the patched kernel.
Does your system share files over NFS?
The flaw is in nfsd, the kernel's NFS server, and affects systems that offer NFSv4.1 or NFSv4.2. Red Hat says its default configurations do not enable the built-in NFS server: the risk is concentrated in systems specifically configured to export shares. If the machine does not operate as an NFS server, Red Hat says it is not exposed to this vulnerability.
Check whether the NFS server service is installed and running on the system. On systems with systemd, you can check its status with:
systemctl status nfs-serverIf you do not recognize that service or the result is unclear, check the vendor documentation before changing the configuration. The important thing is to determine whether the system serves NFS shares, not just whether it has an NFS-related package installed.
Next, find out whether NFSv4.1 or NFSv4.2 is negotiated and whether untrusted clients can reach port 2049. Exposure may affect servers on local networks, in container environments, and on build servers; NFS implementations are also found in NAS devices and embedded systems, which may depend on firmware updates. Do not assume a system is safe just because it is not a public-facing server: the condition is that an attacker can reach the service.
Steps to reduce the risk
Identify NFS servers. Review systems that export folders or storage to other machines, including NAS devices, Kubernetes storage nodes, and build servers. Check whether nfsd is active and whether NFSv4.1 or NFSv4.2 is in use. Red Hat notes that systems that do not operate as NFS servers are not affected by this flaw.
Install the vendor update. Apply the kernel security package released by the distribution that manages the system. For a NAS or embedded device, look for a firmware update from the manufacturer, as this may be the only way to patch the kernel.
Reboot after updating. BleepingComputer recommends rebooting the system after applying the patch to ensure it is running the patched kernel.
Restrict port 2049 while you patch. If you cannot install the fix immediately, allow access to the NFS server only from trusted networks or machines. Red Hat recommends restricting access to port 2049; Network World also advises blocking it from untrusted systems. The rule should preserve access for legitimate clients while blocking everyone else.
Disable the service if it is not needed. If the system does not need to share files over NFS, Red Hat recommends stopping and disabling nfs-server. This terminates active NFS sessions and stops serving shares, so first confirm that no service or client depends on them. This is not an appropriate alternative for a server that must continue serving mounts.
Check the status after making the change. After installing the update and rebooting, verify that the system booted with the updated kernel according to your distribution's procedure. If you restricted the port, confirm that authorized clients can still connect and that others can no longer access it. If you disabled nfs-server, check that the service remains stopped and disabled.
Watch for signs of suspicious activity. OpenSec recommends checking for kernel warnings related to
nfsd4_check_resp_size, shells launched by kernel worker processes on a file server, bursts of brief NFSv4.1 sessions from the same address, and kernel errors withnfsd4_*,svc_*orcall_usermodehelper*frames. These are indicators to investigate, not standalone proof that the server has been compromised.
Which fixes have been identified
Network World lists the first stable kernel versions that include the patch: eight stable branches, plus a release candidate. The table lists those numbers; the versions are kernel references, not instructions to simply replace your distribution's package.
| Branch | Listed patched version |
|---|---|
| 5.10 | 5.10.275 |
| 5.15 | 5.15.226 |
| 6.1 | 6.1.193 |
| 6.6 | 6.6.163 |
| 6.12 | 6.12.117 |
| 6.18 | 6.18.61 |
| 7.3 | 7.3.2 |
| 7.4 | 7.4-rc1 |
The fix should also reach maintained branches through updates from each distribution. Red Hat warns that its scores may differ from those of other organizations due to factors specific to its products: it assigns the vulnerability a CVSS score of 9.4, compared with CVE.org's 9.8. To decide which package to install, follow your system vendor's security advisory.
Mistakes to avoid
Do not confuse an NFS client with a server. The issue described is in nfsd, which handles requests and exports files. A system that only mounts a remote folder is not thereby an NFS server; check whether it actually serves resources to other systems.
Do not leave the service open to any network while waiting for a patch. Unauthenticated access to port 2049 is the condition that makes it possible to attempt to exploit the flaw, according to Network World. An internal network may also contain untrusted systems; restrict access to the clients that need it.
Do not consider the incident resolved after downloading the update: reboot so the patched kernel is used. And do not shut down nfs-server without checking dependencies; Red Hat warns that doing so terminates active sessions and interrupts client operations.
BleepingComputer reported that there were no reports of active exploitation when it published its coverage. That does not eliminate the need to patch exposed systems: if a NAS does not allow the patch to be applied directly, the update may depend on firmware released by its manufacturer.
Sources: Network World, Red Hat, BleepingComputer