NFS2ROOT: Pre-auth Remote Root in Linux nfsd
Score: 8/10

NFS2ROOT: Pre-auth Remote Root in Linux nfsd

CVE-2026-99362 is a 12-year-old critical pre-authentication heap overflow in the Linux kernel NFS server allowing remote root code execution.

Executive Summary

NFS2ROOT (CVE-2026-99362) is a critical vulnerability (CVSS 9.8) in the Linux kernel's in-process NFS server (nfsd), affecting versions as far back as Linux 3.16 (2014). The flaw allows an unauthenticated attacker with network access to tcp/2049 to trigger a heap overflow by manipulating NFSv4.1/4.2 session slot reply caches. OpenSec Intelligence demonstrated that this overflow can be chained to leak KASLR offsets and achieve remote root code execution without any user interaction or valid credentials.

The attack exploits a logic error where the server fails to verify if an NFSv4.1 SEQUENCE reply fits into a client-defined buffer before copying it, leading to an out-of-bounds write on the kernel heap. This impacts any Linux system acting as an NFS server, including NAS appliances, Kubernetes storage nodes, and build farms. Given the 12-year window of exposure and the availability of functional exploit chains, patching and rebooting affected systems is an urgent priority.

Immediate mitigation includes updating to fixed kernel versions (6.12.117, 6.18.61, 7.3.2, or 7.4-rc1). If patching is not immediately feasible, administrators should restrict access to port 2049 via firewalls or disable NFSv4.1 and v4.2 in the server configuration.

Key Details

Threat Name

NFS2ROOT

Affects

Linux kernel, nfsd

Adversary

—

MITRE Techniques

Malware/Tools

None identified

Report Score

8out of 10
Quality Score
Good
IOC Quality3
TTP Details9
Detection Guidance7
Enterprise Relevance9
Clarity & Structure10
Technical Depth8

Sources