CVE-2022-50514
published 2025-10-07CVE-2022-50514: 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…
PriorityP416medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.15%
4.4th percentile
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.
Affected
19 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.4-1 (bookworm) | linux 6.1.4-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < 95412c932b3c9e8cc4431dac4fac8fcd80d54982 | 95412c932b3c9e8cc4431dac4fac8fcd80d54982 |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < 80dc47e751a837106c09bec73964ff8f7ea280b4 | 80dc47e751a837106c09bec73964ff8f7ea280b4 |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < e88b89a096af0001bcff6bf7ad2feb1486487173 | e88b89a096af0001bcff6bf7ad2feb1486487173 |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < 9d4a0aca8a75550d3456c8de339a341dc4536ec5 | 9d4a0aca8a75550d3456c8de339a341dc4536ec5 |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < ba78f7c10606719f702c04a15fb0471507b32d7b | ba78f7c10606719f702c04a15fb0471507b32d7b |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < 216437dd64fce36791a3b6cc8f8013df36856958 | 216437dd64fce36791a3b6cc8f8013df36856958 |
| linux | linux | >= 21a9476a7ba847e413bf1c144d7c614532aed6dd < 70a3288a7586526315105c699b687d78cd32559a | 70a3288a7586526315105c699b687d78cd32559a |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 3.19 < 4.19.270 | 4.19.270 |
| linux | linux_kernel | >= 4.20 < 5.4.229 | 5.4.229 |
| linux | linux_kernel | >= 5.11 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 5.5 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 6.1 < 6.1.2 | 6.1.2 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
Linux Kernel up to 6.1.1 usb f_hid reference count (WID-SEC-2025-2229)
vuldb·2026-04-18·CVSS 5.5
CVE-2022-50514 [MEDIUM] Linux Kernel up to 6.1.1 usb f_hid reference count (WID-SEC-2025-2229)
A vulnerability, which was classified as critical, was found in Linux Kernel up to 6.1.1. Impacted is the function f_hid of the component usb. The manipulation results in improper update of reference count.
This vulnerability is known as CVE-2022-50514. Access to the local network is required for this attack. No exploit is available.
You should upgrade the affected component.
OSV
CVE-2022-50514: In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: fix refcount leak on error path When failing to allocate repor
osv·2025-10-07·CVSS 5.5
CVE-2022-50514 [MEDIUM] CVE-2022-50514: In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_hid: fix refcount leak on error path When failing to allocate repor
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.
GHSA
GHSA-98p2-fhmm-f934: In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_hid: fix refcount leak on error path
When failing to allocate rep
ghsa_unreviewed·2025-10-07
CVE-2022-50514 [MEDIUM] GHSA-98p2-fhmm-f934: In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_hid: fix refcount leak on error path
When failing to allocate rep
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.
Red Hat
kernel: usb: gadget: f_hid: fix refcount leak on error path
vendor_redhat·2025-10-07·CVSS 5.5
CVE-2022-50514 [MEDIUM] kernel: usb: gadget: f_hid: fix refcount leak on error path
kernel: usb: gadget: f_hid: fix refcount leak on error path
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.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 8) - Not affected
Package: kernel (Red Hat Enterprise Linux 9) - Not affected
Package: kernel
Debian
CVE-2022-50514: linux - In the Linux kernel, the following vulnerability has been resolved: usb: gadget...
vendor_debian·2022·CVSS 5.5
CVE-2022-50514 [MEDIUM] CVE-2022-50514: linux - In the Linux kernel, the following vulnerability has been resolved: usb: gadget...
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.
Scope: local
bookworm: resolved (fixed in 6.1.4-1)
bullseye: resolved (fixed in 5.10.178-1)
forky: resolved (fixed in 6.1.4-1)
sid: resolved (fixed in 6.1.4-1)
trixie: resolved (fixed in 6.1.4-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://git.kernel.org/stable/c/216437dd64fce36791a3b6cc8f8013df36856958https://git.kernel.org/stable/c/70a3288a7586526315105c699b687d78cd32559ahttps://git.kernel.org/stable/c/80dc47e751a837106c09bec73964ff8f7ea280b4https://git.kernel.org/stable/c/95412c932b3c9e8cc4431dac4fac8fcd80d54982https://git.kernel.org/stable/c/9d4a0aca8a75550d3456c8de339a341dc4536ec5https://git.kernel.org/stable/c/ba78f7c10606719f702c04a15fb0471507b32d7bhttps://git.kernel.org/stable/c/e88b89a096af0001bcff6bf7ad2feb1486487173
2025-10-07
Published