← Back to Blog
Hot TopicOn This Site

NFS2ROOT, CVE-2026-99362 (November 2026): Is Your Linux NFS Server Exposed, and How to Fix It Step by Step

NFS2ROOT (CVE-2026-99362) is a pre-authentication heap overflow in the Linux kernel's NFS server, present since kernel 3.16 and rated 9.8, reachable with one connection to TCP port 2049 on servers offering NFSv4.1 or 4.2. Here is how to tell in two minutes whether you run an NFS server at all, which distributions have fixed kernels (Debian yes, Ubuntu and RHEL not yet as of 28 November), the three stopgaps and what each one breaks, how to look for attempts, and what a startup should do this week.

·10 min read

NFS2ROOT (CVE-2026-99362) is a heap overflow in the Linux kernel's built-in NFS server (nfsd) that an attacker can trigger without logging in, with a single TCP connection to port 2049, on any server that offers NFSv4.1 or NFSv4.2. It has been in the kernel since version 3.16 (2014) and the CVE record rates it 9.8. If you don't run an NFS server, you are not exposed: machines that only mount NFS shares are not affected. If you do, the fix is a patched kernel plus a reboot. Debian has fixed kernels; Ubuntu and Red Hat had not shipped them as of 28 November 2026, so most teams will need a stopgap first: block port 2049 from anything that isn't a trusted client, or turn off NFSv4.1 and 4.2 on the server.

I'm Kunal Vohra, a fractional CTO and a security researcher and cybersecurity advisor. The startups most likely to have an NFS server they've forgotten about are the ones that self-host: a shared volume for a Kubernetes cluster, a backup target, a Proxmox box under a desk, a "temporary" file server for ML datasets. This is the guide I'd hand that team.

What NFS2ROOT is

NFS2ROOT is an out-of-bounds write in how nfsd handles SEQUENCE replies for NFSv4.1 sessions. A client can negotiate the size of the server's reply cache for each session slot down to the minimum, so the slot has no room for its cached data, and the server then writes about 80 bytes into it anyway, roughly 61 of them past the end of the allocated object (that is the analysis Threat Landscape and grep.tips relay from the researchers). The kernel fix is titled "nfsd: preflight SEQUENCE replies before accepting a slot": it checks the reply will fit before accepting the slot.

The facts that matter for prioritising it:

  • Pre-authentication and remote. The session setup operations that reach the bug are accepted before any real identity check, so an attacker needs nothing except network access to TCP 2049.
  • Server only, NFSv4.1 and 4.2 only. NFSv3 and NFSv4.0 do not use sessions and are not affected, according to the analyses I read. Clients are not affected. A user-space NFS server such as NFS-Ganesha is a different code path and out of scope.
  • Old. The bug dates to a 2014 commit that shipped in Linux 3.16, so almost every supported distribution kernel is in range.
  • Scored a little differently. The CVE record (from the kernel CNA) and Ubuntu say 9.8. Red Hat scores it 9.4 on its own vector but still rates it Critical. One analysis reports SUSE at 8.1; I could not open SUSE's page to confirm.
  • A working exploit exists, privately. OpenSec, the firm that published the NFS2ROOT research on 25 November, says it has a private chain that leaks kernel memory, defeats KASLR and gets a root shell. It has not been released or independently verified, and as of 25 to 26 November no vendor or CERT had reported attacks in the wild, and it was not in CISA's Known Exploited Vulnerabilities catalog.

The line I'd put in front of any founder: NFS was designed for trusted networks, and NFS2ROOT is what happens when port 2049 ends up on an untrusted one.

Timeline

  • August 17, 2026: Jérémy Jean of ANSSI, France's national cybersecurity agency, sends a fix upstream.
  • September 21 to 22: OpenSec says its AI-assisted research harness found the same bug independently and reports it to the kernel maintainers.
  • November 6 to 23: fixed stable kernels ship (6.18.61 and 7.3.2 first, the older long-term branches on 23 November).
  • November 19: the kernel CNA publishes CVE-2026-99362.
  • November 25: OpenSec publishes the NFS2ROOT write-up, and coverage follows.

Is this you? The two-minute check

You are only exposed if a machine is running the kernel NFS server and offering NFSv4.1 or 4.2. Run these on every Linux host you suspect might serve files (file servers, backup targets, Kubernetes storage nodes, Proxmox or other hypervisors, NAS boxes built on Linux):

# Is the kernel NFS server loaded and listening?
lsmod | grep -w nfsd
ss -ltn 'sport = :2049'

# Which NFS versions does it offer? Look for +4.1 or +4.2
cat /proc/fs/nfsd/versions

# Which kernel is actually running?
uname -r

If nfsd isn't loaded, nothing listens on 2049 and /proc/fs/nfsd/versions doesn't exist, that host is not exposed to NFS2ROOT. Red Hat notes that a default RHEL install does not run nfsd at all, and the same is true of a typical Ubuntu web or API server.

