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")
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50882.json",
"cna_assigner": "Linux"
}