What’s Vulnerable › Vulnerabilities

CVE-2022-49389: usb: usbip: fix a refcount leak in stub_probe()

Description

In the Linux kernel, the following vulnerability has been resolved: usb: usbip: fix a refcount leak in stub_probe() usb_get_dev() is called in stub_device_alloc(). When stub_probe() fails after that, usb_put_dev() needs to be called to release the reference. Fix this by moving usb_put_dev() to sdev_free error path handling. Find this by code review.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 3.17, 4.14.283, 4.19.247, 4.9.318. Check the vendor advisory for mitigations.

References

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