NewsCrawler.org

Pre-auth remote root bug in the Linux kernel's NFS server, present since 2014 (CVE-2026-99362)

NFS2ROOT title art for CVE-2026-99362: the Linux penguin beside an nfsd port 2049 badge and a root uid=0 marker
Diagram of the NFS2ROOT attack path: an attacker on the network sends NFSv4.1 requests to tcp/2049 on a Linux server, the in-kernel nfsd overflows its reply cache, and the kernel ends up running a root shell
Two terminal windows: the victim console shows a kernel WARNING from nfsd4_check_resp_size while the attacker window shows the exploit leaking kernel memory
Diagram of the root cause: a SEQUENCE reply is copied into a zero-length per-slot reply cache, overflowing into the neighbouring kmalloc-96 heap object
Image: Reddit

A pre-auth[1] heap overflow[2] in the NFS server (nfsd) of the Linux kernel is tracked as CVE-2026-99362 and scored 9.8 (Critical). It affects any Linux host that serves NFSv4.1 or 4.2, the default, on a reachable tcp/2049, and the code has been in place since Linux 3.16 in 2014.

A client can shrink its reply cache to zero bytes and then make the server copy an 80-byte reply into it. 61 of those bytes land past the end of a kernel heap object, and the client chooses 40 of them. Chained with further requests, one TCP connection gives a root shell without any login.

OpenSec's Antara, its own white-box harness, found the bug, scored it, and built the root-shell exploit without a human in the loop. Jérémy Jean of ANSSI found it independently and wrote the upstream fix. The bug was reported on 22 September 2026 and published with fixes on 20 November. Fixed kernels are 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Until a host is patched, the advice is to block tcp/2049 with a firewall or turn off NFSv4.1 and 4.2, which removes some 4.2 features.

Read the original opensec.inDiscussion

Primary sources and details

Sources

Published: First seen: Читать по-русски

Open as a page