thethreatdeskFiled from the front lines of cybersecurity
VulnerabilitiesCritical

NFS2ROOT: a 12-year-old Linux NFS server bug can give remote attackers root without logging in

CVE-2026-99362 is a heap overflow in the kernel's NFSv4.1/4.2 session reply cache. Researchers demoed root code execution; fixed kernels are out.

A critical flaw in the Linux kernel's built-in NFS server, nicknamed NFS2ROOT and tracked as CVE-2026-99362, can let an unauthenticated attacker who can reach TCP port 2049 run code as root, according to research firm OpenSec Intelligence, which rates it 9.8.

The bug

The problem sits in how the kernel's nfsd caches replies for NFSv4.1 and NFSv4.2 sessions. An incomplete reply can be treated as successful and written into a buffer that is too small, producing a heap overflow. The vulnerable code dates back to Linux 3.16, released in 2014, so it has shipped in kernels for about 12 years.

Only systems acting as NFS servers with NFSv4.1 or 4.2 enabled are affected. Machines that merely mount NFS shares as clients are not.

Disclosure and exploitation

According to OpenSec, a fix was submitted upstream in August by an ANSSI researcher, and the firm's automated analysis tool independently found the bug and built a working exploit. OpenSec released a video on November 25 showing a remote machine triggering root command execution on a test server. It has not published the exploit code, and there are no reports of attacks in the wild so far.

Fixed versions

Patched upstream stable kernels include:

Distributions and storage appliance vendors may ship backported fixes under different version numbers, so their own advisories are the reliable reference.

Detection hints

OpenSec suggests watching for kernel warnings that mention nfsd4_check_resp_size, unexpected shells spawned by kernel worker threads, and bursts of very short NFSv4.1 sessions from a single address. None of these prove compromise on their own.

With a public demonstration and fixes visible in the kernel tree, the gap before others build an exploit may be short.

Who's affected

Linux servers and NAS or storage appliances that run the in-kernel NFS server with NFSv4.1 or NFSv4.2 enabled and expose port 2049.

What to do

Install your distribution's patched kernel and reboot, then confirm the running version; until then, block TCP 2049 from untrusted networks and consider disabling NFSv4.1/4.2 if clients don't need them.

Tracked flaws:CVE-2026-99362