RETRO

News · AI and code

NFS2ROOT: a twelve-year-old hole in Linux's NFS server

A twelve-year-old bug. CVE-2026-99362, in nfsd (the Linux kernel's own NFS server), scored 9.8 out of 10 in the record kernel.org published on 19 November. Red Hat gives it 9.4. The security firm OpenSec has named the hole "NFS2ROOT". The trouble is in the SEQUENCE replies of NFSv4.1 sessions. The client agrees on a small cache size. The server then writes the reply without checking whether it fits in that buffer, and the buffer overflows (out-of-bounds write: writing outside the space that was set aside). No authentication is needed. The bug went into the code in 2014, in the 3.16 days.

According to secondary sources, Jérémy Jean of ANSSI reported the bug in August and sent a fix. On 21 September OpenSec also passed the maintainers a patch along with a working remote root attack (an exploit). The code has not been published, and there are no reports of it being used in the wild. The fix is in 7.4-rc1, 7.3.2, 6.18.61 and 6.12.117. It has also been carried back to the 6.6, 6.1, 5.15 and 5.10 branches. Patches are out for Debian 12, Debian 13 and RHEL 8.10. RHEL 9 and 10, along with Ubuntu 24.04 and 26.04, were still waiting as of 27 November. My advice to those still waiting: open TCP port 2049 only to machines you trust. If you don't use NFS, shut nfs-server down.

Sources

Contents · Issue 03 · November 2026