The researchers emphasize that the bug survived twelve years of refactors, static analysis passes, syzkaller campaigns, and at least two dedicated audits of nfsd. They argue this proves that fuzzing and conventional static analysis have systematic blind spots around deprecated-but-still-enabled protocol paths, which is why they had to build a custom differential checker to find it.
They point out NFSv2 was deprecated in 2003 yet remains enabled by default on ~340,000 internet-reachable Linux hosts, including NAS appliances, academic clusters, and a major cloud provider's managed file-storage backplane. Their position is that the severity here flows less from the C bug itself and more from the industry's tolerance for shipping dead protocol code hot in the kernel.
They highlight that the vulnerability was introduced by commit 8154ef2715f3 — a cleanup that moved bounds-checking from the dispatcher into per-op handlers, and the NFSv2 handler was simply forgotten. The implicit argument is that 'harmless' refactors which redistribute safety invariants deserve the same scrutiny as new features, because a single missed call site becomes a decade-long root hole.
The researchers frame the methodology — a custom differential checker comparing kernel behavior against a reference — as the real contribution of the writeup, not the exploit itself. Their position is that this approach found what a decade of fuzzing and static analysis missed, and should be adopted more broadly for kernel-adjacent code where a reference spec exists.
Researchers at opensec.in disclosed CVE-2026-99362, dubbed *nfs2root*, a pre-authentication remote code execution bug in the Linux kernel's in-kernel NFS server (`nfsd`). The flaw lives in the NFSv2 `WRITE` path, specifically in how `nfsd_vfs_write()` handled a malformed `offset` field combined with an undersized `count` on an open file handle obtained via a crafted `LOOKUP`. The result is a bounded heap overflow in kernel context that the researchers chain into a full ROP-to-`modprobe_path` overwrite, yielding root on the host without any credentials.
The bug was introduced in commit `8154ef2715f3` in November 2013 and survived twelve years of refactors, static analysis passes, syzkaller campaigns, and at least two separate audits of the nfsd subsystem. The commit that introduced it was a cleanup — moving bounds-checking from the dispatcher into the per-op handlers — and the NFSv2 handler was the one that got forgotten. NFSv2 was deprecated in 2003. It is also, per the researchers' Shodan sweep, still enabled by default on roughly 340,000 internet-reachable Linux hosts, including a non-trivial number of NAS appliances, academic clusters, and — awkwardly — one major cloud provider's managed file-storage backplane (unnamed in the writeup, but the fingerprints in the appendix are hard to misread).
The fix landed in mainline as `d4c91e7a2b1f` and has been backported to 6.11.8, 6.6.63 LTS, 6.1.119 LTS, and 5.15.172 LTS. Distros started shipping updated packages within 48 hours of the embargo lifting: Debian, Ubuntu, RHEL, SUSE, and Amazon Linux all have advisories out. Alpine and a handful of smaller distros were still behind at the time of writing.
The technical details are interesting, but the real story is the discovery methodology, and it deserves attention from anyone who maintains kernel-adjacent code. The researchers found this bug not with a fuzzer but by writing a custom differential checker that compared the bounds-checking invariants asserted in the NFSv3 and NFSv4 handlers against what NFSv2 actually did. Every other handler had picked up the post-2013 invariant. NFSv2 hadn't. That's it. That's the bug. A twelve-year-old pre-auth root, found in an afternoon, by someone who asked "are these three code paths doing the same checks?"
This is the second high-impact Linux kernel bug in eighteen months found by comparing sibling implementations rather than by fuzzing one of them in isolation. The first was the io_uring poll-cancel issue in early 2025. Both suggest that the kernel's defense-in-depth has gotten good enough at catching *novel* bug classes that the remaining long-tail bugs are overwhelmingly *inconsistency* bugs — places where one of N parallel implementations drifted from the rest. Fuzzers aren't great at this, because a fuzzer run against NFSv2 in isolation sees the NFSv2 bounds-check and considers it the ground truth. Differential analysis against the siblings is what breaks the symmetry.
The second thing worth noticing is that NFSv2 should not have been in the attack surface at all. RFC 1813 (NFSv3) shipped in 1995; v4 shipped in 2000; v2 has been formally deprecated for 23 years and has no production use case anyone can defend with a straight face. The reason it's still enabled by default in `nfsd` is a mix of ABI conservatism ("what if someone depends on it") and pure momentum. The researchers point out, correctly, that if NFSv2 had been behind a `CONFIG_NFSD_V2` kconfig that defaulted to `n` in 2015, this CVE would have affected almost nobody. The lesson is one the OpenSSH maintainers learned the hard way around SSHv1: deprecation without removal is a liability that compounds silently.
Community reaction has been less panicked than you'd expect for a pre-auth kernel RCE, and the reason is interesting. Most modern deployments either don't expose nfsd to untrusted networks at all, or they front it with Kerberos (`sec=krb5`), which the exploit doesn't bypass. The people genuinely in trouble are the ones running `sec=sys` NFS exports over VPN or VLAN-segmented networks and assuming the segmentation is enough. Lateral movement from a compromised laptop to the NFS server used to be a credential problem; as of this week it's a packet problem.
Three concrete things to do today, in order of effort.
First, patch. If you're on a mainstream distro, `apt upgrade` / `dnf update` and reboot. The fix is a two-line change plus a selftest; the backport risk is essentially zero. If you're on a kernel you build yourself, pull the fix commit — it cherry-picks cleanly back to 5.10.
Second, if you can't patch in the next 24 hours, disable NFSv2. In `/etc/nfs.conf` set `vers2=n` under `[nfsd]`, or remove any `vers=2` entries from `/etc/exports` and restart `nfs-server`. You can confirm with `rpcinfo -p localhost | grep nfs` — you want to see 3 and 4 but not 2. Clients that still need v2 in 2026 are almost certainly embedded appliances you should be budgeting to replace anyway, not production dependencies.
Third, and this is the one most teams will skip: audit your perimeter for port 2049 exposure. The researchers found 340k internet-reachable hosts. If one of them is yours, you have a configuration problem that predates this CVE and will outlast it. NFS over the public internet without `sec=krb5` has been a bad idea for a decade; this bug is just the latest reminder. Add a firewall rule, or move the export behind a WireGuard tunnel, or — if you're on a cloud provider — check that your security group isn't accidentally 0.0.0.0/0 on 2049 the way a surprising number of them are.
One thing *not* to do: don't rush to rewrite nfsd in a memory-safe language because of this. The bug wasn't a memory-safety bug in the sense Rust would have caught — the overflow happens because the `count` value was trusted after the handler decided it had validated it. A Rust rewrite with the same logic error would have the same bug. The fix is the invariant, not the language.
The interesting question isn't whether there are more of these bugs — there obviously are — but whether the kernel community adopts differential analysis as a first-class technique the way it adopted syzkaller a decade ago. The tooling exists; what's missing is the cultural expectation that every protocol with sibling implementations gets a cross-version invariant checker in CI. Expect two or three more CVEs of this shape to land in 2027 before that becomes standard practice, and expect at least one of them to be in a subsystem you thought was boring.
yeet can actually patch this via its XDP L7 programmable firewallhttps://github.com/yeet-src/pfwHere is the specific rule. I just added and confirmed it. (can see the CI).https://github.com/yeet-src/pfw-rules/blob/53f78fc5823354f4a...just pull the re
It really sounds like this is only NFS 4.1 and 4.2 and up(?). So my mitigation for right now (on distros that are out of support re: kernel) is simply to disable 4.1 and 4.2 protocol like the below (turn nfs-server off first), $ echo "-4.1 -4.2" | sudo tee /proc/fs/nfsd/
no poc posted
Thankfully no one assumed NFS secure for the public internet anyway so this should be minimally impactful. Also looks like it was patched upstream months ago.Still, just another example of why C code can’t be exposed to the internet.
Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.
I run my NFSv4 server behind spiped, so I think I'm safe here?