7.8high
media: uvcvideo: Fix crash during unbind if gpio unit is in use
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.21% (higher than 12% 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 crash during unbind if gpio unit is in use We used the wrong device for the device managed functions. We used the usb device, when we should be using the interface device. If we unbind the driver from the usb interface, the cleanup functions are never called. In our case, the IRQ is never disabled. If an IRQ is triggered, it will try to access memory sections that are already free, causing an OOPS. We cannot use the function devm_request_threaded_irq here. The devm_* clean functions may be called after the main structure is released by uvc_delete. Luckily this bug has small impact, as it is only affected by devices with gpio units and the user has to unbind the device, a disconnect will not trigger this error.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2886477ff98740cc3333cf785e4de0b1ff3d7a28 before 0fdd7cc593385e46e92e180b71e264fc9c195298, from 2886477ff98740cc3333cf785e4de0b1ff3d7a28 before 3c00e94d00ca079bef7906d6f39d1091bccfedd3, from 2886477ff98740cc3333cf785e4de0b1ff3d7a28 before 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9, from 2886477ff98740cc3333cf785e4de0b1ff3d7a28 before d2eac8b14ac690aa73052aa6d4ba69005715367e, from 2886477ff98740cc3333cf785e4de0b1ff3d7a28 before 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d, from 2886477ff98740cc3333cf785e4de0b1ff3d7a28 before a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5, 5.12 Not affected: before 5.12, from 5.15.179 up to 5.15.*, from 6.1.130 up to 6.1.*, from 6.6.78 up to 6.6.*, from 6.12.14 up to 6.12.*, from 6.13.3 up to 6.13.* | CVE List |
| linux linux_kernel | from 5.12 before 5.15.179, from 5.16 before 6.1.130, from 6.2 before 6.6.78, from 6.7 before 6.12.14, from 6.13 before 6.13.3 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix crash during unbind if gpio unit is in use We used the wrong device for the device managed functions. We used the usb device, when we should be using the interface device. If we unbind the driver from the usb interface, the cleanup functions are never called. In our case, the IRQ is never disabled. If an IRQ is triggered, it will try to access memory sections that are already free, causing an OOPS. We cannot use the function devm_request_threaded_irq here. The devm_* clean functions may be called after the main structure is released by uvc_delete. Luckily this bug has small impact, as it is only affected by devices with gpio units and the user has to unbind the device, a disconnect will not trigger this error.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: uvcvideo: Se corrige el fallo durante la desvinculación si la unidad gpio está en uso. Usamos el dispositivo incorrecto para las funciones administradas por el dispositivo. Usamos el dispositivo usb, cuando deberíamos estar usando el dispositivo de interfaz. Si desvinculamos el controlador de la interfaz usb, las funciones de limpieza nunca se llaman. En nuestro caso, la IRQ nunca se deshabilita. Si se activa una IRQ, intentará acceder a secciones de memoria que ya están libres, lo que provocará un OOPS. No podemos usar la función devm_request_threaded_irq aquí. Las funciones de limpieza devm_* pueden llamarse después de que uvc_delete libere la estructura principal. Afortunadamente, este error tiene un impacto pequeño, ya que solo se ve afectado por dispositivos con unidades gpio y el usuario tiene que desvincular el dispositivo, una desconexión no activará este error.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58079 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-58079 changed 2026-10-15 | Public domain |