{"id":"CVE-2022-50514","summary":"usb: gadget: f_hid: fix refcount leak on error path","details":"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-\u003erefcnt has already been\nincremented so it needs to be decremented to avoid leaving the options\nstructure permanently locked.","modified":"2026-04-02T08:28:34.429291Z","published":"2025-10-07T15:19:10.253Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4320-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50514.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/216437dd64fce36791a3b6cc8f8013df36856958"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70a3288a7586526315105c699b687d78cd32559a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/80dc47e751a837106c09bec73964ff8f7ea280b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95412c932b3c9e8cc4431dac4fac8fcd80d54982"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d4a0aca8a75550d3456c8de339a341dc4536ec5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba78f7c10606719f702c04a15fb0471507b32d7b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e88b89a096af0001bcff6bf7ad2feb1486487173"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50514.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50514"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"21a9476a7ba847e413bf1c144d7c614532aed6dd"},{"fixed":"95412c932b3c9e8cc4431dac4fac8fcd80d54982"},{"fixed":"80dc47e751a837106c09bec73964ff8f7ea280b4"},{"fixed":"e88b89a096af0001bcff6bf7ad2feb1486487173"},{"fixed":"9d4a0aca8a75550d3456c8de339a341dc4536ec5"},{"fixed":"ba78f7c10606719f702c04a15fb0471507b32d7b"},{"fixed":"216437dd64fce36791a3b6cc8f8013df36856958"},{"fixed":"70a3288a7586526315105c699b687d78cd32559a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50514.json"}}],"schema_version":"1.7.5"}