7.8high
usb: misc: ljca: Fix double free in error handling path
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from acd6199f195d6de814ac4090ce0864a613b1580e before 420babea4f1881a7c4ea22a8e218b8c6895d3f21, from acd6199f195d6de814ac4090ce0864a613b1580e before 8a9f653cc852677003c23ee8075e3ed8fb4743c9, from acd6199f195d6de814ac4090ce0864a613b1580e before 7c9631969287a5366bc8e39cd5abff154b35fb80, 6.7 Not affected: before 6.7, from 6.7.12 up to 6.7.*, from 6.8.3 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | from 6.7 before 6.7.12, from 6.8 before 6.8.3, 6.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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 .
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: misc: ljca: corrige el doble libre en la ruta de manejo de errores Cuando auxiliar_device_add() devuelve un error y luego llama a auxiliar_device_uninit(), la función de devolución de llamada ljca_auxdev_release llama a kfree(auxdev->dev.platform_data ) para liberar los datos de los parámetros de la función ljca_new_client_device. Las personas que llaman a ljca_new_client_device no deberían volver a llamar a kfree() en la ruta de manejo de errores para liberar los datos de la plataforma. Solucione este problema limpiando el kfree() redundante en todas las personas que llaman y agregando kfree() los datos de plataforma pasados en los errores que ocurren antes de queauxiliar_device_init() tenga éxito.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26653 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-26653 changed 2026-06-17 | Public domain |