If it is running, the next question is who can reach port 2049:

  • Cloud VMs: check the security group or firewall rules attached to the instance. Port 2049 open to 0.0.0.0/0 is an emergency; open only to your VPC subnets is a much smaller risk.
  • On-prem and office kit: check whether 2049 is forwarded through the router, or reachable from a guest or flat office network.
  • IPv6: check it separately. Several write-ups point out that a firewall rule written for IPv4 often leaves the IPv6 address wide open.

Two traps:

  • Installed is not running. A fixed kernel package does nothing until you reboot into it.
  • Containers don't help. nfsd runs in the kernel, and containers share the host kernel, so updating a container image fixes nothing. Patch the host or the node.

How to fix NFS2ROOT, step by step

The real fix is a kernel containing the patch, then a reboot. The fixed upstream stable kernels are 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2, plus mainline 7.4-rc1. Distribution status below is as published on 25 to 28 November 2026; check the pages in the sources before you act, because they are moving.

Step 1: Debian

Debian's tracker shows fixed kernels for every supported release: trixie (Debian 13) from 6.12.117-1, bookworm (Debian 12) in the security repository from 6.1.192-3, and the bookworm linux-6.12 backport from 6.12.117-1~deb12u1. Some articles from 25 and 26 November say bookworm's default kernel is still vulnerable; the live tracker has since listed 6.1.192-3 as fixed, so check your installed version rather than the article.

sudo apt update
sudo apt full-upgrade
sudo reboot
# after the reboot
uname -r

Step 2: Ubuntu

As of 28 November, Ubuntu's CVE page lists the main linux package as vulnerable on 16.04 through 24.04 LTS, with fixes in progress for 26.04 LTS (7.0.0-45.45) and 26.10 (7.3.0-12.13). Cloud and other kernel flavours are listed too. There is nothing to install yet, so go straight to the stopgaps in Step 5, and patch the day the fix lands:

# when Ubuntu publishes the fix
sudo apt update && sudo apt full-upgrade
sudo reboot
uname -r

If you have Ubuntu Pro attached, pro fix CVE-2026-99362 will tell you whether a fix is available for that machine.

Step 3: RHEL, Rocky, Alma and other rebuilds

Red Hat rates it Critical but had not published errata when I checked. Its guidance until then is to stop and disable nfs-server if you don't need it, or restrict 2049 to trusted networks. Rebuilds follow Red Hat's kernel, so the same applies. When the errata arrive:

sudo dnf upgrade --refresh kernel
sudo reboot
uname -r

Step 4: SUSE, Proxmox and custom kernels

  • SUSE: reported as mixed, with SLES 16 and Leap 16 not affected and SLES 15 SP7 and older SLE Micro releases pending. I couldn't open SUSE's page, so check it directly.
  • Proxmox VE: I found no Proxmox advisory. One analysis that read Proxmox's kernel changelog says the default 7.0 kernel is fixed in proxmox-kernel-7.0.14-30-pve and the opt-in 7.3 kernel in 7.3.5-1, while the 6.17 kernel is not fixed. Treat that as a lead to confirm in your own changelog, not as confirmation.
  • Custom or vendor kernels (appliances, NAS firmware, embedded): you need one of the stable versions above or a vendor build that includes the fix. For appliances, ask the vendor and firewall 2049 in the meantime.

Step 5: the stopgaps (until you can reboot into a fixed kernel)

Pick based on what you can tolerate breaking.

Option A: firewall port 2049 to trusted clients only. This is the one I'd do first everywhere, patched or not. With ufw on Ubuntu, allow your client subnet first, then deny the rest (adjust 10.0.0.0/24 to your network):

sudo ufw allow from 10.0.0.0/24 to any port 2049 proto tcp
sudo ufw deny 2049/tcp
sudo ufw status numbered

On RHEL-family systems, use a firewalld rich rule limited to your client network. In the cloud, do it at the security group as well, so the host firewall isn't your only layer. Remember IPv6. This doesn't protect you from a compromised machine inside the trusted subnet, which is why it is a stopgap and not a fix.

Option B: turn off NFSv4.1 and 4.2 on the server. The bug is only reachable through v4.1 sessions, so disabling those versions closes the known path. Add this to /etc/nfs.conf (or a file in /etc/nfs.conf.d/):

[nfsd]
vers4.1=n
vers4.2=n

Then restart and confirm:

sudo systemctl restart nfs-server
cat /proc/fs/nfsd/versions   # should now show -4.1 -4.2

Know what it breaks before you do it in production. Clients that pin vers=4.1 or vers=4.2 in their mount options will fail to mount. One vendor's lab test reported that unpinned clients fell back to 4.0, and that shares already mounted over 4.1 returned "Stale file handle" until they were remounted. You also lose 4.1/4.2 features such as pNFS. Plan a short window and remount clients.

Option C: stop the NFS server if you don't need it. If the check above found an NFS server nobody remembers, this is the best answer:

