CVE-2022-50514

Source
https://cve.org/CVERecord?id=CVE-2022-50514
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50514.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50514
Downstream
Related
Published
2025-10-07T15:19:10.253Z
Modified
2026-04-02T08:28:34.429291Z
Summary
usb: gadget: f_hid: fix refcount leak on error path
Details

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_hid: fix refcount leak on error path

When failing to allocate report_desc, opts->refcnt has already been incremented so it needs to be decremented to avoid leaving the options structure permanently locked.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50514.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"