Linux kernel NFS server pre-auth heap overflow allows root (NFS2ROOT)
CVE-2026-99362
Linux file-sharing servers can be taken over without any login!
- CVE
- CVE-2026-99362 (opens in a new tab)
- Score
- CVSS 9.8
- First seen
Mitigation
Update your kernel line to its fixed version and reboot. Find each line's fixed version in the list below. Until then, set vers4.1=n and vers4.2=n under [nfsd] in /etc/nfs.conf and restart nfs-server, or allow only trusted ranges to tcp/2049 through a firewall.
Fixed version by product
- Linux Kernel 5.10
- 5.10.275 or later
- Linux Kernel 5.15
- 5.15.226 or later
- Linux Kernel 6.1
- 6.1.193 or later
- Linux Kernel 6.6
- 6.6.163 or later
- Linux Kernel 6.12
- 6.12.117 or later
- Linux Kernel 6.18
- 6.18.61 or later
- Linux Kernel 7.3
- 7.3.2 or later
2 moreShow less
Can't update yet?
Add this line to the config file:
vers4.1=n vers4.2=n
A wrong setting can stop the service or lock you out. Check the source links below first.
Then restart nfs-server.
Summary
A heap out-of-bounds write in the Linux kernel's NFS server (nfsd) lets an unauthenticated remote attacker overwrite kernel memory and gain root. Kernels from 3.16 up to their fixed versions are affected.
Affected when
- In-kernel NFS server (nfsd) loaded
- NFSv4.1 or 4.2 enabled (the default)
- tcp/2049 reachable from addresses other than loopback
- Kernel from 3.16 up to before its fixed version, with no distribution backport
Incidents by product: Linux
Other recent Incidents of Linux
Distribution packages (23) (every link below opens in a new tab)
- Debian 13 (trixie)linux · fixed in 6.12.117-1
- Debian 12 (bookworm)linux · fixed in 6.1.192-3
- Debian 12 (bookworm)linux-6.12 · fixed in 6.12.117-1~deb12u1
- Ubuntu 26.10linux · not fixed yet
- Ubuntu 26.04 LTSlinux · not fixed yet
- Ubuntu 24.04 LTSlinux · not fixed yet
- Ubuntu 24.04 LTSlinux-hwe-6.11 · will not be fixed
- Ubuntu 24.04 LTSlinux-hwe-6.14 · will not be fixed
- Ubuntu 24.04 LTSlinux-hwe-6.17 · will not be fixed
- Ubuntu 24.04 LTSlinux-hwe-7.0 · not fixed yet
- Ubuntu 22.04 LTSlinux · not fixed yet
- Ubuntu 22.04 LTSlinux-hwe-5.19 · will not be fixed
- Ubuntu 22.04 LTSlinux-hwe-6.2 · will not be fixed
- Ubuntu 22.04 LTSlinux-hwe-6.5 · will not be fixed
- Ubuntu 22.04 LTSlinux-hwe-6.8 · not fixed yet
- RHEL 9kernel · not fixed yet
- RHEL 9kernel-rt · not fixed yet
- RHEL 8kernel · fixed in 4.18.0-553.190.1.el8_10
- RHEL 8kernel-rt · fixed in 4.18.0-553.190.1.rt7.531.el8_10
- SLES 16.1kernel-source · not fixed yet
- SLES 16.0kernel-source · not fixed yet
- SLES 15 SP7kernel-default · not fixed yet
- openSUSE Leap 16.0kernel-source · not fixed yet
Sources: Debian Security Tracker · Ubuntu Security Notices (Canonical) (CC BY-SA 4.0) · Red Hat Security Data (CC BY 4.0) · SUSE CSAF VEX (CC BY 4.0)
Read the write-up · opensec.in (opens in a new tab)
- Write-up: opensec.in (opens in a new tab)
- Write-up: New NFS2ROOT Linux flaw can let attackers gain root privileges (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
Discussion (4): news.ycombinator.com, seclists.org
- Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server (opens in a new tab)
- CVE-2026-99362: Pre-auth heap overflow in the Linux NFS server "NFS2ROOT" (opens in a new tab)
- New NFS2ROOT Linux flaw can let attackers gain root privileges (opens in a new tab)
- Show HN: NFS2Root exploit – CVE-2026-99362 (opens in a new tab)
- Newsletter: Risky Bulletin: Hackers breach Erlang and Elixir package manager (opens in a new tab)
- Newsletter: Srsly Risky Biz: Musk's Good Business Is Bad Politics (opens in a new tab)
- KISA notice: KISA 보호나라: Linux 제품 보안 업데이트 권고 (opens in a new tab)
Repository (8): github.com
- ashrafzaryouh/CVE-2026-99362 (opens in a new tab)
- suominen/CVE-2026-99362 (opens in a new tab)
- seguridadentrerios/CVE-2026-99362 (opens in a new tab)
- ansonhsu-ai/proxmox-nfs2root-cve-2026-99362-ste (opens in a new tab)
- Quaerendir/cve-2026-99362-audit (opens in a new tab)
- nfs2root (opens in a new tab)
- sirakshar-max/cve-2026-99362 (opens in a new tab)
- CaptainAI-Labs/CVE-2026-99362 (opens in a new tab)