Pull to refresh
Logo
Twelve-year-old Linux NFS server bug allows unauthenticated root

Twelve-year-old Linux NFS server bug allows unauthenticated root

Built World

CVE-2026-99362 is a heap overflow in the kernel's NFS server, reachable on TCP port 2049 before any login; fixes exist for four kernel branches

Overview

Updated Yesterday

For twelve years, any Linux machine serving NFSv4.1 or 4.2 would accept a connection on TCP port 2049 and write past the end of a kernel buffer before checking who was calling. OpenSec, a security research firm, turned that overflow into a root shell and published the details on 25 November.

The flaw is CVE-2026-99362. It is fixed in Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, and the patch went upstream in August after a report from France's national cybersecurity agency, ANSSI. Applying it takes a kernel update and a reboot. Hosts that cannot reboot yet can close port 2049 to everything outside their storage network.

Why it matters

Any Linux file server, NAS or storage node reachable on port 2049 could be rooted without a password until its kernel is patched.

Questions about this story

Free account needed to ask — your question is kept and asked for you right after sign-up. Answers are public.

No questions yet — be the first to ask.

Key Indicators

9.8
CVSS v3 severity score
Rated critical: network reachable, no privileges, no user interaction.
12 years
Time the bug sat in the kernel
Introduced in March 2014 and shipped in every kernel since 3.16.
61 bytes
Overflow past the heap object
Of 80 bytes copied into a zero-length buffer, 40 are chosen by the client.
2049
TCP port that must be reachable
No account or credential is needed to trigger the overflow.
4
Kernel branches with a fix
6.12.117, 6.18.61, 7.3.2 and 7.4-rc1 carry the patch.

Voices

Curated perspectives — historical figures and your fellow readers.

Sign up to generate historical perspectives on this story.

People Involved

Organizations Involved

Timeline

March 2014 November 2026

6 events Latest: Yesterday
Tap a bar to jump to that date
  1. OpenSec publishes NFS2ROOT

    Latest Disclosure

    Write-up details the overflow, the exploit chain and the mitigations.

  2. CVE-2026-99362 published

    Advisory

    Kernel CVE team names the fix commits for four branches.

  3. OpenSec reports to kernel security team

    Disclosure

    Sends the full remote-root exploit to NFSD maintainers and security@kernel.org.

  4. Antara builds a root shell

    Research

    OpenSec's tool flags the reply-cache path, scores it 9.8 and exploits it unaided.

  5. ANSSI sends the fix upstream

    Patch

    Jérémy Jean submits the patch with a KASAN report of the out-of-bounds write.

  6. The bug ships in Linux 3.16

    Origin

    Commit 47ee52986472 narrows the reply buffer while handling SEQUENCE.

Scenarios

1

No confirmed in-the-wild exploitation, and the bug stays out of CISA's exploited list

Likely Resolves by Nov 25, 2027

Discussed by: BreachNews and OpenSec, both noting that no vendor or agency had reported active exploitation as of 25 November 2026

The exploit stays private, the patch ships into distribution kernels, and the flaw joins the long list of critical-rated kernel bugs that never attracted a public campaign. Storage appliances and long-lived embedded kernels remain the risk, since their update cycles run in months or years rather than weeks. Nothing in the public record forces an attacker's hand here: NFS is usually confined to internal networks, which shrinks the pool of reachable hosts.

2

Public exploit code appears and the CVE lands in CISA's exploited list

Possible Resolves by May 25, 2027

Discussed by: Kernel security researchers and the OpenSec write-up, which warns that port 2049 is common on NAS appliances, build farms and Kubernetes storage nodes

Heap layout is the hard part of this exploit, and OpenSec says it built the leak, the arbitrary free and the fake callback with an automated tool. If that work leaks or is reproduced, the barrier drops to running a script against any reachable port 2049. Internal networks with flat segmentation would be the first to feel it, because NFS trusts the client by design and the overflow happens before any credential check.

3

The fix stalls in older long-term and industrial kernel trees

Possible Resolves by Feb 25, 2027

Discussed by: KernelScan, which tracks fix state across Civil Infrastructure Platform long-term trees

The upstream patch covers 6.12, 6.18, 7.3 and mainline. Older long-term branches and the Civil Infrastructure Platform trees that feed industrial and embedded systems depend on separate backports. KernelScan listed cip/4.19-rt as affected with no fix as of late November. Appliance vendors that freeze a kernel for a product's lifetime can leave port 2049 exposed long after the distributions everyone watches have moved on.

Historical Context

3 moments from history that rhyme with this story — and how they unfolded.

April 2014

Heartbleed (2014)

A missing bounds check in OpenSSL's heartbeat extension let anyone send a small malformed request and read up to 64 kilobytes of a server's memory, with no authentication. The bug had sat in the library for about two years and the library ran on a large share of the internet's servers.

Then

Operators rushed to patch OpenSSL and reissue certificates; the disclosure forced a broad audit of open-source crypto code.

Now

Heartbleed became the reference case for pre-authentication memory bugs in foundational open-source software, and it accelerated funding for open-source security review.

Why this matters now

Same shape as NFS2ROOT: an unauthenticated memory error in code almost nobody inspects, found years after it shipped. The difference is that NFS servers usually sit inside a network perimeter rather than on the public internet.

March-May 2017

EternalBlue and WannaCry (2017)

Microsoft patched a critical remote code execution flaw in its SMBv1 file-sharing protocol in March 2017. A leaked NSA exploit for it, EternalBlue, appeared in April. In May, the WannaCry ransomware used it to encrypt machines across hospitals, factories and government offices in more than 150 countries.

Then

Hundreds of thousands of machines were disrupted, and Microsoft took the unusual step of shipping a patch for unsupported Windows versions.

Now

EternalBlue remained in use for years, and unpatched file-sharing services became a standing example of what happens when a patch exists but deployment does not.

Why this matters now

NFS on port 2049 is the same category of exposure: a file-sharing service where reachability is the only precondition. The WannaCry timeline shows how much depends on how fast appliance and server kernels actually get updated.

September 2014

Shellshock (2014)

Researchers found that Bash, the default shell on most Linux and Unix systems, would execute code hidden in environment variables. The flaw had gone unnoticed for roughly two decades and affected web servers, embedded devices and anything else that passed untrusted input to a shell.

Then

Patches shipped within days, but scanning found large numbers of exposed devices that never received them.

Now

Shellshock reinforced the practice of treating long-dormant code paths in ubiquitous software as likely places for serious bugs.

Why this matters now

The 12-year dormancy is the headline here too. A commit from March 2014 looked correct when it landed, and the flaw survived every stable and distribution kernel since.

Sources

(7)