CVE-2026-90030: usb: dwc3: clear forceRM when issuing EndTransfer
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc3: clear forceRM when issuing EndTransfer
The forceRM bit of the DEPCMD register controls the behavior of the EndTransfer command used to stop an active transfer. Older DWC3 programming guide revisions recommended setting forceRM=1 when issuing EndTransfer. Newer programming guide revisions recommend issuing EndTransfer with forceRM cleared.
With forceRM=1 on DWC_usb31 v2.00a and v2.10a controllers, a transfer aborted through the ep_dequeue path was observed to remain active after EndTransfer completion. A subsequent StartTransfer issued on the same endpoint triggered writes associated with the aborted transfer. This resulted in an SMMU fault because the transfer buffer had already been unmapped during EndTransfer command-completion cleanup.
Using forceRM=0 eliminates the issue. Although older DWC3 programming guide revisions recommended setting forceRM=1, no issues are known from using forceRM=0. Clear forceRM when issuing EndTransfer to provide consistent EndTransfer behavior and align with newer programming guide recommendations.
The Linux kernel CVE team has assigned CVE-2026-90030 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit 1e43c86d84fb0503e82a143e017f35421498fc1a and fixed in 6.18.51 with commit 0afe5c31612de3d18cc6d16e616da4a48ba1e5a2 Issue introduced in 6.9 with commit 1e43c86d84fb0503e82a143e017f35421498fc1a and fixed in 7.2.5 with commit e01408ee52fe5cb2d0b43f47f359336af2b6c316 Issue introduced in 6.9 with commit 1e43c86d84fb0503e82a143e017f35421498fc1a and fixed in 7.3-rc2 with commit b58e6200450d350314db0ecda7d6d1bde3281e80 Issue introduced in 6.6.37 with commit ab99c4be945724b032cc55e05c6738fe1d84bf70
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-90030
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/dwc3/ep0.c drivers/usb/dwc3/gadget.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/0afe5c31612de3d18cc6d16e616da4a48ba1e5a2 https://git.kernel.org/stable/c/e01408ee52fe5cb2d0b43f47f359336af2b6c316 https://git.kernel.org/stable/c/b58e6200450d350314db0ecda7d6d1bde3281e80