{"id":"CVE-2022-49389","summary":"usb: usbip: fix a refcount leak in stub_probe()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: usbip: fix a refcount leak in stub_probe()\n\nusb_get_dev() is called in stub_device_alloc(). When stub_probe() fails\nafter that, usb_put_dev() needs to be called to release the reference.\n\nFix this by moving usb_put_dev() to sdev_free error path handling.\n\nFind this by code review.","modified":"2026-03-20T12:22:23.824215Z","published":"2025-02-26T02:11:22.834Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:1293-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49389.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/11c65408bd0ba1d9cd1307caa38169292de9cdfb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/247d3809e45a34d9e1a3a2bb7012e31ed8b46031"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f0ae93ec33c8456cdfbf7876b80403a6318ebce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/51422046be504515eb5a591adf0f424b62f46804"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6bafee2f18af5e5ac125e42960bc65496d0e56a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8afb048800919d0ab10c57983940eba956339f21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ec4cbf1cc55d126759051acfe328d489c5d6e60"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bcbb795a9e78180d74c6ab21518da87e803dfdce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f20d2d3b3364ce6525c050a8b6b4c54c8c19674d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49389.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49389"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3ff67445750a84de67faaf52c6e1895cb09f2c56"},{"fixed":"6bafee2f18af5e5ac125e42960bc65496d0e56a0"},{"fixed":"f20d2d3b3364ce6525c050a8b6b4c54c8c19674d"},{"fixed":"247d3809e45a34d9e1a3a2bb7012e31ed8b46031"},{"fixed":"2f0ae93ec33c8456cdfbf7876b80403a6318ebce"},{"fixed":"bcbb795a9e78180d74c6ab21518da87e803dfdce"},{"fixed":"51422046be504515eb5a591adf0f424b62f46804"},{"fixed":"8afb048800919d0ab10c57983940eba956339f21"},{"fixed":"11c65408bd0ba1d9cd1307caa38169292de9cdfb"},{"fixed":"9ec4cbf1cc55d126759051acfe328d489c5d6e60"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"77e7f91231bf63e3c64eb59a2aaf5754eaea2e69"},{"last_affected":"d0f35e23dafa0185f979d0c70463caa658062264"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49389.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}