CVE-2024-58079: media: uvcvideo: Fix crash during unbind if gpio unit is in use
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 devmrequestthreadedirq here. The devm clean functions may be called after the main structure is released by uvcdelete.
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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-58079?
CVE-2024-58079 has been classified as a medium severity vulnerability.
How do I fix CVE-2024-58079?
To fix CVE-2024-58079, update your Linux kernel to the latest stable version that addresses this vulnerability.
What does CVE-2024-58079 affect?
CVE-2024-58079 affects the Linux kernel specifically in the handling of media devices using the uvcvideo driver.
Can CVE-2024-58079 lead to a system crash?
Yes, CVE-2024-58079 can potentially lead to a system crash during the unbinding process if the GPIO unit is in use.
Is CVE-2024-58079 related to a specific device?
CVE-2024-58079 is related to issues with device management functions in the Linux kernel concerning USB and interface devices.