NFS2ROOT Linux Flaw: How to Check Your NFS Server and Apply the Fix

A Linux NFS server flaw can corrupt kernel memory before authentication. Check exposure, apply your vendor’s kernel fix and restrict access while patching.
Computer screen showing code in a terminal-style editor
Linux administration and code. Photo: Chris Ried/Unsplash.

A flaw in the Linux kernel’s NFS server can let an unauthenticated network client corrupt kernel memory, potentially crashing a server or taking control of it. Administrators running NFSv4.1 or 4.2 should check their exposure, install their vendor’s fix when available and restrict access to TCP port 2049.

The vulnerability, CVE-2026-99362, was disclosed on November 19 and affects the kernel’s nfsd server, not every Linux machine or every NFS client. Security firm OpenSec, which calls the issue NFS2ROOT, reports demonstrating a remote root shell; its exploit remains private. The kernel team traces the underlying issue to Linux 3.16.

A machine that only mounts someone else’s NFS share is not exposed through this server flaw solely because it is an NFS client. The immediate priority is to find machines actually serving affected NFS versions, including storage appliances and hosts reachable from internal workloads.

How to check for an exposed NFS server

On a Linux host you administer, the following checks help establish whether the kernel NFS server is running, which protocol versions it offers and where it listens:

uname -r
systemctl status nfs-server
cat /proc/fs/nfsd/versions
ss -ltn 'sport = :2049'

Look for +4.1 or +4.2 in the protocol list. A listener on port 2049 indicates a potential network path, but it does not by itself prove that an attacker can reach it: check host firewalls, cloud security groups and network rules from the relevant client networks too. Conversely, an internal-only server can still be reached by a compromised device or workload on an allowed network.

Service names and management tools differ by distribution or appliance. If the service command or the proc file is unavailable, consult the vendor’s NFS documentation instead of treating that result alone as proof of safety. Red Hat notes that its default Enterprise Linux configuration does not enable the in-kernel NFS server.

Install the right kernel fix and reboot

The kernel CVE announcement lists fixes in upstream releases 6.12.117, 6.18.61, 7.3.2 and 7.4-rc1. Those numbers are not a universal test for packaged distributions: vendors backport fixes to older-looking kernel versions, and availability differs by release.

Check your vendor’s advisory for CVE-2026-99362 and install the fixed kernel for your exact distribution and architecture. Debian, Ubuntu and Red Hat maintain separate status pages. For a NAS or managed appliance, use its manufacturer’s security guidance and supported updates rather than installing a generic kernel.

After updating, reboot during an appropriate maintenance window and verify the running kernel with uname -r. Compare that result with the vendor’s fixed package information; installing a kernel does not mean the host has started using it. Coordinate reboots with applications and storage clients that depend on the server.

If a patch is not yet available

  • Disable the NFS server if it is unnecessary. Red Hat recommends stopping and disabling nfs-server on systems that do not need to export shares. Check dependencies first: active clients can lose access.
  • Limit TCP port 2049 to trusted clients and storage networks. Apply controls at the host and network boundary, and review which containers, virtual machines and internal systems can reach the service. Restricting access reduces exposure; it does not fix the bug.
  • Consider disabling NFSv4.1 and 4.2 temporarily. OpenSec identifies this as a mitigation, but it can disrupt clients, parallel NFS and features that depend on those versions. Test compatibility and follow the server vendor’s configuration and restart instructions.

What the flaw does

NFS lets systems share files across a network. In the affected server code, a client can negotiate a very small cached reply and send a crafted compound request containing a SEQUENCE operation. A failure to account properly for the response size can lead to a write beyond the allocated buffer, according to Red Hat’s analysis.

OpenSec describes chaining that memory corruption into an information leak and ultimately a root shell. That is the firm’s research demonstration, not evidence that every exposed server has been compromised. Its report states that the exploit is private. Administrators should nevertheless prioritize fixes and access restrictions because the vulnerable service operates in the kernel and can be reached before authentication.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

WP Rocket Flaw Is Under Attack: Update and Check Your WordPress Site

Related Posts