В ядре Linux была устранена следующая уязвимость: USB: dwc2: отключение таймера пробуждения перед освобождением состояния HCD dwc2_wakeup_detected() получает доступ к хост-состоянию DWC2 и может перевооружить таймер пробуждения. dwc2_hcd_free() в настоящее время удаляет таймер только после освобождения состояния хоста, а timer_delete() не синхронизирует вызов снова. Остановите и выключите таймер в dwc2_hcd_release(), прежде чем ресурсы HCD будут освобождены. Это касается как пути инициализации HCD, так и обычного удаления HCD.
Показать оригинальное описание (EN)
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.