CVE-2022-50882Published Dec 30, 2025 · Dec 30Updated Oct 28
media: uvcvideo: Fix memory leak in uvc_gpio_parse
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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")
From the CVE record · Linux
The Linux kernel's uvcvideo driver can leak a unit buffer when the privacy GPIO IRQ check fails. The input does not establish whether an attacker can trigger this error or specify any access or user-interaction requirements.
Teams running the Linux kernel should check their deployments; affected versions are not specified.