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

CVE-2026-93215: Linux Kernel CDX Use-After-Free Vulnerability

CVE-2026-93215 is a use-after-free flaw in the Linux kernel CDX subsystem that causes a double free condition when sysfs file creation fails. This post explains its technical details, affected versions, and mitigation steps.

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-93215 Overview

CVE-2026-93215 is a double free vulnerability in the Linux kernel's Composable DMA Transfer (CDX) subsystem. The flaw resides in the cdx_create_res_attr() function, where a failed sysfs_create_bin_file() call leaves a dangling pointer in the cdx_dev->res_attr[] array. A subsequent call to cdx_destroy_res_attr() then frees the already-freed memory region, triggering a double free condition [CWE-415].

Critical Impact

Successful exploitation of the double free in the CDX subsystem can corrupt kernel heap metadata, potentially leading to denial of service or local privilege escalation on affected systems.

Affected Products

  • Linux kernel versions containing the vulnerable CDX subsystem code prior to the fix commits
  • Distributions shipping affected mainline and stable kernel branches
  • Systems with the CDX driver compiled and loaded

Discovery Timeline

  • 2026-09-24 - CVE-2026-93215 published to the National Vulnerability Database (NVD)
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-93215

Vulnerability Analysis

The vulnerability occurs within the CDX bus driver, which manages composable DMA capable devices in the Linux kernel. The function cdx_create_res_attr() allocates a binary sysfs attribute structure (res_attr) and attempts to register it with sysfs through sysfs_create_bin_file().

When sysfs_create_bin_file() returns an error, the code frees the allocated res_attr memory. However, the pointer stored in cdx_dev->res_attr[num] is not reset to NULL. The array element retains the address of the freed allocation.

During device teardown, cdx_destroy_res_attr() iterates through the res_attr[] array and calls kfree() on each non-null entry. The stale pointer causes the kernel to free the same memory region a second time, corrupting the slab allocator's internal state.

Root Cause

The root cause is improper error path cleanup. The initialization of cdx_dev->res_attr[num] must occur after sysfs_create_bin_file() succeeds, not before. Storing the pointer prematurely and then freeing the local copy on failure creates an inconsistency between the array state and the actual allocation state.

Attack Vector

Triggering this condition requires sysfs_create_bin_file() to fail during CDX device probing. Failures can arise from memory pressure, sysfs namespace collisions, or filesystem errors. A local attacker able to induce such conditions on a system with a CDX device could trigger the double free during subsequent device removal, corrupting kernel heap structures. No verified public exploit is available at the time of writing.

The vulnerability is described in prose because no verified exploitation code is available. Refer to the Kernel Patch Commit 4cd2487 for the exact source changes.

Detection Methods for CVE-2026-93215

Indicators of Compromise

  • Kernel log entries referencing slab corruption, BUG: KASAN: double-free, or kernel BUG at mm/slub.c tied to CDX device operations
  • Unexpected kernel panics or oopses during CDX device probe failures or removal
  • Repeated sysfs_create_bin_file failure messages in dmesg associated with CDX devices

Detection Strategies

  • Enable Kernel Address Sanitizer (KASAN) in test environments to catch double-free conditions during CDX driver stress testing
  • Audit installed kernel package versions against the fix commits 4cd24873, 6f4acc3a, 7e9451bf, and 88f4cd42
  • Monitor kernel ring buffer output for sysfs registration failures correlated with CDX subsystem activity

Monitoring Recommendations

  • Collect dmesg and /var/log/kern.log output from Linux hosts into a centralized logging platform for anomaly review
  • Alert on recurring kernel oops events referencing cdx_create_res_attr or cdx_destroy_res_attr symbols
  • Track kernel version inventory across the fleet to confirm patch coverage on affected systems

How to Mitigate CVE-2026-93215

Immediate Actions Required

  • Identify Linux hosts running kernels that include the vulnerable CDX subsystem code
  • Apply the upstream stable kernel updates containing the referenced fix commits
  • Reboot affected systems after kernel package upgrades to load the patched image

Patch Information

The fix initializes cdx_dev->res_attr[num] only after sysfs_create_bin_file() succeeds, eliminating the dangling pointer. The patch has been merged into the stable kernel trees via commits 4cd24873, 6f4acc3a, 7e9451bf, and 88f4cd42. Consult your Linux distribution's security advisories for backported package versions.

Workarounds

  • Unload the CDX driver module on systems where CDX hardware is not required, using modprobe -r and blacklisting the module
  • Restrict local user access on systems that cannot be immediately patched to reduce opportunities for triggering the probe failure path
  • Enable kernel hardening features such as CONFIG_SLAB_FREELIST_HARDENED and CONFIG_SLAB_FREELIST_RANDOM to raise the difficulty of exploiting slab corruption
bash
# Verify the running kernel version and check for CDX module presence
uname -r
lsmod | grep -i cdx

# Blacklist the CDX module if not required
echo "blacklist cdx" | sudo tee /etc/modprobe.d/blacklist-cdx.conf
sudo update-initramfs -u

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.