{"id":"CVE-2022-50882","aliases":["CVE-2022-50882"],"related":[],"kind":"vulnerability","state":"published","title":"media: uvcvideo: Fix memory leak in uvc_gpio_parse","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: uvcvideo: Fix memory leak in uvc_gpio_parse\n\nPreviously the unit buffer was allocated before checking the IRQ for\nprivacy GPIO. In case of error, the unit buffer was leaked.\n\nAllocate the unit buffer after the IRQ to avoid it.\n\nAddresses-Coverity-ID: 1474639 (\"Resource leak\")","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: uvcvideo: Fix memory leak in uvc_gpio_parse\n\nPreviously the unit buffer was allocated before checking the IRQ for\nprivacy GPIO. In case of error, the unit buffer was leaked.\n\nAllocate the unit buffer after the IRQ to avoid it.\n\nAddresses-Coverity-ID: 1474639 (\"Resource leak\")","source":"cvelist"}],"published":"2025-12-30T12:23:21.019Z","modified":"2026-06-17T05:24:20.870Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2886477ff98740cc3333cf785e4de0b1ff3d7a28","fixed":"6c5da92103bddd1f0c36cb69446ff7cae3043986","status":"affected"},{"type":"git","introduced":"2886477ff98740cc3333cf785e4de0b1ff3d7a28","fixed":"deb8f32ae4b10a48c433f2da1b1159521ac24674","status":"affected"},{"type":"git","introduced":"2886477ff98740cc3333cf785e4de0b1ff3d7a28","fixed":"4a7ae8d982a89b3b43b36ec7d62a2e3d06ffa16e","status":"affected"},{"type":"git","introduced":"2886477ff98740cc3333cf785e4de0b1ff3d7a28","fixed":"f0f078457f18f10696888f8d0e6aba9deb9cde92","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6c5da92103bddd1f0c36cb69446ff7cae3043986","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/deb8f32ae4b10a48c433f2da1b1159521ac24674","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a7ae8d982a89b3b43b36ec7d62a2e3d06ffa16e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0f078457f18f10696888f8d0e6aba9deb9cde92","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50882","url":"https://www.cve.org/CVERecord?id=CVE-2022-50882","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:57.345Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50882","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50882","licence":"Public domain","modified":"2026-06-17T05:24:20.870Z"}],"updatedAt":"2026-11-25T22:58:21.391Z","epss":{"score":0.00214,"percentile":0.1244,"date":"2026-12-01T12:00:22.000Z"}}