CVE Catalog

CVE-2026-93215

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel, cdx_create_res_attr() frees res_attr when sysfs_create_bin_file() fails but does not set cdx_dev->res_attr[num] to NULL, leaving a dangling pointer. A later call to cdx_destroy_res_attr() frees the already-freed memory, causing a double free.

Risk Assessment

The double free can lead to heap corruption and potential code execution, posing a serious security risk.

Recommendation

Update the Linux kernel to a version containing the fix that initializes cdx_dev->res_attr[num] after sysfs_create_bin_file() completes.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS