{"id":"CVE-2022-50514","published":"2025-10-07T15:19:10Z","modified":"2026-05-11T19:20:54Z","title":"usb: gadget: f_hid: fix refcount leak on error path","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0022,"percentile":0.07464,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/95412c932b3c9e8cc4431dac4fac8fcd80d54982","tags":[]},{"url":"https://git.kernel.org/stable/c/80dc47e751a837106c09bec73964ff8f7ea280b4","tags":[]},{"url":"https://git.kernel.org/stable/c/e88b89a096af0001bcff6bf7ad2feb1486487173","tags":[]},{"url":"https://git.kernel.org/stable/c/9d4a0aca8a75550d3456c8de339a341dc4536ec5","tags":[]},{"url":"https://git.kernel.org/stable/c/ba78f7c10606719f702c04a15fb0471507b32d7b","tags":[]},{"url":"https://git.kernel.org/stable/c/216437dd64fce36791a3b6cc8f8013df36856958","tags":[]},{"url":"https://git.kernel.org/stable/c/70a3288a7586526315105c699b687d78cd32559a","tags":[]}],"priority":{"score":1.5,"factors":[{"name":"EPSS percentile","points":1.49}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < 95412c932b3c9e8cc4431dac4fac8fcd80d54982",">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < 80dc47e751a837106c09bec73964ff8f7ea280b4",">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < e88b89a096af0001bcff6bf7ad2feb1486487173",">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < 9d4a0aca8a75550d3456c8de339a341dc4536ec5",">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < ba78f7c10606719f702c04a15fb0471507b32d7b",">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < 216437dd64fce36791a3b6cc8f8013df36856958",">= 21a9476a7ba847e413bf1c144d7c614532aed6dd, < 70a3288a7586526315105c699b687d78cd32559a"]},{"vendor":"Linux","product":"Linux","versions":["3.19"]}],"euvd":{"id":"EUVD-2025-32037","exploited":false,"provenance":"source"}}