CVE-2022-50514

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

published October 7, 2025

CVSS
—
EPSS
0%
Percentile
4.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00156 · 4.4th percentile
Published
2025-10-07T15:19Z
EPSS history
Timeline
  • 07 OCT 15:19Z
    usb: gadget: f_hid: fix refcount leak on error path
    cvelistv5