A critical vulnerability in the Linux kernel’s Network File System (NFS) server could allow an unauthenticated remote attacker to take control of a vulnerable server with root privileges. Tracked as CVE-2026-99362 and named NFS2ROOT by cybersecurity firm OpenSec, the flaw has remained in the kernel for around 12 years, dating back to Linux 3.16, released in 2014.

The vulnerability affects the kernel’s in-kernel NFS server, known as nfsd. It is caused by a heap out-of-bounds write in the handling of NFSv4.1 SEQUENCE requests. A remote client can negotiate an extremely small reply-cache size and send a specially crafted request that causes the server to copy response data beyond the allocated buffer. Red Hat says the resulting memory corruption could cause a system crash or potentially allow arbitrary code execution.

ANSSI researcher Jérémy Jean independently identified the issue and submitted an upstream fix in August. OpenSec later investigated the same flaw, gave it the NFS2ROOT name and reported a remote-root exploit and patch to the Linux NFS server maintainers in September. The vulnerability was publicly assigned CVE-2026-99362 in November. OpenSec says its exploit chains the memory corruption with a kernel memory disclosure and other steps to demonstrate root-level command execution.

Not every Linux machine is exposed. The risk applies to systems running the kernel NFS server with NFSv4.1 or NFSv4.2 enabled, where an attacker can reach the NFS service over TCP port 2049. Systems that only use NFS to mount remote shares as clients are not affected by this server-side flaw. Red Hat also notes that its default configurations do not enable the in-kernel NFS server, limiting exposure to systems specifically configured to export NFS shares.

READ
Fullerton Health Breach Raises Scam Fears for Migrant Workers

OpenSec lists upstream fixes in Linux 6.12.117, 6.18.61 and 7.3.2, with the fix also present in the 7.4-rc1 development release. Administrators should not rely on upstream version numbers alone, however, because Linux distributions can backport security fixes to their own kernel packages. They should check their distribution’s advisory for CVE-2026-99362, install the corrected kernel package and reboot so the patched kernel is running.

Where an immediate update is not possible, administrators should restrict inbound access to TCP port 2049 so only trusted NFS clients and networks can connect. Systems that do not need to share files through NFS should stop and disable the nfs-server service. These measures reduce exposure but do not replace installing the security update.

OpenSec says defenders can look for kernel warnings involving nfsd4_check_resp_size, kernel errors containing nfsd4_* or svc_* stack frames, unexpected shells launched by kernel workers on file servers, and unusual bursts of short NFSv4.1 sessions from a single source. The firm cautions that the attack uses valid NFS traffic, so there is no simple network signature that reliably identifies it.

There are currently no reports of CVE-2026-99362 being exploited in real-world attacks. The disclosure adds to a series of Linux kernel security issues reported this year, including Copy Fail and Dirty Frag, which also raised concerns about attackers gaining root privileges on vulnerable systems.

OpenSec has published its technical analysis of NFS2ROOT, while Red Hat has issued a security advisory for CVE-2026-99362. The upstream kernel fix is available in the Linux stable tree.


Buy ExpressVPN with PayPal or Credit Card

Advertisement