CVE-2022-50882
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")
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A memory leak in the Linux kernel's UVC video driver, a memory leak occurs in uvc_gpio_parse() when the unit buffer is allocated before checking the IRQ for privacy GPIO, causing a leak on error.
Vulnerability
In the Linux kernel's UVC video4linux subsystem, the uvc_gpio_parse function in drivers/media/usb/uvc/uvc_driver.c contains a memory leak. The function allocates a unit buffer before checking the IRQ for the privacy GPIO. If the IRQ check fails, the allocated buffer is not freed, leading to a resource leak [1][2].
Exploitation
This vulnerability is triggered during device enumeration when the kernel parses UVC (USB Video Class) device descriptors. An attacker would need to connect a malicious USB device that causes the IRQ check to fail after the buffer allocation. No authentication is required, but physical or local USB access is necessary.
Impact
A successful exploit results in a memory leak, at minimum, a memory leak that can degrade system performance over time. Repeated exploitation could exhaust kernel memory, potentially leading to a denial-of-service condition.
Mitigation
The fix was applied in Linux kernel commits [1] and [2], which move the buffer allocation after the IRQ check. Users should update to a kernel version containing these commits. No workaround is available.
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
46c5da92103bddeb8f32ae4b14a7ae8d982a8f0f078457f18Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4News mentions
0No linked articles in our index yet.