Critical Linux NFS bug opens file servers to remote attack

Published

A critical flaw in the Linux kernel's built-in NFS file server lets an attacker who can reach port 2049 corrupt kernel memory without logging in, according to an advisory from NSFOCUS CERT. The bug, tracked as CVE-2026-99362 and nicknamed "NFS2root", carries a CVSS score of 9.8, and NSFOCUS says its technical details are already public.

Fixes are in the stable kernel trees. NSFOCUS points to the upstream kernel commit and Red Hat's CVE page for the details, and the CVE record itself was published on November 19.

One undersized reply cache is enough

NFS (Network File System) is the protocol Linux and Unix machines use to share directories over a network. Versions 4.1 and 4.2 use "sessions", in which client and server agree on how large a cached reply can be. According to NSFOCUS, the kernel's NFS server (nfsd) does not check whether a SEQUENCE response actually fits inside that negotiated limit before it accepts a session slot's sequence number.

An unauthenticated attacker can therefore negotiate a very small cached reply size and then send crafted COMPOUND requests, triggering a heap out-of-bounds write, meaning the kernel writes past the end of a memory buffer. NSFOCUS says the result can be memory corruption, information disclosure or a system crash, and that it may lead to remote code execution under specific conditions. The kernel's own fix description, which has nfsd preflight SEQUENCE replies before accepting a slot, matches that account.

Only servers running NFSv4.1 or 4.2 are in scope

The flaw matters only on machines that actually run the NFS server with NFSv4.1 or NFSv4.2 sessions enabled. NSFOCUS lists kernels from 3.16 onward as affected, with fixes in these stable releases:

Distributions often backport fixes without changing the headline version number, so NSFOCUS advises checking each distribution's own advisory rather than relying on the kernel version string alone. To see whether a host is in scope, check whether the nfs-server service (nfs-kernel-server on Debian and Ubuntu) is running, and inspect the [nfsd] section of /etc/nfs.conf to see which protocol versions are enabled.

Patch and reboot, or fence off port 2049

The fix is a kernel update followed by a reboot, since only the running kernel counts. Where that cannot happen right away, NSFOCUS suggests three stopgaps: restrict TCP port 2049 so only trusted hosts can reach the NFS service, disable v4.1 and v4.2 sessions by setting vers4.1=n and vers4.2=n under [nfsd] in /etc/nfs.conf, or stop and disable the NFS server entirely if it is not needed.

NSFOCUS does not report exploitation in the wild, and it does not say a working exploit has been published. But the Linux kernel has produced a steady run of serious bugs this year, from the OVSwrap root flaw to the TCP use-after-free whose exploit odds jumped to 82%, and one that is reachable over the network without credentials deserves a place near the top of the patch queue. NFS should never face the internet, and this is a good moment to confirm that yours doesn't.

This briefing is provided by IntelFusions for informational and defensive purposes only. It is based on sources assessed to be reliable at the time of writing, and analytic judgments carry the confidence levels indicated. Indicators of compromise are defanged; re-arm them only in controlled environments. IntelFusions is not affiliated with the organizations named and makes no warranty as to completeness or accuracy.

Earlier in Vulnerabilities

All Vulnerabilities briefings

Latest briefings

Read the full analysis on IntelFusions