7.8high
media: uvcvideo: Fix double free in error path
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.27% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix double free in error path If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it. Reviewed by: Ricardo Ribalda <ribalda@chromium.org>
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a31a4055473bf0a7b2b06cb2262347200d0711e1 before d6e5ba2516c5bef87c1fcb8189b6f3cad7c64b2d, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before 87522ef165e5b6de8ef98cc318f3335166a1512c, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before 3ba8884a56a3eb97c22f0ce0e4dd410d4ca4c277, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before 9232719ac9ce4d5c213cebda23d72aec3e1c4c0d, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before 6c36dcd662ec5276782838660f8533a7cb26be49, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before d1f8e69eec91d5a75ef079778a5d0151db2a7f22, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before d8e63dd7b6683969d3d47c7b8e9635f96d554ad4, from a31a4055473bf0a7b2b06cb2262347200d0711e1 before c6ef3a7fa97ec823a1e1af9085cf13db9f7b3bac and 1 more Not affected: before 2.6.28, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.129 up to 6.1.*, from 6.6.76 up to 6.6.* | CVE List |
| linux linux_kernel | from 2.6.28 before 6.1.129, from 6.2 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2 | 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: media: uvcvideo: Fix double free in error path If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it. Reviewed by: Ricardo Ribalda <ribalda@chromium.org>
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: uvcvideo: Se soluciona la doble liberación en la ruta de error Si la función uvc_status_init() no puede asignar el int_urb, liberará el puntero dev->status pero no restablecerá el puntero a NULL. Esto hace que la llamada kfree() en uvc_status_cleanup() intente liberar la memoria dos veces. Arréglelo restableciendo el puntero dev->status a NULL después de liberarlo. Revisado por: Ricardo Ribalda
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-57980 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2024-57980 changed 2026-11-05 | Public domain |