What’s Vulnerable › Vulnerabilities

CVE-2022-50514: usb: gadget: f_hid: fix refcount leak on error path

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 products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.270, 5.10.163, 5.15.86, 5.4.229. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50514 or the next vulnerability affects your stack