CVE-2026-64349: usb: dwc3: fix dwc3_readl() and dwc3_writel() calls in dwc3_ulpi_setup()

Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 10:49:26 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072518-CVE-2026-64349-a9d0@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

usb: dwc3: fix dwc3_readl() and dwc3_writel() calls in dwc3_ulpi_setup()

The dwc3_ulpi_setup() calls the register read and write calls with
dwc3->regs when both these calls take the dwc3 structure directly.

Chnage these two calls to fix the following sparse warning, and
possibly a nasty bug in the dwc3_ulpi_setup() code:

drivers/usb/dwc3/core.c:796:45: warning: incorrect type in argument 1 (different address spaces)
drivers/usb/dwc3/core.c:796:45:    expected struct dwc3 *dwc
drivers/usb/dwc3/core.c:796:45:    got void [noderef] __iomem *regs
drivers/usb/dwc3/core.c:798:40: warning: incorrect type in argument 1 (different address spaces)
drivers/usb/dwc3/core.c:798:40:    expected struct dwc3 *dwc
drivers/usb/dwc3/core.c:798:40:    got void [noderef] __iomem *regs

The Linux kernel CVE team has assigned CVE-2026-64349 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.18.32 with commit 476ee6389120e1900290b46081b3a12b54e05672 and fixed in 6.18.40 with commit 41a4e80d5af04855e68ac88f5e2cd07fa67287f8
	Issue introduced in 7.0 with commit 9accc68b1cf0a2b220f51d53641128bb32598070 and fixed in 7.1.4 with commit 4349e487a1149ff33b65d53427b8aca57f2e4578
	Issue introduced in 7.0 with commit 9accc68b1cf0a2b220f51d53641128bb32598070 and fixed in 7.2-rc3 with commit e0f844d9d74200d311c6438a0f04270834ba5365

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-64349
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/core.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/41a4e80d5af04855e68ac88f5e2cd07fa67287f8
	https://git.kernel.org/stable/c/4349e487a1149ff33b65d53427b8aca57f2e4578
	https://git.kernel.org/stable/c/e0f844d9d74200d311c6438a0f04270834ba5365