Bug 2426184 (CVE-2022-50882) - CVE-2022-50882 kernel: media: uvcvideo: Fix memory leak in uvc_gpio_parse
Summary: CVE-2022-50882 kernel: media: uvcvideo: Fix memory leak in uvc_gpio_parse
Keywords:
Status: NEW
Alias: CVE-2022-50882
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-30 13:14 UTC by OSIDB Bzimport
Modified: 2026-02-13 08:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-30 13:14:52 UTC
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")


Note You need to log in before you can comment on or make changes to this bug.