CVE-2022-50882 media: uvcvideo: Fix memory leak in uvc_gpio_parse
A memory leak in the Linux kernel's uvcvideo driver allows local attackers to exhaust system memory, potentially causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50882?
CVE-2022-50882 is a denial of service vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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")
Which versions are affected by CVE-2022-50882?
How do I fix CVE-2022-50882?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-50882 being exploited?
There is no known exploitation of CVE-2022-50882 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50882, GHSA-7rr3-6945-h32g, UBUNTU-CVE-2022-50882.