sudo systemctl disable --now nfs-server
sudo systemctl mask nfs-server

Stopping it ends active sessions, so make sure nothing depends on it first.

Step 6: look for attempts

The researchers say exploitation attempts trigger a kernel warning from nfsd4_check_resp_size. Sources disagree on whether it logs every time or only once per boot, so treat a hit as a strong signal and an empty result as weak evidence.

sudo journalctl -k | grep -E 'nfsd4_check_resp_size|nfsd4_' | tail -50

Other signs the analyses list: kernel oopses mentioning nfsd4_ or svc_ functions, shells or processes spawned by kernel worker threads, and bursts of short-lived NFSv4.1 sessions from one address. If you find any of these on a server that was reachable from the internet, treat it as compromised: rebuild it from a known-good image on a fixed kernel and rotate anything it held, rather than patching in place.

What this means for startups

Most early-stage startups don't run NFS servers on purpose. They run them by accident: a Kubernetes NFS provisioner someone installed for ReadWriteMany volumes, a self-hosted GPU box exporting a datasets folder, a backup server, a homelab hypervisor that quietly became production. NFS2ROOT is a good excuse to find those, because the risk is entirely about exposure, and exposure is what an inventory tells you.

Here's what I'd do this week as a CTO:

  1. Find every NFS server. Run the check above across your fleet, including Kubernetes storage nodes and anything self-hosted. Write down which ones exist and why.
  2. Close 2049 at the edge. No NFS server should be reachable from the internet, full stop. Fix security groups and router forwards today, IPv4 and IPv6.
  3. Kill what you don't need. Every unused NFS server gets disabled and masked.
  4. Patch on the vendor's schedule, with reboots planned. Debian now; Ubuntu and RHEL the day their fixes land. If a reboot is scary, that is the real problem to solve: it is the same lesson as the Linux kernel TCP flaw earlier this month.
  5. Prefer managed file storage where it fits. I didn't find any source that discusses managed services such as Amazon EFS or Google Filestore in connection with this bug. My view is that patching the storage layer of a managed service is the provider's job, which is the whole point of paying for it; check their bulletins rather than assuming.

There is a second pattern worth noticing. This bug was found independently by a national agency and by a firm using an AI-assisted harness, a month apart, after sitting in the kernel for twelve years. That is the same trend I wrote about after OpenAI's 948 Linux root exploits: old, network-reachable code is being audited by machines now, and the time between "bug found" and "exploit exists" is shrinking. My startup security checklist puts asset inventory and patching near the top for exactly that reason.

If nobody on your team owns servers, firewalls and patching, that is the gap to close, not this one CVE. A technical advisor can set up the inventory and the patch routine with your engineers in a few sessions; a fractional CTO owns it on an ongoing basis along with the rest of your security posture.

Frequently asked questions

What is NFS2ROOT? NFS2ROOT is the name OpenSec gave CVE-2026-99362, a pre-authentication heap overflow in the Linux kernel's NFS server, present since kernel 3.16. An attacker who can reach TCP port 2049 on a server offering NFSv4.1 or 4.2 can corrupt kernel memory, which can crash the server or, according to the researchers, give root.

Am I affected if I only mount NFS shares? No. All the sources agree NFS clients are not affected. Only machines running the kernel NFS server (nfsd) are. A machine can be both, so run the check above.

Is Ubuntu fixed for CVE-2026-99362? Not as of 28 November 2026. Ubuntu lists 16.04 through 24.04 LTS as vulnerable, with fixes in progress for 26.04 and 26.10. Firewall port 2049 or disable NFSv4.1 and 4.2 until the fix lands.

Is NFS2ROOT being exploited in the wild? No attacks had been reported as of 25 to 26 November, and it was not in CISA's KEV catalog. OpenSec says it has a private root exploit. I would not wait for reports of attacks before closing port 2049.

Does disabling NFSv4.1 and 4.2 fix it? It closes the known path, since NFSv3 and 4.0 don't use sessions, but it is a stopgap. It can break clients that pin 4.1 or 4.2 and force remounts. The kernel update is the fix.

Do Docker or Kubernetes users need to do anything? Only if a node runs the kernel NFS server, for example as a storage node behind an NFS provisioner. Containers share the host kernel, so patch and firewall the node; rebuilding images does nothing.

If you're not sure what's listening on your servers, or you want a patching routine that makes the next one boring, book a 30-minute call. Bring your list of hosts, or the fact that you don't have one, and we'll start there.

Sources

Written By

Kunal Vohra

Kunal Vohra

Technical Co-Founder & Fractional CTO

I've co-founded 6+ startups across India, the UAE, and the US, spanning AI, Web3, fintech, and cybersecurity. I write about the technical and strategic decisions that determine whether a startup thrives or stalls.

Comments

Loading comments…

Enjoyed this article?

More writing on AI, Web3, and building startups.