What’s Vulnerable › Vulnerabilities
CVE-2024-26653: usb: misc: ljca: Fix double free in error handling path
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-04-01 · updated 2026-06-17
- Weakness: CWE-415
Description
In the Linux kernel, the following vulnerability has been resolved: usb: misc: ljca: Fix double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function ljca_auxdev_release calls kfree(auxdev->dev.platform_data) to free the parameter data of the function ljca_new_client_device. The callers of ljca_new_client_device shouldn't call kfree() again in the error handling path to free the platform data. Fix this by cleaning up the redundant kfree() in all callers and adding kfree() the passed in platform_data on errors which happen before auxiliary_device_init() succeeds .
Affected products
- Linux kernel: from 6.7 before 6.7.12; from 6.8 before 6.8.3; 6.9-rc1 — fixed in 6.7.12, 6.8.3
How to fix
Upgrade to a fixed version: Linux kernel 6.7.12, 6.8.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/420babea4f1881a7c4ea22a8e218b8c6895d3f21
- https://git.kernel.org/stable/c/7c9631969287a5366bc8e39cd5abff154b35fb80
- https://git.kernel.org/stable/c/8a9f653cc852677003c23ee8075e3ed8fb4743c9
- https://git.kernel.org/stable/c/420babea4f1881a7c4ea22a8e218b8c6895d3f21
- https://git.kernel.org/stable/c/7c9631969287a5366bc8e39cd5abff154b35fb80
- https://git.kernel.org/stable/c/8a9f653cc852677003c23ee8075e3ed8fb4743c9
Get alerted when CVE-2024-26653 or the next vulnerability affects your stack