CVE-2026-63927: usb: dwc2: Fix use after free in debug code
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc2: Fix use after free in debug code
We're not allowed to dereference "urb" after calling usb_hcd_giveback_urb() so save the urb->status ahead of time.
The Linux kernel CVE team has assigned CVE-2026-63927 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 5.10.259 with commit d5fc183ed614aeba6779cc992325be560f9a4451 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 5.15.210 with commit 63b0dafa676aad4d0c3f01a61ad8e2990907660c Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 6.1.176 with commit 9fe1d84f7e2cf33634e8afb7f4b7f8de182dd913 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 6.6.143 with commit 0584af4fe40fa5e254a05d69ce658746de641708 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 6.12.93 with commit a15eeeceb94cbc04edef395e4d777ff554bdc27d Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 6.18.35 with commit 84ea928ed584756e59c6ac09736f12d1db95ded0 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 7.0.12 with commit 6d0b79d1d1118145e48a68192b6d733e39387053 Issue introduced in 3.10 with commit 7359d482eb4d3967cc8be354405ae6be6eaf732c and fixed in 7.1 with commit 9ea06a3fbf9f16e0d98c52cb3b99642be15ec281
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-63927
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/d5fc183ed614aeba6779cc992325be560f9a4451 https://git.kernel.org/stable/c/63b0dafa676aad4d0c3f01a61ad8e2990907660c https://git.kernel.org/stable/c/9fe1d84f7e2cf33634e8afb7f4b7f8de182dd913 https://git.kernel.org/stable/c/0584af4fe40fa5e254a05d69ce658746de641708 https://git.kernel.org/stable/c/a15eeeceb94cbc04edef395e4d777ff554bdc27d https://git.kernel.org/stable/c/84ea928ed584756e59c6ac09736f12d1db95ded0 https://git.kernel.org/stable/c/6d0b79d1d1118145e48a68192b6d733e39387053 https://git.kernel.org/stable/c/9ea06a3fbf9f16e0d98c52cb3b99642be15ec281