Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2024-58079

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-58079

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2886477ff98740cc3333cf785e4de0b1ff3d7a28",
        "lessThan": "0fdd7cc593385e46e92e180b71e264fc9c195298",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2886477ff98740cc3333cf785e4de0b1ff3d7a28",
        "lessThan": "3c00e94d00ca079bef7906d6f39d1091bccfedd3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2886477ff98740cc3333cf785e4de0b1ff3d7a28",
        "lessThan": "0b5e0445bc8384c18bd35cb9fe87f6258c6271d9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2886477ff98740cc3333cf785e4de0b1ff3d7a28",
        "lessThan": "d2eac8b14ac690aa73052aa6d4ba69005715367e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2886477ff98740cc3333cf785e4de0b1ff3d7a28",
        "lessThan": "5d2e65cbe53d0141ed095cf31c2dcf3d8668c11d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2886477ff98740cc3333cf785e4de0b1ff3d7a28",
        "lessThan": "a9ea1a3d88b7947ce8cadb2afceee7a54872bbc5",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/media/usb/uvc/uvc_driver.c",
      "drivers/media/usb/uvc/uvcvideo.h"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.12"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.12",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.179",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.130",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.78",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.14",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.13.*"
      },
      {
        "status": "unaffected",
        "version": "6.14",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/media/usb/uvc/uvc_driver.c",
      "drivers/media/usb/uvc/uvcvideo.h"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-58079

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30415 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement