CVE-2026-93215

cdx: Fix double free when sysfs file creation fails

State
Published
Severity
Not scored
Published
Sep 24, 2026
Updated
Oct 19, 2026
Reserved
Sep 17, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d to before 88f4cd42a04bdadd189d7f667a4c279f4e962ca6Affected
  • aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d to before 4cd24873ab9fdbd730604881a6e8087bc7b99336Affected
  • aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d to before 7e9451bf0bdba6daee1eaf4e7566612af6ca1c32Affected
  • aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d to before 6f4acc3a3c300e174e3f586b97b04ed8f5948c36Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.12.109 through 6.12.*Not affected
  • 6.18.50 through 6.18.*Not affected
  • 7.2.4 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.