hn.today

Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server

opensec.in148 points62 comments
Screenshot of Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server

CVE-2026-99362, dubbed NFS2ROOT, is a critical pre-authentication heap overflow in the Linux kernel’s in-kernel NFS server. A remote attacker who can reach TCP port 2049 on a host serving NFSv4.1 or 4.2 can trigger it with a single connection, without credentials or user interaction. The flaw dates to Linux 3.16 in 2014. In NFSv4.1, clients set the size of a per-session-slot reply cache; the server can be induced to shrink that buffer to zero, then copy a full SEQUENCE reply into it. The resulting write extends 61 bytes beyond the heap object, with some overflowed content controlled by the client.

The demonstrated exploit chains the overflow into remote root: it corrupts adjacent bookkeeping, leaks kernel memory to defeat address randomization, frees a chosen object, and replaces it with a forged callback that runs when the connection closes. OpenSec reports that its Antara system built and executed this chain automatically; an independent researcher, Jérémy Jean of ANSSI, also found the issue and supplied the upstream fix. Patched releases are Linux 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1; affected systems should be updated and rebooted. Until then, restrict port 2049 to trusted storage networks or disable NFSv4.1 and 4.2. Possible indicators include nfsd kernel warnings or oopses, kernel-worker shell activity, and bursts of short NFSv4.1 sessions.

Read on opensec.in62 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

Defang Security Incident

Defang Security Incident

An attacker compromised Defang’s build system on November 12, copied production credentials, and downloaded its main database; exposed data included portal users’ names, email addresses, and account details. Defang replaced the credentials and notified affected users, while urging users of its GitHub App to check their repositories and cloud accounts. (defang.io)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.