Skip to contentSkip to conversation

CVE-2026-90332: PCI: dwc: ep: Flush cached MSI write before unmapping the iATU

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

PCI: dwc: ep: Flush cached MSI write before unmapping the iATU

The MSI-X path already flushes any posted MSI-X write before tearing down its iATU mapping. That was added by commit c22533c66cca ("PCI: dwc: ep:
Flush MSI-X write before unmapping its ATU entry") to make sure the write reaches the Root Complex before the outbound window that translates it disappears.

The MSI path has the same problem but no equivalent flush. When the Endpoint driver caches an MSI target address and later observes that the Root Complex has changed it, dw_pcie_ep_raise_msi_irq() unmaps the existing iATU entry and reprograms it for the new address. Between the last MSI writel() and the unmap there may still be a posted write sitting in the fabric, and unmapping the iATU entry can drop or misroute that write.

Fix this by reading back from the mapped MSI window before the unmap. The readback drains any posted MSI writes through the same iATU entry that mapped them, which is the same logic the MSI-X path uses.

[mani: commit log]

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

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

	Issue introduced in 7.0 with commit 468711a40d5dfc01bf0a24c1981246a2c93ac405 and fixed in 7.2.6 with commit 914704c7b318bdaa42dce4e55f6c492190fee3b5
	Issue introduced in 7.0 with commit 468711a40d5dfc01bf0a24c1981246a2c93ac405 and fixed in 7.3-rc1 with commit 1b01d725d8b42450b86a857bab3c46856c740166
	Issue introduced in 6.19.7 with commit cc83cd7b7d73d42ee64c7fc08ce679957df0f315

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-90332

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/pci/controller/dwc/pcie-designware-ep.c drivers/pci/controller/dwc/pcie-designware.h

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/914704c7b318bdaa42dce4e55f6c492190fee3b5
	https://git.kernel.org/stable/c/1b01d725d8b42450b86a857bab3c46856c740166