Discovered Linux NFS2ROOT Vulnerability Could Allow Attackers to Obtain Root Privileges
A critical vulnerability CVE-2026-99362 in the Linux NFS server allows remote attackers to obtain root privileges. The risk exists if nfsd is running and TCP port 2049 is accessible from the internet.

The defect was discovered by Jérémy Jean from ANSSI. The company OpenSec named the vulnerability NFS2ROOT and provided developers with a fix and an exploit for remote root access. The flaw has existed since Linux kernel version 3.16, released in March 2014.
The issue affects kernels older than versions 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1 if nfsd is loaded and running with NFS 4.1 or 4.2 support. Specially crafted requests cause a heap buffer overflow, allowing attackers to read kernel memory, bypass KASLR, and execute an embedded command with root privileges after the connection is closed. The attack does not require an account or user interaction, but there are no reports of CVE-2026-99362 being exploited yet.
Administrators are advised to install the latest kernel updates from their Linux vendor and reboot the server. Until then, access to port 2049 should be restricted to trusted networks; if NFS is not needed, the nfs-server service can be disabled.





