A critical security vulnerability has been identified within the Linux kernel’s Network File System (NFS) server, potentially allowing unauthenticated remote attackers to achieve root-level privileges. Tracked as CVE-2026-99362 and dubbed NFS2ROOT by the security firm OpenSec, the flaw stems from a heap buffer overflow weakness in the nfsd component. The vulnerability has been present in the Linux kernel since version 3.16, which was originally released in March 2014.
The flaw affects systems running Linux kernel versions older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1. For a system to be susceptible, it must have the NFS server service—specifically versions 4.1 or 4.2—active and reachable via TCP port 2049. Because this port is frequently exposed on network-attached storage devices, file servers, and Kubernetes storage nodes, the potential attack surface is significant.
According to technical analysis, the vulnerability is triggered when an attacker transmits maliciously crafted requests to the NFS server. These requests force the server to write data beyond the boundaries of an allocated memory buffer. By exploiting this heap overflow, an attacker can read kernel memory, circumvent Kernel Address Space Layout Randomization (KASLR), and establish a callback mechanism. When the attacker subsequently terminates the NFS connection, the kernel executes the embedded command with root privileges.
The vulnerability was discovered by Jérémy Jean of ANSSI, who submitted a fix to the NFSD maintainers in August. OpenSec subsequently shared a full remote-root exploit and the corresponding patch with maintainers in late September. While the exploit is considered low-complexity and requires no user interaction, there are currently no verified reports of the vulnerability being leveraged in active, real-world attacks.
Security experts emphasize that standard kernel hardening measures are insufficient to mitigate the underlying overflow issue. Because the attack does not leave traditional network signatures, administrators are advised to monitor for specific indicators of compromise. These include kernel warnings related to nfsd4_check_resp_size, unexpected shells spawned by kernel workers, unusual bursts of short NFSv4.1 sessions originating from a single source, and specific kernel oopses involving nfsd4, svc, or call_usermodehelper frames.
The primary recommendation for remediation is to apply the latest kernel security updates provided by Linux distribution vendors and perform a system reboot to ensure the patched kernel is active. If immediate patching is not feasible, administrators should restrict access to TCP port 2049, limiting connectivity to trusted networks or clients. For systems where NFS functionality is not strictly required, the nfs-server service should be stopped and disabled entirely via the system configuration files.
This disclosure adds to a growing list of Linux kernel privilege escalation vulnerabilities identified throughout the year. The longevity of the NFS2ROOT flaw, dating back over a decade, highlights the persistent risk posed by legacy code within core infrastructure components. Organizations are urged to prioritize these updates to prevent unauthorized administrative access to exposed servers.




