Fluxtail
Security

CVE-2026-99362 (NFS2ROOT): How a Linux NFS Reply Can Corrupt Kernel Memory

Understand the NFS2ROOT flaw in Linux’s NFS server, check which hosts are exposed, and verify the running kernel and client access after maintenance.

By Fluxtail Engineering

Network File System (NFS) lets a server share directories over the network. Other machines mount those shares so applications can use the files as if they were local. Build workers, for example, can read the same artifacts from one file server. The Linux kernel’s built-in NFS server is called nfsd. Ubuntu’s NFS documentation

On November 19, 2026, the Linux kernel CVE team announced CVE-2026-99362 in nfsd. The server saves some replies so it can resend them if a client retries. The flaw lets it write a reply past the end of the memory set aside for it. That can corrupt kernel memory and crash the server, cutting clients off from shared files. Red Hat says the flaw can also let an attacker run code before authenticating. The risk is on vulnerable Linux servers that serve NFSv4.1 or NFSv4.2 and are reachable by an attacker. Hosts that only mount shares as clients fall outside this server-side flaw. Linux kernel announcement, Red Hat’s assessment

On November 25, OpenSec Intelligence published its lab demonstration under the name NFS2ROOT. Its recording shows code running as root, the highest privilege on the test server, before the client authenticated. OpenSec says it reported the flaw on September 22 and credits Jérémy Jean of France’s cybersecurity agency ANSSI with finding it independently and writing the upstream fix. Whether the same result is possible on other builds or configurations remains open. The public reports do not establish exploitation outside the lab. Canonical rated the flaw critical in its November 19 Ubuntu advisory and updated its kernel package tracker on November 25. OpenSec’s original report, Canonical’s advisory

How to check your Linux NFS servers after CVE-2026-99362

If you run Linux file servers or maintain workloads that mount their shares, use these checks to identify exposed servers, confirm which kernel booted, and check that a client can read its files after maintenance. Investigating whether someone exploited the flaw takes separate evidence.

Identify active NFS servers

On the host, check whether the kernel NFS server is running and which directories it shares. These commands read server state and list the current exports.

cat /proc/fs/nfsd/threads /proc/fs/nfsd/versions
sudo exportfs -s

A positive thread count shows that the kernel NFS server is running. In the versions output, look for +4.1 or +4.2. If the files are missing, check the host’s NFS services and export inventory before classifying it as client-only. On a client, findmnt -rn -t nfs,nfs4 -o SOURCE,TARGET,FSTYPE,OPTIONS lists NFS mounts visible to that process, including their servers and mount options. A host can both mount and serve shares. Review the firewall and network rules for each server to see who can reach it. The flaw can corrupt memory before the server authenticates a client. Linux kernel NFS administration, Debian exportfs manual, Debian findmnt manual, Red Hat’s assessment

Example host Role and network access Distribution advisory
files-01 Debian 13 file server with kernel NFSv4.1 and v4.2 enabled. The build subnet can reach its NFS service. Debian lists 6.12.117-1 as the fix for the linux source package in trixie.
build-02 Ubuntu 24.04 LTS build worker that mounts the share over NFSv4.2 from the build subnet. It runs no NFS server. Canonical listed the base linux row as vulnerable as of November 26. This client-only host falls outside the server-side exposure and can check client recovery.

While a distribution fix is pending, Red Hat recommends limiting NFS access to trusted networks or disabling the service where it is unused. Check which clients depend on an export before changing access. Debian security tracker, Canonical’s package matrix, Red Hat’s mitigation guidance

Verify the kernel that actually booted

The Linux kernel announcement traces the flaw to Linux 3.16 and lists initial fixes in 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1. Distributions can apply fixes to older branches. Use the advisory for your distribution release and kernel flavor. Ubuntu tracks its base, cloud, and hardware enablement kernels separately. A signed image’s package metadata can show a signing source package such as linux-signed. Identify the underlying kernel source package before choosing a row in Canonical’s advisory. Linux kernel announcement, Canonical’s package matrix

The Debian 13 example below uses cloud images packaged directly from Debian’s linux source. Run the read-only commands before maintenance and again after the planned reboot. The dpkg-query output gives the package status, binary package name and version, and source package name and version.

uname -r
uname -v
dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version} ${source:Package} ${source:Version}\n' 'linux-image-*'

Read the second status character. i means installed, so ii and hi both count. The h in hi marks a hold. Match the release and build from uname to the actual image. A tracking package can pull in a new image while the machine keeps running the old one. Debian dpkg-query manual

Here is a representative before-and-after check for files-01. The example shows the version portion of the uname -v output.

Check Before reboot After reboot
Fixed image installed linux-image-6.12.117+deb13-cloud-amd64-unsigned, source linux at 6.12.117-1 Same image remains installed
Running release from uname -r 6.12.116+deb13-cloud-amd64 6.12.117+deb13-cloud-amd64
Debian build version from uname -v 6.12.116-1 6.12.117-1
Patch status Fixed image is on disk. The old build is still running. The running build matches the fixed Debian image.

If you cannot match the running build to a fixed image, record the patch status as unverified. The Linux TCP kernel verification guide shows another example of checking the running kernel. Debian package archive, Debian security tracker

Check a fresh mount and file read from a client

After the reboot, recheck the server’s active NFS versions and exports. From an authorized client, mount the share read-only on an existing, empty, unused test directory. Mounting and unmounting change the client’s mount table. Match the protocol and security options your application uses. This example assumes NFSv4.2 and uses /builds as the path the client sees on the server.

sudo mount -t nfs -o ro,vers=4.2 files-01:/builds /mnt/nfs-check

After the mount succeeds, confirm the source and mount options. Read an existing, non-sensitive test file as the account that needs access and compare its contents with what you expect. Unmount the test mount when you finish, including if the read fails. Leave application mounts in place.

findmnt -n -o SOURCE,TARGET,FSTYPE,OPTIONS --mountpoint /mnt/nfs-check
cat /mnt/nfs-check/nfs-health.txt
sudo umount /mnt/nfs-check

A successful read verifies access for this client and share. For critical workloads, also verify that the application can read through its existing mount. That checks whether the workload itself recovered after the reboot. Ubuntu’s NFS documentation, Debian NFS mount options, Debian findmnt manual

Compare server and client records around the reboot

Use the server’s boot and NFS service records to see when the share came back. Compare them with records from the client’s mount unit, application, or maintenance check. A manual mount can succeed without leaving a success message in the logs. Record the mount and file-read results when you run the check. For hosts that use journald, see the Linux system logging guide.

Synthetic maintenance log example. The server line represents a service manager record. The client lines represent records from a health check. Actual messages depend on what each host logs.

2026-11-26T02:04:18Z files-01 systemd: NFS server service started after planned reboot
2026-11-26T02:05:03Z build-02 storage-check: mount succeeded source=files-01:/builds vers=4.2
2026-11-26T02:05:04Z build-02 storage-check: expected contents read from nfs-health.txt

If both hosts already send logs to Fluxtail, open the retained server and client streams and select the same time window in each, such as 02:00–02:15 UTC. Filter by files-01 and build-02 where your collector supplies the host field. Read the matching events to see which restarts, mount failures, or successful checks were recorded. Use the running build and vendor advisory to verify the fix, and the client read to verify access. A crash alone cannot identify the cause. An empty log search cannot rule out compromise.