{"id":"CVE-2022-50514","aliases":["CVE-2022-50514"],"related":[],"kind":"vulnerability","state":"published","title":"usb: gadget: f_hid: fix refcount leak on error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: fix refcount leak on error path\n\nWhen failing to allocate report_desc, opts->refcnt has already been\nincremented so it needs to be decremented to avoid leaving the options\nstructure permanently locked.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_hid: fix refcount leak on error path\n\nWhen failing to allocate report_desc, opts->refcnt has already been\nincremented so it needs to be decremented to avoid leaving the options\nstructure permanently locked.","source":"cvelist"}],"published":"2025-10-07T15:19:10.253Z","modified":"2026-06-17T05:23:42.087Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"95412c932b3c9e8cc4431dac4fac8fcd80d54982","status":"affected"},{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"80dc47e751a837106c09bec73964ff8f7ea280b4","status":"affected"},{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"e88b89a096af0001bcff6bf7ad2feb1486487173","status":"affected"},{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"9d4a0aca8a75550d3456c8de339a341dc4536ec5","status":"affected"},{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"ba78f7c10606719f702c04a15fb0471507b32d7b","status":"affected"},{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"216437dd64fce36791a3b6cc8f8013df36856958","status":"affected"},{"type":"git","introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd","fixed":"70a3288a7586526315105c699b687d78cd32559a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.19","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.19","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/95412c932b3c9e8cc4431dac4fac8fcd80d54982","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80dc47e751a837106c09bec73964ff8f7ea280b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e88b89a096af0001bcff6bf7ad2feb1486487173","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d4a0aca8a75550d3456c8de339a341dc4536ec5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba78f7c10606719f702c04a15fb0471507b32d7b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/216437dd64fce36791a3b6cc8f8013df36856958","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70a3288a7586526315105c699b687d78cd32559a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50514","url":"https://www.cve.org/CVERecord?id=CVE-2022-50514","licence":"CVE Terms of Use","modified":"2026-05-11T19:20:54.138Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50514","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50514","licence":"Public domain","modified":"2026-06-17T05:23:42.087Z"}],"updatedAt":"2026-11-25T22:58:21.250Z","epss":{"score":0.0016,"percentile":0.05383,"date":"2026-12-01T12:00:22.000Z"}}