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

Published Sep 24, 2026
·
Updated

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

cdx: Fix double free when sysfs file creation fails

In cdxcreateresattr(), if sysfscreatebinfile() fails, the code frees resattr but doesn't set cdxdev->resattr[num] to NULL. This leaves a dangling pointer in the array. Then cdxdestroyresattr() frees the already-freed memory. Fix the double free by initializing cdxdev->resattr[num] after sysfscreatebinfile() completes.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 24, 2026
CVE Published
via MITRE·03:10 PM
Data Sourced
via MITRE·03:10 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the double free?

The failure path requires sysfs_create_bin_file() to fail during cdx_create_res_attr(). The failed allocation path leaves a dangling pointer in cdx_dev->res_attr[num], which is later freed again by cdx_destroy_res_attr().

2

How can systems be remediated?

Apply a kernel version containing the fix that initializes cdx_dev->res_attr[num] only after sysfs_create_bin_file() completes successfully. The provided stable kernel references identify commits containing the correction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203