12-Year NFS Flaw Enables Unauthenticated Remote Root
Original source
Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server
Hacker News →A heap overflow in the Linux kernel’s NFS server enables unauthenticated attackers with network access to port 2049 to achieve immediate root privileges. The vulnerability affects NFSv4.1 and 4.2 protocol handling, where clients can shrink the reply cache to zero bytes and subsequently write data past the allocated buffer boundary. The overflow permits 61 bytes to be written outside a kernel heap object, with 40 bytes fully attacker-controlled.
The flaw has persisted since Linux 3.16 in 2014, affecting 12 years of kernel releases across LTS versions, distribution kernels, and appliance firmware. It impacts enterprise file servers, NAS devices, Kubernetes storage nodes, and any host exposing NFS. An automated security analysis tool independently discovered the vulnerability and constructed a complete exploit chain escalating the heap corruption to root shell execution. An ANSSI researcher simultaneously found the same issue and contributed the upstream fix.
Administrators must patch to kernels 6.12.117, 6.18.61, 7.3.2 or later and reboot. Until then, firewall port 2049 or disable NFSv4.1 and 4.2. Detection is difficult since the attack uses legitimate NFS traffic without network signatures; defenders should monitor for kernel warnings from the reply-cache subsystem and suspicious process spawning by kernel worker threads.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.