# CVE-2024-58079: media: uvcvideo: Fix crash during unbind if gpio unit is in use

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-03-06T16:13:42.640Z
- **Modified:** 2026-10-15T22:18:05.403Z

## Who should check

- Anyone running Linux \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 0fdd7cc593385e46e92e180b71e264fc9c195298; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 3c00e94d00ca079bef7906d6f39d1091bccfedd3; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< d2eac8b14ac690aa73052aa6d4ba69005715367e; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5
- Anyone running Linux 5.12

## 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 and fixed versions

- Linux: \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 0fdd7cc593385e46e92e180b71e264fc9c195298; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 3c00e94d00ca079bef7906d6f39d1091bccfedd3; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< d2eac8b14ac690aa73052aa6d4ba69005715367e; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-58079. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58079.md
Affected: Linux >= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, < 0fdd7cc593385e46e92e180b71e264fc9c195298; >= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, < 3c00e94d00ca079bef7906d6f39d1091bccfedd3; >= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, < 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9; >= 2886477ff98740cc3333cf7…
Fixed in: Linux 0fdd7cc593385e46e92e180b71e264fc9c195298, Linux 3c00e94d00ca079bef7906d6f39d1091bccfedd3, Linux 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9, Linux 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-58079 being exploited?

There is no confirmed exploitation: CVE-2024-58079 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-58079?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-58079?

Linux \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 0fdd7cc593385e46e92e180b71e264fc9c195298; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 3c00e94d00ca079bef7906d6f39d1091bccfedd3; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< d2eac8b14ac690aa73052aa6d4ba69005715367e; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d; \>= 2886477ff98740cc3333cf785e4de0b1ff3d7a28, \< a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5; Linux 5.12.

### Is there a fix for CVE-2024-58079?

Yes. Fixed in Linux 0fdd7cc593385e46e92e180b71e264fc9c195298, Linux 3c00e94d00ca079bef7906d6f39d1091bccfedd3, Linux 0b5e0445bc8384c18bd35cb9fe87f6258c6271d9, Linux 5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-58079?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0fdd7cc593385e46e92e180b71e264fc9c195298>
- patch: <https://git.kernel.org/stable/c/3c00e94d00ca079bef7906d6f39d1091bccfedd3>
- patch: <https://git.kernel.org/stable/c/0b5e0445bc8384c18bd35cb9fe87f6258c6271d9>
- patch: <https://git.kernel.org/stable/c/d2eac8b14ac690aa73052aa6d4ba69005715367e>
- patch: <https://git.kernel.org/stable/c/5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d>
- patch: <https://git.kernel.org/stable/c/a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58079>

HTML: <https://flawdb.com/CVE-2024-58079> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58079>
