What’s Vulnerable › Vulnerabilities

CVE-2022-50882: media: uvcvideo: Fix memory leak in uvc_gpio_parse

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

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50882 or the next vulnerability affects your stack