News

Critical NFS2ROOT Linux flaw can give remote attackers root privileges

The Back Room Tech Staff · Edited by Aseem Kishore
6 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

On November 27, 2026, BleepingComputer reported on NFS2ROOT (CVE-2026-99362). It’s a critical flaw in the Linux kernel’s built-in NFS server, nfsd, that can give a remote, unauthenticated attacker root.

If the in-kernel server exports NFSv4.1 or NFSv4.2 shares on TCP port 2049 and an untrusted network path can reach it, patch and reboot. Vendor kernels may carry backported fixes under older-looking version numbers, so check your distro’s advisory. If your box doesn’t run nfsd, you’re not exposed. The biggest caveat is the reboot, which is the easiest step to put off.

What Happened: NFS2ROOT CVE-2026-99362 Explained

Red Hat’s advisory describes an out-of-bounds heap write (CWE-787). A client negotiates a minimal cached reply size. Then it sends crafted NFSv4.1 or NFSv4.2 SEQUENCE compound requests. According to the advisory, the server doesn’t verify that its reply fits the agreed buffer, so it can write past the end of allocated kernel memory.

Per OpenSec’s research, as reported by BleepingComputer, that corruption can do more than crash the server. An attacker can read kernel memory. They can also plant a command that executes as root.

According to BleepingComputer, the bug has been in the kernel since version 3.16. Researcher Jérémy Jean found it and submitted a fix in August 2026.

OpenSec then built a working remote-root exploit. In late September 2026, they shared it with the NFSD maintainers, along with a patch. Public disclosure followed in November.

At the time of its report, BleepingComputer said there was no evidence of in-the-wild exploitation. That can change quickly once a working exploit exists, so don’t treat it as a reason to wait.

Red Hat CVE-2026-99362 advisory page showing the Critical severity rating, 9.4 CVSS v3 score, and the Description and Statement sections

Who This Affects

Per Red Hat, three conditions have to be true at once:

  • The kernel NFS server (nfsd) is running
  • NFSv4.1 or NFSv4.2 is enabled
  • TCP port 2049 is reachable by the attacker

The target is NFS servers rather than clients, and Red Hat says default RHEL installs don’t run nfsd. OpenSec called out NAS appliances, build farms, and Kubernetes storage nodes as the exposed surface. If your homelab NAS exports shares to the whole LAN, it’s on the list.

To check exposure on a systemd-based distro:

uname -r                              # running kernel version
systemctl is-active nfs-server        # "active" means nfsd is serving
ss -ltn '( sport = :2049 )'           # is anything listening on 2049?
cat /proc/fs/nfsd/versions            # enabled NFS versions (exists only when nfsd is loaded)

A host that’s listening on 2049 shows output like this:

LISTEN   0   64         0.0.0.0:2049        0.0.0.0:*
LISTEN   0   64            [::]:2049           [::]:*

And a host that’s in scope shows +4.1 or +4.2 in the versions output, for example:

+3 +4 +4.1 +4.2

The versions file only shows which protocol versions are enabled. It doesn’t tell you whether your kernel already carries a vendor fix, so compare the uname -r output against your distro’s advisory. On some setups /proc/fs/nfsd isn’t mounted even when the server runs, so if the file is missing, rely on the systemctl and ss results instead.

If nfs-server reports inactive and nothing listens on 2049, that host is a lower priority. Keep in mind that a listening socket only confirms the port is open locally, whether it’s actually reachable by an attacker depends on your firewall and network path, and this check doesn’t test that.

How It Stacks Up

The two official scores disagree slightly. The difference matters for ticket triage:

SourceCVSS v3 base scoreIntegrity impact
Red Hat9.4Low
kernel.org (CNA), shown on NVD9.8High

Either number lands in “critical.” NVD hasn’t published its own assessment yet, so scanners that pull the CNA score from NVD may show 9.8, while Red Hat’s own tooling shows its 9.4 rating, so check which CVSS source your scanner displays.

Per BleepingComputer, the kernels fixed are 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1, or later releases on those branches, along with backported fixes in 5.10.275, 5.15.226, 6.1.193, and 6.6.163.

Distro package numbers vary, and vendor advisories take precedence over these upstream version numbers. Confirm against your vendor’s tracker or OSV.

Comparisons to Google Workspace, VMware, or Podman don’t apply here. None of them is a drop-in replacement for an in-kernel NFS server. The admin cost is a kernel update, a reboot, and a maintenance window for whatever mounts those shares.

NVD record for CVE-2026-99362 showing the vulnerability description and the kernel.org CNA 9.8 critical CVSS 3.x score

The Reaction

The sourced response so far comes from Red Hat, which published an advisory with interim mitigations. Its scope matches the other reporting. It affects hosts running the kernel NFS server with NFSv4.1 or 4.2 enabled, not ordinary NFS clients.

Our Take

Verdict: adopt the patch now on exposed NFS servers, and hold off on panic everywhere else.

For hosts that meet all three conditions, install your distro’s kernel update and reboot. BleepingComputer notes the reboot is required. A patched package on disk doesn’t help a running kernel. Budget one maintenance window per file server. Plan for stale mounts on clients, since that’s where most of the operational cost lands.

If you can’t patch yet, Red Hat’s advisory lists interim mitigations along these lines: stop the NFS server if you don’t need it, or restrict access to port 2049. The commands below are our example implementation, not text copied from the advisory.

Warning: Stopping nfs-server drops every client mount on that host. Removing the firewall’s nfs service without confirming which zone is active can break legitimate NFS access, and firewall changes over SSH can lock you out if you edit the wrong zone.

Run these from a console session, confirm your SSH rule first, and check the active zone before changing it.

# Option 1: you don't need the NFS server at all
sudo systemctl stop nfs-server
sudo systemctl disable nfs-server

# Option 2: restrict 2049 to a trusted subnet (firewalld; replace 192.168.10.0/24)
sudo firewall-cmd --get-active-zones                       # confirm which zone your NFS traffic actually uses
sudo firewall-cmd --permanent --remove-service=nfs          # run this against the zone identified above
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.168.10.0/24" port port="2049" protocol="tcp" accept'
sudo firewall-cmd --reload

That rich rule is an example scoped to TCP port 2049 for one trusted subnet, it’s not a complete NFS firewall policy, so adjust it to match your actual zone, interfaces, and client ranges before relying on it.

Firewalling buys time. It won’t help if an attacker already sits inside the trusted subnet. Moving storage onto its own VLAN behind a managed switch shrinks that blast radius. You still need to patch.

For detection, OpenSec’s indicators (via BleepingComputer) are:

  • nfsd4_check_resp_size warnings in kernel logs
  • Shells spawned by kernel worker threads
  • Bursts of short NFSv4.1 sessions
  • Kernel oopses in nfsd4_*, svc_*, or call_usermodehelper* frames
sudo journalctl -k --since "2026-09-01" --grep 'nfsd4_check_resp_size|call_usermodehelper'

Treat these as host-side signals worth monitoring. The exact log strings can vary by kernel version, distribution, and logging setup, so a clean result isn’t proof a host wasn’t targeted. Adjust the --since date to cover your own exposure window. None of this replaces patching.

Wrapping Up

You can now tell in about a minute whether a host is in scope. NFS2ROOT is serious, but it’s narrow.

If nfsd serves NFSv4.1/4.2 on 2049 and an untrusted network path can reach it, restrict that access today and patch and reboot in the first maintenance window you can get, after checking your vendor’s advisory for backported fixes. If you don’t run an NFS server, fold the kernel update into your normal cycle and move on.