usb: usbip: fix a refcount leak in stub_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3ff67445750a84de67faaf52c6e1895cb09f2c56 · < 51422046be504515eb5a591adf0f424b62f46804| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s USB/IP stub_probe() can leak a USB device reference if it fails after stub_device_alloc() calls usb_get_dev(). The input does not describe how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with the affected USB/IP code should check their builds; affected versions are not specified.