USB: dwc2: shut down wakeup timer before freeing HCD state
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7359d482eb4d3967cc8be354405ae6be6eaf732c · < 79ba37dd38a321cb32a79332a3e3c68dd334dca9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
USB: dwc2: shut down wakeup timer before freeing HCD state
dwc2_wakeup_detected() accesses the DWC2 host state and can rearm the wakeup timer. dwc2_hcd_free() currently deletes the timer only after freeing host-owned state, and timer_delete() does not synchronize a callback or prevent it from being queued again.
Stop and shut down the timer in dwc2_hcd_release(), before the HCD resources are freed. This covers both the HCD initialization error path and normal HCD removal.
From the CVE record · Linux
The USB dwc2 wakeup timer can access host state after that state is freed during HCD initialization failure or removal. The input does not specify whether an attacker can trigger this, or any network, authentication, or user-interaction requirements.
Engineers running Linux kernels with the USB dwc2 driver should check their versions; affected versions were not provided.