Patch available Security news
NFS2ROOT (CVE-2026-99362): a flaw in the Linux kernel NFS server can give remote attackers root
The NFS server built into the Linux kernel (nfsd) has carried a bug since version 3.16 in 2014 that lets a network client write past the end of a kernel memory buffer. The NVD record published on 19 November 2026 scores it CVSS 9.8. OpenSec researchers named it NFS2ROOT and, according to BleepingComputer, hold a working remote-root exploit they have not released. Fixed kernels are available; as of 27 November Ubuntu had not shipped a fix for its supported releases. No exploitation in the wild is known.
Key points
- CVE-2026-99362: an NFSv4.1+ client can negotiate a reply cache so small that nfsd later writes past the end of a kernel buffer (slab out-of-bounds).
- NVD lists CVSS 9.8 (network, no authentication, no user interaction). The bug has been in the kernel since 3.16 (2014).
- Fixed in 7.4-rc1, 7.3.2, 6.18.61, 6.12.117, 6.6.163, 6.1.193, 5.15.226 and 5.10.275. Debian has fixes for bookworm and trixie; Ubuntu had none for xenial through noble as of 27 November.
- According to BleepingComputer, Jérémy Jean of France's ANSSI found the bug; OpenSec built a remote-root exploit and shared it only with the nfsd maintainers.
Vulnerabilities: CVE-2026-99362
What happened
The Linux kernel CVE team published CVE-2026-99362 on 19 November 2026 for a flaw in the in-kernel NFS server (nfsd). According to NVD, a remote client can trigger an out-of-bounds write in kernel memory. The record scores it CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), and Ubuntu uses the same score.
The bug got wider attention on 27 November, when OpenSec published an analysis calling it NFS2ROOT, as reported by BleepingComputer. According to the same report, Jérémy Jean of the French cybersecurity agency ANSSI had already submitted a fix in August. OpenSec says it has a fully working remote-root exploit, which it handed to the nfsd maintainers in late September. No public exploit or in-the-wild exploitation is known, and the CVE is not in the CISA KEV catalog (version 2026.11.25).
Technical details
- Component: the kernel NFS server,
fs/nfsd/nfs4state.c, NFSv4.1+ sessions (the SEQUENCE operation and the per-slot reply cache). - Bug class: when creating a session, a client can negotiate a cached-reply limit so small that the slot buffer ends up zero bytes long. A crafted COMPOUND request then makes the server copy its reply past the end of that buffer (a slab out-of-bounds write that KASAN kernels report).
- Fix: before accepting the slot, the server now checks that the SEQUENCE result plus room for the next operation's error status fit within the negotiated limit.
- Origin: the bug came in with a commit in 3.16 (2014), so it sat in the kernel for more than twelve years.
- Preconditions: nfsd running with NFSv4.1 or 4.2 and TCP port 2049 reachable. Per NVD, no authentication and no user interaction are needed.
- Impact: kernel memory corruption; according to OpenSec (via BleepingComputer), up to code execution as root.
We do not publish exploitation details.
Who is affected
- Servers running the in-kernel NFS server with NFSv4.1/4.2 enabled (
/proc/fs/nfsd/versionsshows which versions are offered). Typically file servers, Linux-based NAS boxes, virtualization storage and compute clusters. - Vulnerable kernels: from 3.16 up to the fixed releases. NVD lists fixes in 7.3.2, 6.18.61, 6.12.117, 6.6.163, 6.1.193, 5.15.226, 5.10.275 and 7.4-rc1.
- Debian (tracker, 27 November): fixed in trixie (6.12.117-1), in bookworm via the security archive (6.1.192-3, DLA-4942-1), and in the linux-6.12 package (DLA-4927-1).
- Ubuntu (27 November): xenial, bionic, focal, jammy and noble are marked "needed"; no fixed package yet.
- Not affected: machines that don't run the NFS server (NFS clients only) and user-space NFS servers such as NFS-Ganesha – check those against their own vendor guidance.
How to tell if you were compromised
No official indicators have been published. According to OpenSec, as quoted by BleepingComputer, exploitation attempts may show up as kernel warnings mentioning nfsd4_check_resp_size and unexpected shells spawned by kernel threads. KASAN-enabled kernels log a slab-out-of-bounds report in nfsd. Check the kernel log and look for processes whose parent is the kernel thread daemon (kthreadd, PID 2):
journalctl -k | grep -iE 'nfsd4_check_resp_size|slab-out-of-bounds'
ps -eo pid,ppid,user,cmd | awk '$2 == 2 && $4 !~ /^\[/'
First, confirm whether the server is exposed at all – whether nfsd is running, which NFS versions it offers and who can reach port 2049:
uname -r
systemctl is-active nfs-server
cat /proc/fs/nfsd/versions
ss -tln 'sport = :2049'
What to do
- Install your distribution's fixed kernel (or an upstream release from the list above) and reboot. Live patching only helps if your vendor ships a livepatch for this CVE.
- On Ubuntu until a fix ships, and anywhere you can't reboot right away, firewall TCP port 2049 so only trusted client addresses can reach it. NFS should never face the internet.
- Don't need the NFS server? Turn it off:
systemctl disable --now nfs-server. - Prioritize servers reachable from the internet or from large shared networks (campus, hosting, labs).
- After patching, confirm with
uname -rthat the new kernel is running and review the logs as described above.
You can break down the CVSS vector in our CVSS calculator.
Timeline
FAQ
I only mount NFS shares as a client. Am I affected?
According to the NVD description, the bug is in the server side (nfsd, fs/nfsd/nfs4state.c). A machine that only mounts shares and does not run the NFS server is not exposed to this flaw. Update the kernel anyway – the fix ships in the regular packages.
Is it enough that my NFS shares aren't exposed to the internet?
It cuts the risk a lot, but it isn't enough. An attacker who takes over any machine with access to port 2049 – through phishing or another bug – can exploit it from inside. Restricting the port is a stopgap, not a substitute for patching.
Would disabling NFSv4.1 and 4.2 and keeping only NFSv3 help?
The bug lives in the session code (the SEQUENCE operation) introduced with NFSv4.1. However, neither the kernel developers nor the researchers list disabling those versions as a mitigation, and we have not verified it. The reliable options are a fixed kernel, restricting access to port 2049, or turning the NFS server off.
Sources
Spotted a mistake? Let us know and we will correct it openly.