# CVE-2026-93215: cdx: Fix double free when sysfs file creation fails

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-09-24T15:10:37.863Z
- Modified: 2026-10-19T10:17:12.440Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d before 88f4cd42a04bdadd189d7f667a4c279f4e962ca6; from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d before 4cd24873ab9fdbd730604881a6e8087bc7b99336; from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d before 7e9451bf0bdba6daee1eaf4e7566612af6ca1c32; from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d before 6f4acc3a3c300e174e3f586b97b04ed8f5948c36; 6.8 (not affected: before 6.8; from 6.12.109 up to 6.12.*; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/88f4cd42a04bdadd189d7f667a4c279f4e962ca6>
- <https://git.kernel.org/stable/c/4cd24873ab9fdbd730604881a6e8087bc7b99336>
- <https://git.kernel.org/stable/c/7e9451bf0bdba6daee1eaf4e7566612af6ca1c32>
- <https://git.kernel.org/stable/c/6f4acc3a3c300e174e3f586b97b04ed8f5948c36>

## Sources

- CVE List: [CVE-2026-93215](https://www.cve.org/CVERecord?id=CVE-2026-93215), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-93215](https://nvd.nist.gov/vuln/detail/CVE-2026-93215), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-93215 · Whole record: https://cve.day/CVE-2026-93215.json · Rebuilt by cve.day 2026-11-25T22:59:40.780Z
