usb: dwc3: gadget: Move vbus draw to workqueue context
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 99288de36020c5a6976df77e53ac449b0f75c97f · < 54aaa3b387c2f580a99dc86a9cc2eb6dfaf599a7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc3: gadget: Move vbus draw to workqueue context
Currently dwc3_gadget_vbus_draw() can be called from atomic context, which in turn invokes power-supply-core APIs. And some these PMIC APIs have operations that may sleep, leading to kernel panic.
Fix this by moving the vbus_draw into a workqueue context.
From the CVE record · Linux
The Linux kernel's USB DWC3 gadget code can call power-supply APIs from atomic context. If a PMIC API sleeps, this can cause a kernel panic; the input does not describe how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with the USB DWC3 gadget code should check their deployments; affected versions are not specified.