usb: dwc3: st: fix probed platform device ref count on probe error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f83fca0707c66e36f14efef7f68702cb12de70b7 · < e1e5e8ea2731150d5ba7c707f9e02fafebcfeb49| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc3: st: fix probed platform device ref count on probe error path
The probe function never performs any paltform device allocation, thus error path "undo_platform_dev_alloc" is entirely bogus. It drops the reference count from the platform device being probed. If error path is triggered, this will lead to unbalanced device reference counts and premature release of device resources, thus possible use-after-free when releasing remaining devm-managed resources.
From the CVE record · Linux
The Linux kernel’s USB DWC3 ST probe error path incorrectly drops a reference to the platform device being probed. If that error path runs, device resources may be released prematurely, causing a possible use-after-free when remaining managed resources are released. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with the USB DWC3 ST driver should check whether their versions are affected; no affected versions are specified.