Vulnerabilities
Critical Linux flaw lets attackers gain root via NFS server
A 12-year-old bug in Linux's NFS server (CVE-2026-99362) lets remote attackers gain root access. Patches are available, but systems running unpatched kernels remain at risk.
Ross Grant3 min read

The short version
A serious bug has been found in Linux servers that use the NFS file-sharing service. If a server is running an old version and has NFS enabled, attackers could take full control of it over the internet. The problem has been around since 2014, but a fix is now available. If you run a Linux server, check for updates and restrict access to NFS if you cannot patch right away.
What happened?
A critical Linux kernel vulnerability (CVE-2026-99362) in the NFS server lets remote attackers gain root privileges. The flaw has existed since 2014 and affects systems with nfsd enabled and exposed on port 2049. Patches are available, but there are no reports of exploitation yet, according to BleepingComputer.
How the flaw works
A critical vulnerability in the Linux kernel's Network File System (NFS) server, tracked as CVE-2026-99362 and dubbed "NFS2ROOT," allows remote attackers to gain root privileges on affected systems. The flaw is a heap buffer overflow in the nfsd component. This means an attacker can send specially crafted requests to the NFS server, causing it to write data beyond the memory space set aside for it. This lets the attacker read sensitive kernel memory, bypass protections like Kernel Address Space Layout Randomization (KASLR), and execute commands as root.
The vulnerability has existed since Linux kernel version 3.16, released in March 2014. It affects systems running kernels older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1, if the nfsd service (NFS v4.1 or 4.2) is loaded and TCP port 2049 is accessible from the internet. The attack does not require any user interaction and is considered low complexity.
Who is affected
Any Linux server running an affected kernel version with the NFS server (nfsd) enabled and reachable on TCP port 2049 is vulnerable. This includes file servers, NAS appliances, build farms, and Kubernetes storage nodes. OpenSec, the security firm that helped analyse the flaw, warns that port 2049 is often left open on such systems, making them easy targets if unpatched.
The response
A patch for CVE-2026-99362 has been submitted and is available in newer kernel versions. Security teams are urged to update their Linux distributions to a patched kernel and reboot to ensure the fix is active. For systems that cannot be patched immediately, administrators should restrict access to the NFS server on port 2049 to trusted networks or clients. If NFS is not needed, disabling the nfs-server service is recommended.
OpenSec notes that there are no known reports of this vulnerability being exploited in the wild so far. However, they stress the importance of patching, as kernel hardening measures do not prevent this particular overflow.
What you should do
- Apply the latest kernel security updates from your Linux vendor and reboot the system.
- Restrict TCP port 2049 to trusted networks if patching is not immediately possible.
- Disable the nfs-server service if NFS sharing is not required.
- Monitor for signs of exploitation, such as kernel warnings from nfsd4_check_resp_size, unexpected shells spawned by kernel workers, bursts of short NFSv4.1 sessions from one source, or kernel errors mentioning nfsd4_, svc_, or call_usermodehelper*.
Has this happened before?
NFS2ROOT is the latest in a series of Linux privilege escalation flaws disclosed and patched this year, including issues like RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot, and DirtyDecrypt/DirtyCBC. This highlights the ongoing challenge of securing core Linux components against privilege escalation attacks.
Why it matters
This flaw lets attackers take full control of Linux servers remotely, which could lead to data theft, ransomware, or further attacks inside a network. Many critical systems use NFS, so unpatched servers could be a target.
Key points
- A 12-year-old Linux bug (CVE-2026-99362) lets remote attackers gain root via NFS.
- Systems running unpatched kernels with NFS enabled and port 2049 open are at risk.
- Patches are available; update and reboot to protect your servers.
- No known exploitation yet, but the risk is high for exposed systems.
- Restricting NFS access and monitoring for suspicious activity can reduce risk.
Sources
BleepingComputer
Reference

