A critical vulnerability in the Linux kernel’s Network File System (NFS) server, tracked as CVE-2026-99362 and dubbed NFS2ROOT, could allow a remote, unauthenticated attacker to gain root privileges on exposed systems. The heap buffer overflow affects the NFS server (nfsd) and has existed since Linux kernel 3.16, released in March 2014. No exploitation has been reported in the wild, but administrators are urged to install vendor-provided kernel updates and reboot affected systems.
Linux NFS vulnerability enables remote root access
The flaw was discovered by Jérémy Jean of ANSSI, with a correction submitted in August. OpenSec, the cybersecurity firm that dubbed the issue NFS2ROOT, shared a complete remote-root exploit and a patch with NFSD maintainers in late September.
CVE-2026-99362 is a heap buffer overflow in the Linux NFS server. The vulnerability affects systems running Linux kernels older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1 when nfsd version 4.1 or 4.2 is loaded and running, and TCP port 2049 is reachable over the internet.
A successful attack could allow a remote, unprivileged attacker to corrupt kernel memory and gain root access to an exposed Linux server. The attack is considered low complexity and does not require user interaction.
To exploit the flaw, an attacker sends a specially crafted request that writes data beyond the NFS server’s allocated memory buffer. This can place callbacks that read kernel memory, bypass KASLR protections for kernel memory addresses, and execute commands in freed memory.
When the attacker closes the NFS connection, the kernel executes an embedded command with root privileges, giving the attacker control of the unpatched server.

Administrators urged to patch exposed systems
Although there are no reports that CVE-2026-99362 has been exploited in the wild, security teams should immediately apply the latest kernel security updates provided by their Linux distribution vendors. Systems should then be rebooted to ensure they are running the patched kernel.
If an update cannot be installed immediately, administrators should restrict access to the NFS server on TCP port 2049 to trusted clients or networks. If NFS shares are not required, administrators can also stop and disable the nfs-server service in /etc/nfs.conf.
“Port 2049 is left open on file servers, NAS appliances, build farms, and Kubernetes storage nodes. Since 2014, the Linux kernel listening on port 2049 has allowed anyone with access to port 2049 to write to kernel memory before logging in,” OpenSec said. “Hardening the kernel will not resolve the overflow. Please patch all hosts.”
Potential indicators of attack
According to OpenSec, NFS2ROOT does not produce network signatures. However, security teams have identified several potential indicators, including kernel warnings from nfsd4_check_resp_size, shells spawned by kernel workers on file servers, short bursts of NFSv4.1 sessions from a single source, and kernel oopses involving nfsd4_*, svc_*, or call_usermodehelper* frames.
NFS2ROOT is the latest in a series of Linux privilege-escalation vulnerabilities disclosed and patched since the beginning of the year. Other issues include RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot, and DirtyDecrypt/DirtyCBC.
Source: www.bleepingcomputer.com












