journal

Linux / Security

← All notes

NFS2ROOT CVE-2026-99362: Patch Your Linux NFS Server Now

NFS2ROOT is a pre-auth remote root flaw in the Linux NFS server, CVSS 9.8. Any host that can reach port 2049 can trigger it — no login, no mount. Here is how to check and what to patch.

published

November 29, 2026

reading

4 minutes

field under

Linux / Security

If your server runs the Linux NFS server, check its kernel today. On 19 November 2026 the kernel CVE team published CVE-2026-99362, known as NFS2ROOT — a heap overflow in the in-kernel NFS server, rated CVSS 9.8. A client that can reach TCP port 2049 triggers it during NFSv4.1 session setup, before it has mounted anything or logged in.

The 9.8 is not inflated. OpenSec, who reported the bug, published a video of an unauthenticated client getting a root shell on a Linux NFS server over port 2049 alone. Their exploit code is private, and there were no reports of attacks in the wild as of 26 November — but the fix is public and the mechanism is described, so treat this as a remote root bug and patch.

What the bug is

An NFSv4.1 client opens a session, and each session slot keeps a copy of its last reply so a retried request can be answered again. The client decides how big that cache is, and it may choose zero bytes. A crafted request then makes the server believe a reply succeeded and copy the whole reply into that empty cache. According to OpenSec, that writes 61 bytes past the end of a kernel heap object, 40 of them chosen by the client.

Three details make it serious: no account and no mount are needed — it happens during session setup, before any export is touched; export options do not help — read-only, root_squash and Kerberos all apply later than the bug; and the code has been in the kernel since Linux 3.16 in 2014, with NFSv4.1 and 4.2 enabled by default. The same bug also leaks kernel memory, which reveals where the kernel is loaded — that is what turns the overflow into a aimed root shell.

Am I exposed?

You are exposed if all four are true:

  • Your kernel is older than the fixed release of its branch, with no distribution backport — check with uname -r.
  • The in-kernel NFS server is running — check with lsmod | grep -w nfsd.
  • NFSv4.1 or 4.2 is enabled — cat /proc/fs/nfsd/versions shows +4.1 or +4.2.
  • Port 2049 is reachable by hosts you do not trust — check with ss -ltn 'sport = :2049' plus your firewall rules.

A storage network that only trusted clients can reach narrows who can attack, but anyone on it — or anything compromised on it — can still reach the bug. If the server does not need to serve NFS at all, it is not affected: the bug needs CONFIG_NFSD and CONFIG_NFSD_V4 built in.

Which kernel is fixed?

Your branch Fixed version
5.10 5.10.275
5.15 5.15.226
6.1 6.1.193
6.6 6.6.163
6.12 6.12.117
6.18 6.18.61
7.3 7.3.2

Every maintained long-term branch has a release with the fix. Distribution kernels lag: Debian’s tracker showed trixie fixed at 6.12.117-1 while bookworm’s default 6.1 kernel was still vulnerable on 26 November. Use the distribution update that lists CVE-2026-99362, or the fixed version above for your branch.

What to do

  1. Patch and reboot. Move to the fixed release for your branch, or the distribution update that lists CVE-2026-99362.
  2. If you cannot patch today, close port 2049 to everything except the clients that need it.
  3. Or turn off NFSv4.1 and 4.2 — set vers4.1=n and vers4.2=n in the [nfsd] section of /etc/nfs.conf, then restart the NFS server. This also turns off pNFS and some 4.2 features.
  4. If the device does not need to serve NFS, build the server out — CONFIG_NFSD=n.
  5. Look for attempts. OpenSec reports a kernel warning from nfsd4_check_resp_size on every attempt, successful or not. Oopses with nfsd4_* frames and shells started by kernel workers on a file server are also worth a look.

The short version

NFS2ROOT is a pre-auth heap overflow in the Linux NFS server, CVSS 9.8, in the kernel since 2014. Any host that can reach port 2049 can trigger it — no login, no mount. Patch to the fixed kernel for your branch and reboot.

If you cannot patch today, close port 2049 or turn off NFSv4.1 and 4.2. That is the whole job.

Need help with a server or a WordPress site?

I work on web infrastructure — hosting, DNS, SSL, Cloudflare, backups, and recovery — and I maintain WordPress and WooCommerce sites. Contact me with your kernel version and distribution, and I will check what needs patching.

FAQ

Is NFS2ROOT being exploited in the wild?

No reports of attacks in the wild as of 26 November 2026, and it is not in CISA’s Known Exploited Vulnerabilities catalog. The exploit code is private — that buys time, not safety. Patch anyway.

Does a read-only export or Kerberos protect me?

No. Read-only, root_squash and Kerberos all apply later than the bug, which fires during NFSv4.1 session setup, before any export is touched.

My server is not an NFS server — am I affected?

No, if the in-kernel NFS server is not built or not running. Check with lsmod | grep -w nfsd — if nothing is there, this bug cannot reach you.

Sources: KernelScan — NFS2ROOT (CVE-2026-99362)

CVECVE-2026-99362Linux kernelNFSNFS2ROOTserver security

s

Shishir Molla -- WordPress developer and web technology specialist. Builds and repairs sites, tunes performance, and keeps the infrastructure underneath in working order.