The NFS2ROOT flaw can give a remote attacker root access to a Linux server that shares files over a network. Researchers demonstrated the attack against the kernel’s Network File System (NFS) server, but as of November 27, they had reported no cases of attackers using it in the wild.

The vulnerability, tracked as CVE-2026-99362, dates back to Linux 3.16 in 2014. Jérémy Jean of France’s national cybersecurity agency, ANSSI, discovered the flaw and submitted a fix in August. In late September, researchers at OpenSec also shared a working demonstration and a patch with the developers who maintain the Linux NFS server.

Which Linux servers face the greatest exposure?

The NFS2ROOT flaw affects vulnerable hosts running version 4.1 or 4.2 of the Linux kernel’s NFS server. An attacker needs network access to the service, which normally listens on TCP port 2049. Servers that accept connections from the public internet face the widest exposure.

The problem lies in how the server handles certain requests. It can write past the end of an allocated memory buffer, corrupting memory inside the kernel. An attacker who can reach the vulnerable service could gain full administrative control of the host without first signing in or persuading a user to take any action.

Dedicated file servers are only part of the picture. Network storage appliances, build farms and Kubernetes storage nodes can also serve files over NFS. For administrators reviewing those systems, two details matter: whether the host actually runs the affected NFS service and which networks can reach it.

Kernel updates close the vulnerability

Administrators should install the kernel security update from their Linux distribution, reboot the host and verify that it is running the patched kernel. Until they can update, they can reduce exposure by limiting access to TCP port 2049 to trusted clients or networks. On hosts that no longer need to share files over NFS, they can disable the server entirely.

Researchers also identified activity worth investigating on file servers. Warning signs include NFS-related kernel errors, an unusual burst of short connections from one source or a kernel worker unexpectedly starting a shell. These signals can help security teams decide which hosts need closer inspection while they roll out updates.


0 responses to “NFS2ROOT flaw puts exposed Linux file servers at risk”