A serious vulnerability in the Linux kernel known as NFS2ROOT has been discovered, posing significant security risks. This flaw allows attackers to gain complete control of unpatched Network File System (NFS) servers without requiring a password. The issue is identified as CVE-2026-99362, affecting Linux kernel versions that enable NFSv4.1 or NFSv4.2 and are accessible via TCP port 2049.
Understanding the NFS2ROOT Vulnerability
OpenSec Intelligence has highlighted the severity of this flaw, assigning it a critical score of 9.8 out of 10. A video demonstration released on November 25 showcased how the vulnerability can be exploited to execute commands with root privileges remotely. However, OpenSec has not released this exploit to the public. The demonstration confirmed that remote root access could be achieved in a controlled environment, though there is no evidence of this flaw being actively exploited in the wild.
How the Exploit Works
The vulnerability stems from the way the NFS server handles incomplete replies. The server incorrectly treats these as successful operations, attempting to store them in a buffer that is too small. This leads to a heap overflow, potentially corrupting adjacent kernel data. The recent fix ensures that the server checks buffer sizes before attempting to store replies, preventing overflow.
The flaw, unlike some other kernel vulnerabilities, does not require the attacker to have prior access to the system. OpenSec credits Jérémy Jean from France’s ANSSI for contributing to the upstream fix. Their automated tool, Antara, independently identified the flaw and assisted in developing a demonstration.
Mitigating the Threat
Administrators should prioritize updating affected systems to patched kernel versions such as Linux 5.10.275, 5.15.226, 6.1.193, and others listed in official advisories. Those unable to patch immediately are advised to restrict access to TCP port 2049 and consider disabling NFSv4.1 and NFSv4.2, where feasible. These measures are temporary and should not replace the necessary kernel updates.
For systems potentially exposed to this vulnerability, OpenSec suggests monitoring for specific kernel warnings and unusual NFSv4.1 sessions. Discrepancies in network and process logs, particularly those involving unauthorized root-level operations, should be investigated promptly to prevent potential breaches.
Staying informed and proactive in updating security measures is critical to safeguarding systems against this and similar threats. Regularly reviewing vendor advisories and adapting security protocols accordingly will help mitigate risks associated with the NFS2ROOT flaw.
