# 🔒 Linux NFS server flaw allows root access without login; fixed kernels are out

All Today · published 2026-11-25T06:30:00Z · https://all-today.com/news/c451826a-89a0-4d2b-a604-78763e7dfcf1?lang=en

![NFS2ROOT title art with the Linux penguin, an nfsd port 2049 badge and a root marker](https://img.all-today.com/d/f52891daa1124a77a76c821d36c99cfc/11Jb_5Hi8YOn9bECzEg-lHCaxttVwRPur_xOTGk-asE.jpg)

- 🔒 CVE-2026-99362 in the kernel NFS server: remote attack without login, up to a root shell, says OpenSec
- 📅 The bug has been in Linux since version 3.16 (2014)
- 🛠️ Fixed in 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1
- 🛡️ Exposed: NFSv4.1/4.2 with TCP port 2049 reachable
- ⚠️ Patch and reboot now; until then, firewall port 2049

🔒 A flaw in the Linux kernel's NFS server (nfsd) lets an attacker overwrite kernel memory without logging in and turn that into a root shell on the server, according to security company [OpenSec](https://opensec.in/blog/nfs2root-cve-2026-99362). OpenSec rates CVE-2026-99362 at 9.8 out of 10 (critical). By the company's account, Linux hosts are exposed if they serve NFSv4.1 or 4.2 (the default) and their TCP port 2049 can be reached, for example file servers, NAS appliances, build farms or Kubernetes storage nodes. The bug is about twelve years old. 🛠️ Fixed kernels are available: 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Users of distribution kernels should install the update that lists the CVE number and reboot.

🧠 **Where the bug sits.** The NFS server runs inside the kernel and parses network input before it knows who sent it. In NFSv4.1, each session slot keeps its last reply so that a retried request is answered only once. The client decides how large that cache is. If it picks the minimum, every slot's buffer is zero bytes.

The function nfsd4_sequence() shrinks the reply buffer to that limit before it accepts the slot. If the request's tag is padded so that space runs out right after the SEQUENCE opcode, encoding stops without flagging an error. The server believes the operation succeeded and copies the whole reply into a buffer with no room. OpenSec says 80 bytes are copied, 61 of them past the end of the memory object and 40 of them chosen by the attacker.

⛓️ **From overflow to takeover.** OpenSec describes a chain of ordinary NFS requests: the write damages the neighbouring slot's bookkeeping, a replayed request returns 3.8 KB of kernel memory including a clue to the randomised kernel address layout, and the kernel is then made to free an object of the attacker's choosing. That memory is refilled with a fake callback which, when the connection is dropped, runs /bin/sh as root. The company keeps the exploit private. It says kernel hardening does not remove the overflow.

🤖 **Who found it.** OpenSec says its analysis tool Antara flagged the code path and built the attack up to the root shell on its own, with no human in the loop. The company sells that tool, and the sources read here contain no independent confirmation of this account. Jérémy Jean of ANSSI, the French cybersecurity agency, found the bug independently and wrote the upstream fix. OpenSec says it reported the flaw on 22 September 2026 with the full exploit and a patch; the CVE and fixes were published on 20 November.

📦 **Debian status.** The [Debian security tracker](https://security-tracker.debian.org/tracker/CVE-2026-99362) lists the linux-6.12 package in version 6.12.117-1~deb12u1 for Bookworm as fixed (DLA-4927-1). The correction checks that the reply fits the negotiated limit before the slot is taken.

🔍 **Checking and detecting.** uname -r shows the kernel version, lsmod shows whether nfsd is loaded, and /proc/fs/nfsd/versions lists the active protocol versions. According to OpenSec there is no network signature because the attack consists of valid NFS. Warning signs are kernel warnings from nfsd4_check_resp_size (on every attempt), crashes involving nfsd or svc functions, shells spawned by kernel workers and bursts of short NFSv4.1 sessions from one source.

## Sources

- [Debian security tracker: CVE-2026-99362](https://security-tracker.debian.org/tracker/CVE-2026-99362)
- [NFS2ROOT (CVE-2026-99362): pre-auth root in Linux nfsd](https://opensec.in/blog/nfs2root-cve-2026-99362)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
