Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

OpenSec's title graphic for NFS2ROOT, CVE-2026-99362, showing the Linux penguin beside the label nfsd listening on port 2049 and a marker reading uid=0.
Image: OpenSec (fair use), title graphic for its NFS2ROOT advisory.

Response

OpenSec Turns a 12-Year-Old Linux Kernel NFS Server Flaw Into a Pre-Auth Remote Root, and Says Any Host Running nfsd on Port 2049 Should Patch and Reboot Now

The heap overflow, CVE-2026-99362, has sat in the in-kernel NFS server since 2014 and needs no login to reach. There are no network signatures, so defenders are left with host-side signs: kernel warnings from nfsd, bursts of short NFSv4.1 sessions, and shells spawned by kernel workers on a file server.

Noah Park, ResponseAustin6 min read

AUSTIN - A flaw that has been sitting in the Linux kernel's built-in NFS server since 2014 can hand a remote attacker root on an unpatched file server without any credentials, the security firm OpenSec said this week, publishing a full working exploit and urging every organization that runs nfsd on an internet-reachable port to patch and reboot immediately.

The vulnerability, tracked as CVE-2026-99362 and nicknamed NFS2ROOT, is a pre-authentication heap buffer overflow in nfsd, the NFS server that runs inside the kernel rather than as a user-space process. Because that code parses network input before it knows who is talking to it, a single TCP connection to port 2049 is enough to corrupt kernel memory. Chained together, OpenSec said, the primitives give a remote root shell.

The bug was published Nov. 20 with fixes. It was reported upstream on Aug. 17 by Jeremy Jean of the French agency ANSSI, who sent a patch with a KASAN report. OpenSec said its own research tool flagged the same code on Sep. 21, scored it 9.8 and built it into a working root exploit.

One connection, no login

The NFS server answers before authentication, which is what makes the flaw so serious. OpenSec rated it 9.8 on the CVSS scale, remotely exploitable at low complexity with no privileges and no user interaction.

OpenSec diagram of the NFS2ROOT attack path: an unauthenticated attacker sends crafted NFSv4.1 SEQUENCE requests over port 2049 to Linux file servers, NAS appliances and cluster storage nodes running kernel nfsd, each ending in remote root with uid=0.
Image: OpenSec (fair use), the NFS2ROOT attack path against Linux hosts running nfsd.

NFS2ROOT affects systems with a Linux kernel older than 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 when nfsd is loaded and serving NFSv4.1 or 4.2, the default, and TCP port 2049 is reachable. OpenSec was blunt about where that leaves exposed: port 2049, it said, sits open on file servers, NAS appliances, build farms and Kubernetes storage nodes, and kernel hardening does not remove the overflow.

The bug has existed since Linux 3.16, released in March 2014, so long-term support, distribution and appliance kernels all carry it. As of publication there were no reports of exploitation in the wild, but a complete exploit is now public.

How the overflow works

The flaw lives in how an NFSv4.1 session caches its replies. Each session slot stores its last reply so that a retried request is answered exactly once, and the client decides how large that cache is. OpenSec's exploit shrinks the per-slot buffer to the minimum so every slot has room for nothing, then pads the request so the server fills the buffer right after the SEQUENCE operation and the encoder stops without flagging an error.

OpenSec diagram of the NFS2ROOT root cause: an unauthenticated client asks nfsd to cache a SEQUENCE reply in a session slot whose buffer size was fixed at setup, and the encoded reply runs past the end of the buffer into a neighboring kernel object.
Image: OpenSec (fair use), the session reply-cache overflow behind NFS2ROOT.

The server then believes the SEQUENCE succeeded and copies the whole reply, headers and tag included, into a buffer with no room for it. The upstream fix's KASAN report shows 80 bytes copied, 61 of them past the end of the heap object and 40 of them chosen by the client. That client-controlled write into the kernel heap is what OpenSec chained into a defeat of kernel address randomization and, finally, code execution.

Patch, reboot, and firewall port 2049

The fix is to update the kernel to 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 or later and reboot so the patched kernel is actually running. Until a host can be patched, OpenSec and the researchers advise restricting TCP port 2049 to trusted clients or networks, and disabling the nfs-server service on any host that does not need to share files.

OpenSec exploit recording showing a victim console tainting and printing uid=0(root) while an unauthenticated off-box client drives the NFS2ROOT chain to confirmed remote root code execution.
Image: OpenSec (fair use), the end-to-end NFS2ROOT run reaching root.

What operations teams should hunt

NFS2ROOT leaves no network signature, OpenSec said, because the exploit rides inside ordinary NFSv4.1 traffic. That pushes detection onto the host. The firm listed concrete signs defenders can hunt for:

  • Kernel warnings from nfsd4_check_resp_size, which the server logs as the out-of-bounds copy happens.
  • Shells or processes spawned by kernel workers on a file server, where a monitoring or storage box has no reason to launch a shell.
  • Bursts of short NFSv4.1 sessions from a single source address, a sign of the repeated session and slot setup the exploit needs.
  • Kernel oopses whose call traces carry nfsd4_*, svc_* or call_usermodehelper* frames.

For responders, the immediate steps are to inventory which hosts expose port 2049, confirm the kernel version against the fixed releases, patch and reboot, and treat any file server that cannot be patched quickly as a candidate for isolation. A compromised NFS host is rarely the final target. It usually holds the data other systems trust, which makes it a strong pivot once an attacker has root.

About the Author

Noah Park

Noah Park covers incident response and vulnerability management for SOCtember from Austin.

Related stories

Response desk