CVE-2022-50514
kernel: usb: gadget: f_hid: fix refcount leak on error path
Loading…
Severity
UnknownRed Hat Product Security
CVSS
Review impact separately from score.
Published · October 7, 2025
Updated · June 30, 2026
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.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CWE not specified