CVE-2024-26653: usb: misc: ljca: Fix double free in error handling path
In the Linux kernel, the following vulnerability has been resolved:
usb: misc: ljca: Fix double free in error handling path
When auxiliarydeviceadd() returns error and then calls auxiliarydeviceuninit(), callback function ljcaauxdevrelease calls kfree(auxdev->dev.platformdata) to free the parameter data of the function ljcanewclientdevice. The callers of ljcanewclientdevice 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 platformdata on errors which happen before auxiliarydeviceinit() succeeds .
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26653?
CVE-2024-26653 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-26653?
To fix CVE-2024-26653, update to the latest Linux kernel versions provided by your distribution, particularly versions greater than or equal to 6.8.4.
Which versions of the Linux kernel are affected by CVE-2024-26653?
CVE-2024-26653 affects Linux kernel versions from 6.7 up to 6.8.3 and includes 6.9-rc1.
What is the nature of the vulnerability described in CVE-2024-26653?
CVE-2024-26653 involves a double free vulnerability in the USB miscellaneous driver error handling path.
Is there a workaround for CVE-2024-26653?
There are no official workarounds available for CVE-2024-26653; the best course of action is to apply the available patches.