cdx: Fix double free when sysfs file creation fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4cd24873ab9fdbd730604881a6e8087bc7b99336, Kernel 6f4acc3a3c300e174e3f586b97b04ed8f5948c36, Kernel 7e9451bf0bdba6daee1eaf4e7566612af6ca1c32 and 1 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.8, >=aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d <4cd24873ab9fdbd730604881a6e8087bc7b99336, >=aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d <6f4acc3a3c300e174e3f586b97b04ed8f5948c36, >=aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d <7e9451bf0bdba6daee1eaf4e7566612af6ca1c32, >=aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d <88f4cd42a04bdadd189d7f667a4c279f4e962ca6 | 4cd24873ab9fdbd730604881a6e8087bc7b99336, 6f4acc3a3c300e174e3f586b97b04ed8f5948c36, 7e9451bf0bdba6daee1eaf4e7566612af6ca1c32, 88f4cd42a04bdadd189d7f667a4c279f4e962ca6 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket