Critical severity

NFS2ROOT: 12-year-old Linux NFS server flaw gives remote attackers root (CVE-2026-99362)

A heap overflow in the Linux kernel's NFS server, present since 2014, lets an attacker who can reach TCP port 2049 take root without credentials, according to OpenSec.

By Mr Elite Published 6 min read

Severity
Critical
Status
Reported by outlets
Sources
1
Last checked

The short version

  • CVE-2026-99362, nicknamed NFS2ROOT, has a CVSS score of 9.8 and affects the Linux kernel's in-kernel NFS server, Security Affairs reported.
  • Exploitation needs no password, account or user click, only network access to TCP port 2049.
  • The bug came in with a March 2014 commit and first appeared in Linux 3.16.
  • Fixes were published on November 20; OpenSec said it knows of no attacks in the wild.

What happened

Security Affairs reported on 29 November 2026 that a critical flaw in the Linux kernel's NFS server, tracked as CVE-2026-99362 and named NFS2ROOT, lets remote attackers gain root privileges. The CVSS score, a 0 to 10 severity rating, is 9.8. NFS is the Network File System, a protocol for sharing files between machines.

According to OpenSec, the bug was introduced by commit 47ee52986472 in March 2014 and first appeared in Linux 3.16. It also remained in later distribution kernels and storage appliance kernels.

Jérémy Jean of France's cybersecurity agency, ANSSI, found the vulnerability and submitted a fix on August 17, 2026, Security Affairs reported. OpenSec said it found the flaw independently. Its Antara system flagged the bug on September 21, scored it and built the attack without human help.

The company said it sent the exploit and a patch to maintainers and the Linux security team the next day. The CVE and the fixes appeared on November 20. Chuck Lever and Jeff Layton maintain the NFS server.

In its demonstration, OpenSec said it gained root access before shutting down the server. It said it is not aware of attacks in the wild exploiting the flaw.

Why it happened

OpenSec's report, as relayed by Security Affairs, describes the fault in steps. NFSv4.1 lets a client set the size of the cache that stores the server's replies. Before authentication, an attacker can set that size to zero.

With a crafted request, the attacker then forces the kernel to copy an 80-byte reply into the empty buffer. That is a heap overflow: 61 bytes land beyond the allocated memory, and 40 of them are controlled by the attacker.

OpenSec said that by sending normal NFS requests in a particular order, an attacker can corrupt memory, read 3.8 KB of data, bypass address randomisation and plant a command in reused memory. When the connection closes, the kernel runs that command as root. The fix, in commits 5d5a72e965c8 and 241848cc774e, checks that the reply fits and rejects data that cannot be stored.

How this kind of failure works

A heap overflow happens when a program writes more data into a block of memory than the block can hold. The extra bytes spill into whatever sits next to it. If an attacker controls those bytes, they can change how the program behaves.

Think of a hotel pigeonhole for room keys. If a clerk is told the slot for your room holds zero keys and then pushes a full set of keys in anyway, the keys land in the neighbouring slot. If you chose what those keys were, you could end up holding access to someone else's room.

This case is worse because the code runs inside the kernel, the core of the operating system, which has full control of the machine. The server also handles network input before it knows who is sending it. A mistake there gives an attacker kernel-level power with no login.

Address randomisation shuffles where data sits in memory so attackers cannot predict targets. OpenSec said its attack bypassed this by reading data back from the server. That shows why a memory leak and an overflow are often chained: the first defeats the shuffling, the second does the damage.

Who is affected

Affected systems are Linux hosts running a vulnerable kernel with the in-kernel NFS server (nfsd) active, NFSv4.1 or 4.2 enabled, which is the default, and TCP port 2049 reachable. OpenSec listed file servers, storage devices, build systems and Kubernetes storage nodes as common users of that port.

The server does not need to face the internet. An attacker already inside the network, for example on a compromised laptop or container, can exploit it if they can reach the service.

To check, see whether nfsd is running and which kernel version you have. Distribution kernels may carry the fix under an older version number, so check your vendor's update notes for CVE-2026-99362. A successful attack gives full control of the server and any data it shares.

How to defend against it

Tick each step as you check it. Your progress is saved on this device.

What to learn from this

The concept: Attack surface before authentication

Code that handles requests before it checks who is asking is called pre-authentication attack surface. Any bug there can be reached by anyone who can connect. That is why this flaw scores 9.8.

The same pattern appears in VPN gateways, web server request parsers and remote desktop services. Reducing who can reach such services, through firewalls and network segmentation, limits the damage when a bug is found.

Mitigations such as firewall rules reduce exposure but do not fix the bug. OpenSec's own advice is to patch every host.

Services that parse network input before login deserve the tightest network access and the fastest patching.

Quick check

Sign in to earn 10 XP for a right answer

Why can an attacker on an internal network still exploit NFS2ROOT even if the server is not exposed to the internet?

Timeline

  1. March 2014 Commit 47ee52986472 introduces the bug, which first appears in Linux 3.16.
  2. August 17, 2026 Jérémy Jean of ANSSI finds the flaw and submits a fix.
  3. September 21, 2026 OpenSec's Antara system independently flags the bug, scores it and builds the attack.
  4. September 22, 2026 OpenSec sends maintainers and the Linux security team the exploit and a patch, per Security Affairs.
  5. November 20, 2026 The CVE and fixes are published.
  6. November 29, 2026 Security Affairs reports on the flaw.

What is not known yet

  • Whether anyone is exploiting the flaw in the wild; OpenSec said it is not aware of any attacks.
  • Which specific distributions and storage appliances ship vulnerable kernels, and when each will issue updates.
  • Whether Jean and OpenSec's separate discoveries were related; Security Affairs says OpenSec found it independently.

Questions people ask

What is NFS2ROOT?

NFS2ROOT is the name given to CVE-2026-99362, a heap overflow in the Linux kernel's NFS server. It has a CVSS score of 9.8. Security Affairs reported that it lets remote attackers gain root without a password, account or user click.

Do I need to be exposed to the internet to be at risk?

No. According to OpenSec, an attacker can exploit the flaw from inside the network if they can reach the NFS service on TCP port 2049. Internal systems such as file servers and Kubernetes storage nodes are in scope.

Which Linux versions fix CVE-2026-99362?

The fixed upstream releases are Linux 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1, and a reboot is needed. Distribution kernels may carry backported fixes under older version numbers, so install the vendor update that lists the CVE.

How can I detect an attempt to exploit it?

OpenSec said the attack uses legitimate NFS traffic, so network tools may miss it. Check system logs for nfsd4_check_resp_size warnings, which appear on every attempt. Also look for crashes in nfsd4_*, svc_* or call_usermodehelper* functions and shells started by kernel workers.

Sources

Know someone who should see this?

Keep reading