CVE-2026-98762: USB: dwc2: shut down wakeup timer before freeing HCD state
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-98762 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 6.12.113 with commit 441be312fce927443eae2821f502344d953c38bb Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 6.18.56 with commit 4333174ea52c863a50bb3e0a4726bf9f7cdf7524 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 7.2.10 with commit 79ba37dd38a321cb32a79332a3e3c68dd334dca9 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 7.3-rc6 with commit fd772af9512cdecb83de34a461801533828e77fd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98762
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/usb/dwc2/hcd.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/441be312fce927443eae2821f502344d953c38bb https://git.kernel.org/stable/c/4333174ea52c863a50bb3e0a4726bf9f7cdf7524 https://git.kernel.org/stable/c/79ba37dd38a321cb32a79332a3e3c68dd334dca9 https://git.kernel.org/stable/c/fd772af9512cdecb83de34a461801533828e77fd