Select your language

WHAT ARE YOU LOOKING FOR?

Popular Tags

Raleigh, NC

32°F
Few Clouds Humidity: 54%
Wind: 6.69 M/S

Cyber-Threat

12-Year-Old NFS2ROOT Linux Vulnerability Allowed Password-Free Server Takeovers

12-Year-Old NFS2ROOT Linux Vulnerability Allowed Password-Free Server Takeovers

A critical security vulnerability dubbed NFS2ROOT has been uncovered in the Linux kernel's Network File System (NFS) implementation, potentially allowing remote attackers to obtain full root-level control over vulnerable servers without requiring valid credentials or prior access. Tracked as CVE-2026-99362, the flaw affects Linux systems running NFSv4.1 or NFSv4.2 services and exposed on TCP port 2049.

The vulnerability originates from code introduced in Linux kernel 3.16, released in 2014, meaning affected systems may have remained vulnerable for over a decade. Security researchers at OpenSec Intelligence assigned the issue a CVSS score of 9.8, reflecting the risk posed by unauthenticated remote exploitation.

NFS2ROOT Remote Root Exploitation Overview

To demonstrate the impact, OpenSec published a controlled proof-of-concept showing an external system connecting to a vulnerable NFS server and triggering the execution of commands with root privileges. In the demonstration, the compromised server subsequently shuts down, highlighting the potential for attackers to execute arbitrary code remotely. While the exploit has been privately retained and there is no public evidence of active exploitation, the proof confirms the vulnerability is exploitable under realistic conditions.

The weakness exists within nfsd, the Linux kernel's NFS server component. Unlike traditional services that operate in user space, nfsd runs directly inside the kernel, meaning any successful memory corruption can have severe consequences. The flaw stems from how NFS handles cached responses for retransmitted client requests.

Under certain circumstances, the server incorrectly treats a partially generated response as complete and attempts to cache the result in a buffer that lacks sufficient space. This causes data to overflow beyond allocated memory boundaries, corrupting adjacent kernel structures in a classic heap overflow scenario.

Session Reply-Cache Heap Overflow Diagram

By manipulating this condition, an attacker can influence kernel memory and potentially execute arbitrary code with the highest level of system privileges. The patch addresses the flaw by enforcing stricter size validation and preventing oversized responses from being written to insufficient buffers.

Unlike several recent Linux kernel vulnerabilities that require attackers to first gain local access, NFS2ROOT can be exploited remotely across the network, making it significantly more dangerous in environments where NFS services are exposed.

The vulnerability was initially identified and corrected by Jérémy Jean of France's cybersecurity agency ANSSI, who submitted an upstream fix in August 2026. OpenSec later reported that its proprietary automated vulnerability research platform, Antara, independently rediscovered the flaw and successfully developed a working exploit chain. The company subsequently coordinated disclosure with Linux kernel security teams and NFS maintainers before the vulnerability was publicly documented.

Organizations should prioritize evaluating systems that expose NFS services, including:

  • Enterprise file servers
  • Network-attached storage (NAS) devices
  • Build and CI/CD infrastructure
  • Kubernetes storage backends using NFS shares
  • Data storage and backup nodes

Systems functioning solely as NFS clients are not vulnerable simply because they mount remote shares. Likewise, NFS2ROOT is unrelated to previous Kubernetes NFS CSI driver vulnerabilities, which involved path-handling issues rather than flaws in the kernel's NFS server implementation.

Administrators can quickly determine exposure by checking whether NFSv4.1 or NFSv4.2 is enabled and whether the system is actively listening on TCP port 2049. However, internal exposure should not be overlooked. Even servers isolated from the public internet can become attractive targets if an attacker compromises another host within the network and uses it as a pivot point.

Kernel versions containing fixes for CVE-2026-99362 include:

  • Linux 5.10.275
  • Linux 5.15.226
  • Linux 6.1.193
  • Linux 6.6.163
  • Linux 6.12.117
  • Linux 6.18.61
  • Linux 7.3.2
  • Linux 7.4-rc1

Organizations using vendor-maintained kernels, storage appliances, or enterprise distributions should consult vendor advisories rather than relying solely on upstream version numbers, as many vendors backport security fixes without changing major release identifiers.

After applying updates, administrators should reboot affected systems and verify the running kernel version to ensure patched code is active.

Where immediate patching is not feasible, temporary risk-reduction measures include restricting network access to TCP port 2049 through firewalls, ACLs, cloud security groups, or segmentation controls. OpenSec also recommends disabling NFSv4.1 and NFSv4.2 where operationally acceptable, though organizations should carefully evaluate application dependencies before making protocol changes.

As part of post-remediation investigations, defenders should review systems previously exposed to potential exploitation. Indicators highlighted by OpenSec include unusual kernel warnings referencing nfsd4_check_resp_size, unexpected shell processes spawned by kernel worker threads, and sudden spikes in short-lived NFSv4.1 sessions originating from a single host. While these artifacts alone do not confirm compromise, they can help direct forensic investigations when correlated with network telemetry, audit records, and privileged process execution logs.

Given the vulnerability's remote attack surface, root-level impact, and long lifespan within the Linux ecosystem, security teams should treat NFS2ROOT as a high-priority patching and exposure-management issue.

 

Found this article interesting? Follow us on X(Twitter) ,Threads and FaceBook to read more exclusive content we post. 

Cybersecurity Insight delivers timely updates on global cybersecurity developments, including recent system breaches, cyber-attacks, advancements in artificial intelligence (AI), and emerging technology innovations. Our goal is to keep viewers well-informed about the latest trends in technology and system security, and how these changes impact our lives and the broader ecosystem

Please fill the required field.