OSG-SEC-2026-11-30 HIGH Pre-authentication vulnerability in Linux NFS servers (CVE-2026-99362)

# OSG-SEC-2026-11-30 HIGH: CVE-2026-99362 - Pre-authentication vulnerability in Linux NFS servers

Dear OSG Security Contacts,

CVE-2026-99362 affects the Linux kernel’s in-kernel NFS server (nfsd) [1]. A remote, unauthenticated client able to reach TCP port 2049 may trigger a heap out-of-bounds write before NFS authentication. Researchers have demonstrated a path to kernel-level code execution[2]; The cited researchers’ exploit may remain private, but public code claiming to exploit the CVE is now available. This affects NFS servers, not clients.

## IMPACTED VERSIONS:

Linux kernels containing the vulnerable code, introduced in kernel 3.16 in 2014, may be affected when the host runs nfsd, has NFSv4.1 or 4.2 enabled, and TCP port 2049 is reachable. NFS-Ganesha and other non-kernel NFS servers are not affected by this kernel flaw.

Default Red Hat Enterprise Linux configurations do not run or enable the in-kernel NFS server daemon (nfsd), limiting the attack surface to systems specifically configured to export NFSv4.1 or NFSv4.2 shares.

Identify potentially affected NFS servers: Run cat /proc/fs/nfsd/versions. If it shows +4.1 or +4.2, that NFS version is enabled

Red Hat’s current status lists RHEL 8 kernel packages as fixed, while RHEL 9 and RHEL 10 kernel packages remain affected; some specific extended-support streams have fixes. Check the vendor advisory for your exact release and kernel stream [1].

Ubuntu: 26.10 and 26.04 remain vulnerable while fixes are in progress (7.3.0-12.13 and 7.0.0-45.45, respectively); 24.04–16.04 are listed as vulnerable [5].

Debian: Bookworm is vulnerable before 6.1.192-3 (or linux-6.12 6.12.117-1\~deb12u1); Trixie, Forky, and Sid are fixed [6].

## WHAT ARE THE VULNERABILITIES:

A flaw in NFSv4.1/4.2 session reply handling can cause crafted requests to be copied beyond an allocated kernel reply-cache buffer. Successful exploitation could cause a system crash or potentially execute code in the kernel. The vulnerable handling occurs before normal export and authentication checks, so export host restrictions and sec=krb5 alone do not prevent the vulnerable request from reaching it.
sec=krb5 is an NFS security option that uses Kerberos tickets to authenticate users and requests instead of relying on local Unix UID/GID values.

## WHAT YOU SHOULD DO:

Check whether hosts run the in-kernel NFS server and have NFSv4.1/4.2 enabled. For example, inspect /proc/fs/nfsd/versions and check whether TCP port 2049 is listening and reachable from untrusted networks. On a Linux system with netcat installed, this can be checked with a command such as the following:

nc \-v targethost.example.com 2049 \</dev/null

A successful connection will say "Connected to (IP of the host)" in the output.

Install the vendor-fixed kernel and reboot the affected systems running nfsd. Upstream fixes are listed for 6.12.117, 6.18.61, 7.3.2, and 7.4-rc1; distributions may backport the fix to other kernel versions. Use your vendor’s CVE status and erratum to verify the fix.

Interim stopgap: Linux NFS clients connect from privileged ports by default, so dropping NFS traffic from unprivileged source ports blocks ordinary users and job payloads while kernel mounts keep working. On the server: `iptables -I INPUT 1 -p tcp --dport 2049 --sport 1024:65535 -j DROP` (and the same with ip6tables). Caveats: doesn't stop anyone with root on a host that can reach 2049 (pair with a client-subnet allowlist), doesn't cover NFS over RDMA, and breaks clients mounted with `noresvport`.

Until patched, disable the NFS server if it is not required [1]. Otherwise, restrict TCP port 2049 to trusted client networks. These controls can interrupt NFS service; coordinate firewall changes with storage and site administrators. Caveat:Disabling `nfs-server` prevents the host from sharing files over the network. Restricting access via firewalld blocks any client outside the designated IP address or subnet from mounting or interacting with NFS exports.

Alternative: disable v4.1/4.2 (`vers4.0=y`,`vers4.1=n`, `vers4.2=n` under `[nfsd]` in /etc/nfs.conf). Clients fall back to v4.0, but existing mounts need a remount. Disabling NFSv4.1 and 4.2 requires restarting the NFS server and may disrupt clients or features that depend on those protocol versions.

## REFERENCES
[1] https\://access.redhat.com/security/cve/cve-2026-99362
[2] https\://opensec.in/blog/nfs2root-cve-2026-99362
[3] https\://lists.openwall.net/linux-cve-announce/2026/11/19/36
[4] https\://nvd.nist.gov/vuln/detail/cve-2026-99362
[5] https\://ubuntu.com/security/CVE-2026-99362
[6] https\://security-tracker.debian.org/tracker/CVE-2026-99362

Please contact the OSG security team at [email protected] if you have any questions or concerns.
OSG Security Team