Skip to main content
Vulnerability Database/CVE-2026-93212

CVE-2026-93212: Linux Kernel Use-After-Free Vulnerability

CVE-2026-93212 is a use-after-free flaw in the Linux kernel's nfsd file cache that can cause NULL pointer dereference during network namespace teardown. This article covers the technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-93212 Overview

CVE-2026-93212 is a NULL pointer dereference in the Linux kernel's NFS server (nfsd) subsystem. The flaw resides in nfsd_file_net_dispose(), which processes entries drained from the filecache garbage collector and shrinker. During per-net teardown, nn->nfsd_serv is cleared before the filecache laundrette shuts down. If the nfsd service thread runs a dispose pass that finds more than eight entries on l->freeme, it calls svc_wake_up() on a NULL svc_serv pointer, triggering a kernel crash.

Critical Impact

A race between per-net NFS server teardown and the filecache dispose loop causes a NULL pointer dereference in kernel space, resulting in a kernel oops and denial of service on affected hosts.

Affected Products

  • Linux kernel (upstream nfsd subsystem)
  • Distributions shipping affected kernel versions prior to the referenced stable patches
  • Systems running the kernel NFS server with per-net namespace teardown activity

Discovery Timeline

  • 2026-09-24 - CVE CVE-2026-93212 published to NVD
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-93212

Vulnerability Analysis

The defect is a classic use-after-clear race in the Linux kernel NFS server (nfsd). The function nfsd_file_net_dispose() is the consumer of the l->freeme list. The nfsd service thread loop calls it to drain entries that the filecache garbage collector and shrinker append through nfsd_file_dispose_list_delayed().

When a network namespace is torn down, nn->nfsd_serv is cleared before the filecache laundrette stops producing work. If a dispose pass observes more than eight entries on l->freeme, it unconditionally calls svc_wake_up(nn->nfsd_serv). At that point nn->nfsd_serv can already be NULL, dereferencing a NULL svc_serv pointer in kernel context [CWE-476].

Root Cause

The sibling helper nfsd_file_dispose_list_delayed() caches nn->nfsd_serv into a local variable and tests it for NULL before calling svc_wake_up(). When nfsd_file_net_dispose() was introduced, it reused the raw svc_wake_up(nn->nfsd_serv) pattern without adopting the guard. The ordering of per-net teardown is documented in the sibling helper but was not enforced here.

Attack Vector

Triggering the condition requires local activity that drives the NFS server filecache while a network namespace is being torn down. The result is a kernel NULL pointer dereference leading to an oops and likely denial of service. No remote authentication bypass or privilege escalation path is described in the commit message. The fix loads nn->nfsd_serv into a local svc_serv pointer and only calls svc_wake_up() when the pointer is non-NULL, matching the pattern already used by nfsd_file_dispose_list_delayed().

See the upstream fixes for exact code changes: Kernel Git Commit 59baf45, Kernel Git Commit 766170b4, Kernel Git Commit 9f1ddfc8, and Kernel Git Commit f4776c1c.

Detection Methods for CVE-2026-93212

Indicators of Compromise

  • Kernel oops or panic logs referencing nfsd_file_net_dispose, svc_wake_up, or NULL pointer dereference in svc_serv.
  • Unexpected NFS server unavailability coinciding with network namespace or container teardown events.
  • Repeated nfsd thread crashes during filecache garbage collection activity.

Detection Strategies

  • Monitor dmesg and /var/log/kern.log for stack traces that include nfsd_file_net_dispose and svc_wake_up.
  • Correlate nfsd process restarts with container, pod, or network namespace lifecycle events.
  • Inventory running kernel versions against the fixed stable commits to identify exposed hosts.

Monitoring Recommendations

  • Forward kernel ring buffer events to a centralized log platform for pattern matching on nfsd crashes.
  • Alert on NFS service availability regressions on hosts that use network namespaces or run containerized workloads with nfsd.
  • Track kernel patch state across the fleet and flag systems still running pre-patch versions.

How to Mitigate CVE-2026-93212

Immediate Actions Required

  • Apply the vendor-supplied kernel update that includes the referenced stable commits as soon as it is available for your distribution.
  • Reboot affected hosts after kernel upgrade to ensure the patched kernel is active.
  • Inventory hosts that run nfsd with network namespace teardown activity and prioritize them for patching.

Patch Information

The upstream fix guards the svc_wake_up() call by loading nn->nfsd_serv into a local svc_serv pointer and testing it for NULL before use. Fixes are available in the Linux stable tree at Kernel Git Commit 59baf45, Kernel Git Commit 766170b4, Kernel Git Commit 9f1ddfc8, and Kernel Git Commit f4776c1c. Consult your distribution's security tracker for backported package availability.

Workarounds

  • Where feasible, avoid repeated network namespace teardown on hosts running the in-kernel NFS server until the patch is applied.
  • If NFS export via nfsd is not required, disable the nfsd kernel module to eliminate exposure.
  • Reduce filecache pressure on vulnerable hosts to lower the likelihood of hitting the eight-entry dispose path during teardown.
bash
# Check running kernel version and nfsd module status
uname -r
lsmod | grep nfsd

# If nfsd is not required, unload the module
sudo systemctl stop nfs-server
sudo modprobe -r nfsd

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.