Description
In the Linux kernel, the following vulnerability has been resolved:

cdx: Fix double free when sysfs file creation fails

In cdx_create_res_attr(), if sysfs_create_bin_file() fails, the code
frees res_attr but doesn't set cdx_dev->res_attr[num] to NULL. This
leaves a dangling pointer in the array. Then cdx_destroy_res_attr()
frees the already-freed memory. Fix the double free by initializing
cdx_dev->res_attr[num] after sysfs_create_bin_file() completes.
Published: 2026-09-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption that can lead to a crash or kernel privilege escalation
Action: Immediate Patch
AI Analysis

Impact

Kernel memory corruption that can lead to a crash or kernel privilege escalation. The bug exists in the Linux kernel's cdx module under the function cdx_create_res_attr. When the sysfs_create_bin_file() call fails, the function frees the res_attr resource descriptor but leaves the corresponding pointer in the cdx_dev->res_attr array unchanged. A later call to cdx_destroy_res_attr() attempts to free the same descriptor again, causing a double free. This double free can corrupt kernel memory and destabilize the kernel, potentially allowing an attacker to execute arbitrary code with kernel privileges.

Affected Systems

All Linux kernel builds that compile the cdx implementation before the patch commit are affected. The issue is associated with the CPE cpe:2.3:o:linux:linux_kernel:* and vendor identifiers 'Linux:Linux'. No specific kernel version is listed, so any kernel with the unpatched cdx code, regardless of distribution, is potentially vulnerable.

Risk and Exploitability

The likely attack vector is local; an attacker must be able to trigger a sysfs file creation failure for a cdx device, which in practice typically requires privileged or root access. The CVSS score is not supplied, EPSS is not provided, and the vulnerability is not listed in CISA's KEV catalog. The description states that the double free can corrupt kernel memory and may crash the system or allow arbitrary code execution with kernel privileges, indicating high potential impact, although the likelihood of exploitation is unknown due to the lack of exploitation data.

Generated by OpenCVE AI on September 26, 2026 at 01:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the cdx double‑free fix, which is present in the current mainline stream.
  • If a kernel upgrade is not immediately available, consider disabling the cdx module or removing it from compilation to eliminate the vulnerability from the running system.
  • Restrict write permissions on the cdx sysfs entries to root or privileged users only, limiting the ability to trigger the failure path.

Generated by OpenCVE AI on September 26, 2026 at 01:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Sat, 26 Sep 2026 01:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 24 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cdx: Fix double free when sysfs file creation fails In cdx_create_res_attr(), if sysfs_create_bin_file() fails, the code frees res_attr but doesn't set cdx_dev->res_attr[num] to NULL. This leaves a dangling pointer in the array. Then cdx_destroy_res_attr() frees the already-freed memory. Fix the double free by initializing cdx_dev->res_attr[num] after sysfs_create_bin_file() completes.
Title cdx: Fix double free when sysfs file creation fails
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-24T15:10:37.863Z

Reserved: 2026-09-17T16:02:15.093Z

Link: CVE-2026-93215

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T16:17:16.550

Modified: 2026-09-24T16:17:16.550

Link: CVE-2026-93215

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T01:15:08Z

Weaknesses