CVE-2022-50514

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

MEDIUM
5.5
CVSS Score
Published: October 7, 2025 at 03:19 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.19 ≤ v < 4.19.2703.19 ≤ v < 5.10.1633.19 ≤ v < 5.15.863.19 ≤ v < 5.4.2293.19 ≤ v < 6.0.163.19 ≤ v < 6.1.23.19 ≤ v < 6.24.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.865.16 ≤ v < 6.0.165.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.221a9476a7ba847e413bf1c144d7c614532aed6dd3.19
Vendor states this is fixed in 216437dd64fce36791a3b6cc8f8013df36856958 (fixed)
Vendor states this is fixed in 70a3288a7586526315105c699b687d78cd32559a (fixed)
Vendor states this is fixed in 80dc47e751a837106c09bec73964ff8f7ea280b4 (fixed)
Vendor states this is fixed in 95412c932b3c9e8cc4431dac4fac8fcd80d54982 (fixed)
Vendor states this is fixed in 9d4a0aca8a75550d3456c8de339a341dc4536ec5 (fixed)
Vendor states this is fixed in ba78f7c10606719f702c04a15fb0471507b32d7b (fixed)
Vendor states this is fixed in e88b89a096af0001bcff6bf7ad2feb1486487173 (fixed)
Vendor states this is fixed in 3.19 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card