CVE-2022-50882

Source
https://cve.org/CVERecord?id=CVE-2022-50882
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50882.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50882
Downstream
Related
Published
2025-12-30T12:23:21.019Z
Modified
2026-03-12T03:26:57.798341Z
Summary
media: uvcvideo: Fix memory leak in uvc_gpio_parse
Details

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

media: uvcvideo: Fix memory leak in uvcgpioparse

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")

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50882.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2886477ff98740cc3333cf785e4de0b1ff3d7a28
Fixed
6c5da92103bddd1f0c36cb69446ff7cae3043986
Fixed
deb8f32ae4b10a48c433f2da1b1159521ac24674
Fixed
4a7ae8d982a89b3b43b36ec7d62a2e3d06ffa16e
Fixed
f0f078457f18f10696888f8d0e6aba9deb9cde92

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50882.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.12.0
Fixed
5.15.75
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50882.json"