CVE-2024-58079

media: uvcvideo: Fix crash during unbind if gpio unit is in use

State
Published
Severity
7.8 High
Published
Mar 6, 2025
Updated
Oct 15, 2026
Reserved
Mar 6, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before 0fdd7cc593385e46e92e180b71e264fc9c195298Affected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before 3c00e94d00ca079bef7906d6f39d1091bccfedd3Affected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9Affected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before d2eac8b14ac690aa73052aa6d4ba69005715367eAffected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11dAffected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5Affected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.130 through 6.1.*Not affected
  • 6.6.78 through 6.6.*Not affected
  • 6.12.14 through 6.12.*Not affected
  • 6.13.3 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.