Twelve-Year Linux NFS Flaw Lets Remote Attackers Gain Root Access
A critical vulnerability dating back twelve years has been discovered in the Linux kernel’s NFS server, allowing remote attackers to gain root access to affected systems.
Registered as CVE-2026-99362, the flaw carries a CVSS score of 9.8 and has been present since the release of Linux kernel version 3.16 in 2014, according to Techzine.nl.
The vulnerability, dubbed NFS2ROOT, impacts systems running a Linux kernel older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1, provided that NFS server versions 4.1 or 4.2 are active on TCP port 2049. Exploitation does not require user interaction and can be performed over an internal network.
By sending specially crafted requests, an attacker can trigger a memory overflow, allowing them to write data outside of an assigned buffer. This enables the manipulation of kernel memory to execute commands with root privileges once the NFS connection is terminated.
“Poort 2049 staat open op bestandsservers, NAS-apparaten, build-omgevingen en Kubernetes-opslagknooppunten. Sinds 2014 biedt de Linux-kernel die op deze poort luistert, iedereen die erbij kan de mogelijkheid om naar het kernelgeheugen te schrijven, nog voordat er is ingelogd,” said OpenSec.
While there are currently no reports of the vulnerability being exploited in the wild, security teams are urged to install the latest kernel updates from their Linux distribution providers and restart their systems. If patching is not immediately feasible, administrators are advised to restrict access to TCP port 2049 to trusted networks or disable NFS versions 4.1 and 4.2 via the /etc/nfs.conf file.
Although these attacks are difficult to identify through network signatures, OpenSec suggests that security teams monitor for specific indicators, including kernel warnings from nfsd4_check_resp_size, unexpected shells started by kernel processes, an unusual increase in short NFSv4.1 sessions, and kernel oopses referencing frames such as nfsd4_*, svc_*, or call_usermodehelper*.