Am I affected?
You’re exposed if all of these are true:
- The machine runs the in-kernel Linux NFS server (nfsd). NFS clients are not the issue, and user-space servers like NFS-Ganesha are a different codebase.
- NFSv4.1 or NFSv4.2 is enabled. On most current distributions, it is by default.
- Something untrusted can reach TCP port 2049 on it.
- The kernel doesn’t yet include the fix.
NAS boxes, Kubernetes storage nodes and home-lab file servers are the usual suspects.
Quick checks
# Is the kernel NFS server running, and which versions does it serve? cat /proc/fs/nfsd/versions # look for +4.1 or +4.2 # Is anything listening on 2049? ss -tlnp | grep 2049 # Which kernel is running? uname -r
uname -r alone. Distributions backport fixes into kernels with older-looking version numbers, so check your distribution’s security tracker for CVE-2026-99362 to see whether your exact package is fixed.How to fix it
1. Update the kernel and reboot
According to the kernel CVE record, the fix is in these upstream stable releases and later:
| Branch | Fixed in |
|---|---|
| 7.4 (mainline) | 7.4-rc1 |
| 7.3 | 7.3.2 |
| 6.18 | 6.18.61 |
| 6.12 | 6.12.117 |
| 6.6 | 6.6.163 |
| 6.1 | 6.1.193 |
| 5.15 | 5.15.226 |
| 5.10 | 5.10.275 |
2. If you can’t patch yet
OpenSec and watchTowr both recommend one of these stopgaps:
- Restrict port 2049 to the clients that actually need it, at the host firewall and the network edge. Nothing on the public internet should reach it.
- Turn off NFSv4.1 and 4.2 in the server configuration and restart the NFS service. Check first that your clients can fall back to another version.
# /etc/nfs.conf [nfsd] vers4.1=n vers4.2=n # then sudo systemctl restart nfs-server cat /proc/fs/nfsd/versions # should now show -4.1 -4.2
What’s actually wrong
NFSv4.1 sessions keep a per-session reply cache so the server can replay answers to retried requests. According to OpenSec, a client can shrink that cache to zero bytes and then make the server write a full reply into it. The result is an out-of-bounds write in kernel memory.
That happens before any check on who the client is. watchTowr adds that much of the overwritten data comes back to the client, which can help an attacker map the kernel’s memory layout. OpenSec chained the overflow into a kernel memory leak, a KASLR bypass, an arbitrary free and a root shell on a lab server.
The upstream fix, “nfsd: preflight SEQUENCE replies before accepting a slot”, makes the server check that a reply will fit before it commits to it. A follow-up hardens the NFSv4 encoder.
Who found it
The bug was found twice, independently. Both deserve the credit.
Found the bug and sent the fix upstream on 17 August 2026, with a KASAN report.
He wrote the patches that landed in the kernel. OpenSec’s own write-up credits him for this.
Antara flagged the same reply-cache path on 21 September 2026 and, by OpenSec’s account, built the full root exploit without human help.
OpenSec reported it to the NFS maintainers and security@kernel.org on 22 September with the exploit and a patch. They coined the name NFS2ROOT and published the research on 25 November. Read their write-up.
Thanks also to the NFS server maintainers who reviewed and merged the fix, the Linux kernel CVE team who assigned and published CVE-2026-99362, and watchTowr, whose FAQ added exploitation and mitigation detail.
Timeline
| Date | Event |
|---|---|
| Mar 2014 | Commit 47ee52986472 introduces the bug, released in Linux 3.16. |
| 17 Aug 2026 | Jérémy Jean (ANSSI) sends the fix upstream. |
| 21 Sep 2026 | OpenSec’s Antara independently flags the bug and builds a root exploit. |
| 22 Sep 2026 | OpenSec reports to the NFS maintainers and security@kernel.org. |
| 6–10 Nov 2026 | Fixed stable releases: 6.18.61, 7.3.2, then 6.12.117. |
| 19 Nov 2026 | CVE-2026-99362 published by the kernel CVE team. OpenSec’s page gives 20 November. |
| 23 Nov 2026 | Backports: 6.6.163, 6.1.193, 5.15.226, 5.10.275. |
| 25 Nov 2026 | OpenSec publishes the NFS2ROOT research and a demo video. |
| 26 Nov 2026 | watchTowr, Red Hat and Oracle Linux publish analysis and updates. |
Sources
- NFS2ROOT (CVE-2026-99362): pre-auth root in Linux nfsd — OpenSec Intelligence, original research
- A 12-year-old flaw in Linux’s NFS server hands root to anyone on port 2049 — grep.tips
- Critical NFS2ROOT flaw in Linux kernel NFS server — CommandLinux, summarising watchTowr’s FAQ
- NFS2ROOT: Linux patches a 12-year pre-auth remote root bug in nfsd — BreachNews
- NFS2ROOT, Linux NFS server flaw gives root without a password — fixed-version list and dates
- Critical NFS flaw hands hackers root on NAS and Kubernetes storage nodes — Cybernews