CVE-2022-50882

media: uvcvideo: Fix memory leak in uvc_gpio_parse

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

media: uvcvideo: Fix memory leak in uvc_gpio_parse

Previously the unit buffer was allocated before checking the IRQ for privacy GPIO. In case of error, the unit buffer was leaked.

Allocate the unit buffer after the IRQ to avoid it.

Addresses-Coverity-ID: 1474639 ("Resource leak")

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before 6c5da92103bddd1f0c36cb69446ff7cae3043986Affected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before deb8f32ae4b10a48c433f2da1b1159521ac24674Affected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before 4a7ae8d982a89b3b43b36ec7d62a2e3d06ffa16eAffected
  • 2886477ff98740cc3333cf785e4de0b1ff3d7a28 to before f0f078457f18f10696888f8d0e6aba9deb9cde92Affected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 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.