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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2025-02-26T02:11:22.834Z
- Modified: 2026-06-17T05:17:54.623Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; from 3ff67445750a84de67faaf52c6e1895cb09f2c56 before 9ec4cbf1cc55d126759051acfe328d489c5d6e60; 77e7f91231bf63e3c64eb59a2aaf5754eaea2e69; d0f35e23dafa0185f979d0c70463caa658062264; from 3.16.58 before 3.17; and 2 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.*; from 5.15.47 up to 5.15.*; from 5.17.15 up to 5.17.*; from 5.18.4 up to 5.18.*; from 5.19 up to *)
- 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; from 5.18 before 5.18.4

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/6bafee2f18af5e5ac125e42960bc65496d0e56a0> (patch)
- <https://git.kernel.org/stable/c/f20d2d3b3364ce6525c050a8b6b4c54c8c19674d> (patch)
- <https://git.kernel.org/stable/c/247d3809e45a34d9e1a3a2bb7012e31ed8b46031> (patch)
- <https://git.kernel.org/stable/c/2f0ae93ec33c8456cdfbf7876b80403a6318ebce> (patch)
- <https://git.kernel.org/stable/c/bcbb795a9e78180d74c6ab21518da87e803dfdce> (patch)
- <https://git.kernel.org/stable/c/51422046be504515eb5a591adf0f424b62f46804> (patch)
- <https://git.kernel.org/stable/c/8afb048800919d0ab10c57983940eba956339f21> (patch)
- <https://git.kernel.org/stable/c/11c65408bd0ba1d9cd1307caa38169292de9cdfb> (patch)
- <https://git.kernel.org/stable/c/9ec4cbf1cc55d126759051acfe328d489c5d6e60> (patch)

## Sources

- CVE List: [CVE-2022-49389](https://www.cve.org/CVERecord?id=CVE-2022-49389), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2022-49389](https://nvd.nist.gov/vuln/detail/CVE-2022-49389), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49389 · Whole record: https://cve.day/CVE-2022-49389.json · Rebuilt by cve.day 2026-11-25T22:58:20.492Z
