Bug 2348001 (CVE-2022-49713) - CVE-2022-49713 kernel: usb: dwc2: Fix memory leak in dwc2_hcd_init
Summary: CVE-2022-49713 kernel: usb: dwc2: Fix memory leak in dwc2_hcd_init
Keywords:
Status: NEW
Alias: CVE-2022-49713
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:14 UTC by OSIDB Bzimport
Modified: 2025-02-26 18:49 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:14:10 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: dwc2: Fix memory leak in dwc2_hcd_init

usb_create_hcd will alloc memory for hcd, and we should
call usb_put_hcd to free it when platform_get_resource()
fails to prevent memory leak.
goto error2 label instead error1 to fix this.

Comment 1 Avinash Hanwate 2025-02-26 14:28:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022631-CVE-2022-49713-8ddc@gregkh/T


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