Critical 12-Year-Old Linux Kernel Bug Allows Remote Root Takeover

Critical 12-Year-Old Linux Kernel Bug Allows Remote Root Takeover
Share

A critical Linux kernel flaw dubbed NFS2ROOT allows remote attackers to gain root privileges through vulnerable Network File System server deployments. Tracked under the identifier CVE-2026-99362 with a maximum severity score of 9.8 out of 10, the heap buffer overflow vulnerability was discovered by security researcher Jérémy Jean of ANSSI, who submitted a fix in August 2026. The alarming security flaw has existed in the Linux kernel for a dozen years, having been first introduced with Linux kernel version 3.16 back in March 2014.

Key takeaways

  • The NFS2ROOT vulnerability affects Linux kernel versions older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1.
  • The flaw allows remote threat actors to execute commands and gain root privileges without requiring user interaction.
  • Security researchers OpenSec published a full remote-root exploit and a patch for NFSD maintainers in late September 2026.
  • Administrators can mitigate risks by applying kernel updates, restricting TCP port 2049, or disabling NFS sharing.

How the exploit works

The vulnerability affects systems running exposed NFS services, specifically versions v4.1 or v4.2, on internet-accessible hosts. A primary prerequisite for a successful attack is that TCP port 2049 must be accessible directly over the internet. According to security firm OpenSec, malicious actors can transmit a custom-built request that forces the NFS server to write data past its allocated memory buffer. This memory corruption allows attackers to read kernel memory, bypass KASLR protection mechanisms, and place a callback that executes commands in released memory areas. As soon as the attacker closes the NFS connection, the kernel executes the command with complete root privileges.

While the flaw requires zero user interaction and is categorized as low in complexity, no active exploitation in the wild has been documented so far, and the US Cybersecurity and Infrastructure Security Agency has not yet added it to its Known Exploited Vulnerabilities catalog. However, OpenSec and other security researchers urge immediate kernel updates, warning that public exploit code is already available and exploitation attempts are likely to follow.

Mitigation strategies and monitoring

For systems unable to patch immediately, administrators can implement temporary workarounds, such as restricting network access to TCP port 2049 or disabling NFS sharing entirely via the system configuration file. OpenSec notes that port 2049 often sits open on file servers, network-attached storage appliances, build farms, and Kubernetes storage nodes. IT personnel looking for signs of potential compromise should monitor server logs for specific indicators, including kernel warnings from nfsd4_check_resp_size, unexpected shells spawned by kernel workers on file servers, short bursts of NFSv4.1 sessions originating from a single source, and related kernel oopses.

This discovery adds to a notable year for high-severity privilege escalation bugs across the Linux ecosystem. Throughout 2026, security analysts have identified multiple critical flaws, including Copy Fail, Dirty Frag, and a ptrace access-control logic flaw discovered by Qualys, alongside local privilege-escalation issues reported by Microsoft. Experts reiterate that kernel hardening features do not remove the memory overflow itself, making prompt patching essential for all exposed hosts.

Source: techradar.com — reported and rewritten by the TechToday team.

Found this helpful? Share it.

Related Stories

Comments

No comments yet. Be the first to comment!