CVE-2022-49713Published Feb 26, 2025 · Feb 26Updated 2d ago
usb: dwc2: Fix memory leak in dwc2_hcd_init
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 856e6e8e0f9300befa87dde09edb578555c99a82 · < 52bfcedbfd5bf962dbdcb6e761f4d0dd3ba26dfd| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's dwc2_hcd_init function can leak memory if platform_get_resource() fails after usb_create_hcd allocates an HCD. The input does not specify how an attacker could trigger this failure or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels with the USB dwc2 driver should check their versions; affected versions are not specified.