CVE-2022-50514
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-07

Last updated on: 2026-03-17

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-07
Last Modified
2026-03-17
Generated
2026-06-16
AI Q&A
2025-10-07
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel From 4.20 (inc) to 5.4.229 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Impact Analysis

The impact of this vulnerability is that the options structure can become permanently locked due to the reference count leak, which may lead to resource leaks or instability in the USB gadget HID functionality within the Linux kernel.

Executive Summary

This vulnerability is a reference count leak in the Linux kernel's USB gadget HID function (f_hid). Specifically, when the system fails to allocate the report descriptor, the reference count (refcnt) for the options structure has already been incremented but not decremented, causing the options structure to remain permanently locked.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50514. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart