5.5medium
usb: usbip: fix a refcount leak in stub_probe()
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 6bafee2f18af5e5ac125e42960bc65496d0e56a0, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before f20d2d3b3364ce6525c050a8b6b4c54c8c19674d, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 247d3809e45a34d9e1a3a2bb7012e31ed8b46031, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 2f0ae93ec33c8456cdfbf7876b80403a6318ebce, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before bcbb795a9e78180d74c6ab21518da87e803dfdce, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 51422046be504515eb5a591adf0f424b62f46804, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 8afb048800919d0ab10c57983940eba956339f21, from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 11c65408bd0ba1d9cd1307caa38169292de9cdfb and 6 more Not affected: before 3.19, from 4.9.318 up to 4.9.*, from 4.14.283 up to 4.14.*, from 4.19.247 up to 4.19.*, from 5.4.198 up to 5.4.*, from 5.10.122 up to 5.10.* | CVE List |
| linux linux_kernel | from 3.16.58 before 3.17, from 3.18.110 before 4.9.318, from 4.10 before 4.14.283, from 4.15 before 4.19.247, from 4.20 before 5.4.198, from 5.5 before 5.10.122, from 5.11 before 5.15.47, from 5.16 before 5.17.15 and 1 more | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: usbip: se corrige una pérdida de recuento de referencias en stub_probe(). Se llama a usb_get_dev() en stub_device_alloc(). Cuando stub_probe() falla después de eso, se debe llamar a usb_put_dev() para liberar la referencia. Corrija esto moviendo usb_put_dev() a la gestión de la ruta de error sdev_free. Encuentre esto mediante la revisión del código.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49389 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2022-49389 changed 2026-06-17 | Public domain |