Linux
PCI: dwc: ep: Flush cached MSI write before unmapping the iATU
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]
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 468711a40d5dfc01bf0a24c1981246a2c93ac405, < 914704c7b318bdaa42dce4e55f6c492190fee3b5
- >= 468711a40d5dfc01bf0a24c1981246a2c93ac405, < 1b01d725d8b42450b86a857bab3c46856c740166
- cc83cd7b7d73d42ee64c7fc08ce679957df0f315
- >= 6.19.7, < 6.20
Fixed in 914704c7b318bdaa42dce4e55f6c492190fee3b5, 1b01d725d8b42450b86a857bab3c46856c740166, 6.20
- 7.0
Fixed in 0, 7.2.6, 7.3
Mitigation
Upgrade Linux to 914704c7b318bdaa42dce4e55f6c492190fee3b5 or 1b01d725d8b42450b86a857bab3c46856c740166 or 6.20 or later.
Upgrade Linux to 0 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.