VYPR
Unrated severityNVD Advisory· Published Oct 7, 2025

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

CVE-2022-50514

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

85

Patches

Vulnerability mechanics

References

7

News mentions

0

No linked articles in our index yet.