Linux Kernel NFS2ROOT Vulnerability CVE-2026-99362: Remote Root via NFS
OpenSec researchers disclosed a critical 9.8 CVSS vulnerability CVE-2026-99362 (NFS2ROOT) in Linux kernel nfsd allowing unauthenticated root execution.

Information security experts from OpenSec have disclosed details regarding a critical vulnerability named NFS2ROOT (CVE-2026-99362) located within the NFS server (nfsd) component of the Linux kernel. The vulnerability allows unauthenticated remote attackers to achieve arbitrary code execution with full Linux kernel privileges.
- Vulnerability CVE-2026-99362 carries a maximum severity score of 9.8 out of 10 on the CVSS scale.
- The flaw affects NFSv4.1 and NFSv4.2 protocol handling code present since Linux kernel 3.16 released in 2014.
- Exploitation requires establishing a single TCP connection to port 2049, triggering a buffer overflow.
- Security patches are already integrated into kernel releases 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1.
Technical Analysis and Exploit Vector
The issue stems from a buffer overflow in the session slot caching code used by NFSv4.1 and NFSv4.2 protocols to store recent server replies. The cache size is defined by the NFS client. By passing a size value of 0, the nfsd4_sequence() function shrinks the response buffer size to zero but still attempts to copy the full server response into it.
This overwrites 61 bytes of kernel structures following the buffer, with 40 bytes fully controlled by the attacker. In the demonstrated exploit, this overflow corrupts adjacent slot control structures, leaking 3,8 KB of kernel memory data to bypass ASLR. It then manipulates pointers to trigger the freeing of a targeted kernel object, later replaced with a fake callback handler built from NFS client names.
Read alsoCVE-2026-123158: Hackers Target OpenSSH SSHole Flaw InstantlyImpacted Systems and Mitigation Strategies
Vulnerable configurations include Network Attached Storage (NAS) devices, file servers, CI build infrastructures, and Kubernetes storage nodes exposing TCP port 2049 to external networks. Although researchers demonstrated a working exploit via video, the exploit code itself has not been publicly released.
Linux distributions including Debian, Ubuntu, RHEL, SUSE, Arch, and Fedora have rolled out updates fixing the bug. Administrators can verify if the nfsd module is loaded and check protocol versions via system utilities. As a workaround, blocking port 2049 at the firewall level or disabling vulnerable protocol versions in /etc/nfs.conf can protect systems.
What This Means for IT Professionals and Businesses
The discovery of NFS2ROOT highlights persistent risks in core network storage protocols exposed to untrusted networks. Since the bug has resided in the Linux kernel for over a decade, countless servers and NAS appliances face exposure to potential automated exploits.
System administrators must prioritize patching their Linux kernels across all enterprise infrastructure and review logs for anomalies related to nfsd4 check sizes or kernel oops errors. Securing network perimeters by restricting direct access to NFS ports remains a critical defensive baseline.
Source: Все публикации подряд на Хабре



