Home / Blog / New NFS2ROOT Linux flaw can let attackers gain root…
Tech News

New NFS2ROOT Linux flaw can let attackers gain root privileges

A 12-year-old Linux nfsd heap overflow, CVE-2026-99362 (NFS2ROOT), lets remote attackers gain root on unpatched servers that expose TCP port 2049.

By Dillip Chowdary • Nov 28, 2026 • Source: BleepingComputer

New NFS2ROOT Linux flaw can let attackers gain root privileges
Image: BleepingComputer

At a glance

Flaw
CVE-2026-99362 (NFS2ROOT)
Present since
Kernel 3.16, March 2014
Older than
6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Exposure
nfsd 4.1 or 4.2 on TCP port 2049
Workaround
Restrict 2049 or disable nfs-server
In the wild
No reports of exploitation

The article has to follow the security post template and use only facts from the BleepingComputer piece.The source has a clear five-part order.Several paragraphs are under the 40-word floor and the deck is short of 145 characters.A 12-year-old critical vulnerability in the Linux kernel's Network File System server allows remote attackers to gain root privileges. The flaw, tracked as CVE-2026-99362, is a heap buffer overflow in nfsd and has existed since kernel version 3.16, released in March 2014. BleepingComputer's report carries the public account, and cybersecurity firm OpenSec is the group that dubbed the bug NFS2ROOT.

This piece covers the kernel versions still exposed, the crafted-request sequence that ends in a root command, and the vendor updates, port limits, and service changes that block remote use of the bug. It is for operators of Linux file servers, NAS appliances, build farms, and Kubernetes storage nodes that load nfsd version 4.1 or 4.2 and leave TCP port 2049 reachable over the Internet.

01Twelve years inside Linux nfsd

ANSSI's Jérémy Jean found CVE-2026-99362 and submitted a fix in August. OpenSec shared a full remote-root exploit and a patch with the NFSD maintainers in late September, and OpenSec is the firm that named the issue NFS2ROOT. Both deliveries address a heap buffer overflow weakness in the Linux NFS server, nfsd.

The vulnerable code has been present since Linux kernel version 3.16, released in March 2014. That March 2014 release is why the flaw is described as 12 years old. Sergiu Gatlan's account of Jean's August fix and OpenSec's late-September package for the NFSD maintainers is dated November 27, 2026, at 03:06 AM.

02Unpatched kernels on port 2049

NFS2ROOT affects systems with a Linux kernel older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1. The vulnerable service is nfsd version 4.1 or version 4.2, and it must be loaded and running on the host. TCP port 2049 must be reachable over the Internet as well.

Successful exploitation lets remote threat actors without privileges corrupt kernel memory and gain root access to vulnerable Linux servers exposed online. The attacks are low complexity and do not require user interaction. Reaching root this way still depends on nfsd 4.1 or 4.2 listening, with TCP port 2049 reachable over the Internet.

03Crafted requests and a callback

In an NFS2ROOT attack, a remote threat actor without privileges sends maliciously crafted requests to the Linux NFS server. Those requests cause nfsd to write data beyond an allocated memory buffer, the heap buffer overflow behind CVE-2026-99362. The out-of-bounds write lets the attacker read kernel memory on the vulnerable host.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Reading kernel memory is how the attacker bypasses KASLR, which protects kernel memory addresses. The attacker then places a callback that can execute a command in a released memory area. OpenSec documented the path from that memory read to the callback as the NFS2ROOT attack flow.

When the attacker closes the NFS connection, the kernel executes the embedded command with root privileges. That execution gives the attacker root control of the unpatched Linux server. The attacker has no privileges on the host before the kernel runs that command.

04Vendor kernels and nfs.conf

Note: There are no reports of CVE-2026-99362 exploitation in the wild as of November 27, 2026. Security teams should still apply the latest kernel security updates from their Linux distribution vendor immediately to block potential attacks. After the update is installed, reboot the system to ensure the patched kernel is in use.

  1. Apply the vendor kernel Install the latest kernel security updates from the Linux distribution vendor immediately to block potential attacks.
  2. Reboot onto the patch Reboot the system to ensure the patched kernel is in use.
  3. Limit TCP port 2049 If a patch cannot be applied immediately, restrict access to the NFS server over TCP port 2049 to trusted clients or networks.
  4. Stop the nfs-server service If NFS sharing is not required on the system, stop and disable the nfs-server service in /etc/nfs.conf.

"Port 2049 sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes," OpenSec said. "Since 2014, the Linux kernel listening on it has let anyone who can reach it write into kernel memory before logging in." OpenSec added that kernel hardening does not remove the overflow, and that operators should patch every host.

05Host signals without network signatures

NFS2ROOT attacks have no network signatures, according to OpenSec. Security teams can still check for kernel warnings from nfsd4_check_resp_size. They can also check for shells spawned by kernel workers on a file server, which OpenSec lists as a potential sign of an exploitation attempt.

Further signs are bursts of short NFSv4.1 sessions from one source, and kernel oopses with nfsd4_, svc_, or call_usermodehelper* frames. OpenSec named those traces alongside the nfsd4_check_resp_size warnings and the shells spawned by kernel workers. The firm described the whole set as potential signs of exploitation attempts.

NFS2ROOT is the latest in a long series of Linux privilege escalation security flaws disclosed and patched since the start of the year. The flaws named in that series are RefluXFS, CIFSwitch, Dirty Frag, Fragnesia, PinTheft, Copy Fail, Pack2TheRoot, and DirtyDecrypt/DirtyCBC. Each name is a separate privilege-escalation flaw from that same period, with NFS2ROOT the newest.

Frequently asked questions

What is CVE-2026-99362?

CVE-2026-99362, dubbed NFS2ROOT by OpenSec, is a heap buffer overflow in the Linux NFS server, nfsd. It has existed since kernel version 3.16, released in March 2014, and lets a remote attacker gain root.

Which Linux kernels are affected by NFS2ROOT?

Systems are affected when the kernel is older than 6.12.117, 6.18.61, 7.3.2, or 7.4-rc1, nfsd version 4.1 or 4.2 is loaded and running, and TCP port 2049 is reachable over the Internet.

How does an NFS2ROOT attack reach root?

Crafted requests make nfsd write past an allocated buffer so the attacker can read kernel memory, bypass KASLR, and plant a callback in released memory. When the attacker closes the NFS connection, the kernel runs the embedded command as root.

What should administrators do if they cannot patch immediately?

Restrict access to the NFS server over TCP port 2049 to trusted clients or networks. If NFS sharing is not required, stop and disable the nfs-server service in /etc/nfs.conf. When a patch is available, install the distribution vendor's kernel update and reboot so the patched kernel is in use.

Are there network signatures for NFS2ROOT?

OpenSec says the attacks have no network signatures. Teams can still look for nfsd4_check_resp_size kernel warnings, shells spawned by kernel workers, bursts of short NFSv4.1 sessions from one source, and kernel oopses with nfsd4_, svc_, or call_usermodehelper frames.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →