Bug 2347796 (CVE-2022-49389) - CVE-2022-49389 kernel: usb: usbip: fix a refcount leak in stub_probe()
Summary: CVE-2022-49389 kernel: usb: usbip: fix a refcount leak in stub_probe()
Keywords:
Status: NEW
Alias: CVE-2022-49389
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:07 UTC by OSIDB Bzimport
Modified: 2025-04-29 12:26 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:07:03 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 19:28:27 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022649-CVE-2022-49389-c9ca@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.