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:10Z
Modified
2026-08-12T03:51:46Z
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
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50514.json"
}
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"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.19.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50514.json"