Bug 2350383 (CVE-2024-58079) - CVE-2024-58079 kernel: media: uvcvideo: Fix crash during unbind if gpio unit is in use
Summary: CVE-2024-58079 kernel: media: uvcvideo: Fix crash during unbind if gpio unit ...
Keywords:
Status: NEW
Alias: CVE-2024-58079
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-06 17:01 UTC by OSIDB Bzimport
Modified: 2025-03-07 12:02 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-06 17:01:10 UTC
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.

Comment 1 Avinash Hanwate 2025-03-07 07:14:02 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025030609-CVE-2024-58079-f973@gregkh/T

Comment 3 Avinash Hanwate 2025-03-07 11:59:16 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025030609-CVE-2024-58079-f973@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.