{"id":"CVE-2024-26653","summary":"usb: misc: ljca: Fix double free in error handling path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: misc: ljca: Fix double free in error handling path\n\nWhen auxiliary_device_add() returns error and then calls\nauxiliary_device_uninit(), callback function ljca_auxdev_release\ncalls kfree(auxdev-\u003edev.platform_data) to free the parameter data\nof the function ljca_new_client_device. The callers of\nljca_new_client_device shouldn't call kfree() again\nin the error handling path to free the platform data.\n\nFix this by cleaning up the redundant kfree() in all callers and\nadding kfree() the passed in platform_data on errors which happen\nbefore auxiliary_device_init() succeeds .","modified":"2026-03-20T12:35:06.041156Z","published":"2024-04-01T08:33:04.200Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26653.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/420babea4f1881a7c4ea22a8e218b8c6895d3f21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7c9631969287a5366bc8e39cd5abff154b35fb80"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a9f653cc852677003c23ee8075e3ed8fb4743c9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26653.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26653"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"acd6199f195d6de814ac4090ce0864a613b1580e"},{"fixed":"420babea4f1881a7c4ea22a8e218b8c6895d3f21"},{"fixed":"8a9f653cc852677003c23ee8075e3ed8fb4743c9"},{"fixed":"7c9631969287a5366bc8e39cd5abff154b35fb80"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26653.json"}}],"schema_version":"1.7.5"}