{"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-11-13T04:00:45.318291844Z","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":"77e7f91231bf63e3c64eb59a2aaf5754eaea2e69"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d0f35e23dafa0185f979d0c70463caa658062264"}]}],"versions":["v3.16.85","v3.16.84","v3.16.83","v3.16.82","v3.16.81","v3.16.80","v3.16.79","v3.16.78","v3.16.77","v3.16.76","v3.16.75","v3.16.74","v3.16.73","v3.16.72","v3.16.71","v3.16.70","v3.16.69","v3.16.68","v3.16.67","v3.16.66","v3.16.65","v3.16.64","v3.16.63","v3.16.62","v3.16.61","v3.16.60","v3.16.59","v3.16.58","v3.18.140","v3.18.139","v3.18.138","v3.18.137","v3.18.136","v3.18.135","v3.18.134","v3.18.133","v3.18.132","v3.18.131","v3.18.130","v3.18.129","v3.18.128","v3.18.127","v3.18.126","v3.18.125","v3.18.124","v3.18.123","v3.18.122","v3.18.121","v3.18.120","v3.18.119","v3.18.118","v3.18.117","v3.18.116","v3.18.115","v3.18.114","v3.18.113","v3.18.112","v3.18.111","v3.18.110"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49389.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.16.58"},{"fixed":"3.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.18.110"},{"fixed":"3.19"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.19.0"},{"fixed":"4.9.318"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.283"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.247"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.198"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.122"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.47"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.17.15"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"5.18.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49389.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}