Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06AED3B47EF for ; Wed, 25 Mar 2026 10:31:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434665; cv=none; b=VqS28aCSHtDcCoFHHEgrga9p9WkhpYA5RBckEC7YLdDJyyclfVJLnzbwgqIhGKr9CN2Odva+hHq1/M1rcyW1CuAVzv8jbpv/2xMc/N6mQAIEqpTTKXgkdmwa91l3A+Ly/CeYRnoc8EC2LlfG+GUAYjHwZHzMEuBrizDCaJwgfMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434665; c=relaxed/simple; bh=olTuFT16Z/ozuSOO8HIeng7aKHpIqb3cZa2Xwjc5mJ0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=smF2/IVwDDZxKna071lRx7I+mhuFNHAjYH+ZF+6Se1gzc6FvCiIyB5BIb0TLSaATJWszSNGoKx9pdCFvjNSDHIPPMmhOn+cS9pP0+Y4cPyJBKUuwPAWYg/e7UaNiYOppGADrC+febFNaIJSg7WK1EyDWzSqTv/WUL13N2ZZIJSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x58EWtz0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x58EWtz0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31584C4CEF7; Wed, 25 Mar 2026 10:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434664; bh=olTuFT16Z/ozuSOO8HIeng7aKHpIqb3cZa2Xwjc5mJ0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=x58EWtz0m77OcH7apmUQUH6EBSsCWfp22M9VuJMusAd1R0D/h5S8cTN6Xw+/UgWAf FA8CwoNwaJsXuWQRWWvJ8LZ24PKyftQiN0ulKcMEgR6ecGPEfxnv33dcEeOng+GLtl uiO1u1tfFTkcxvzRJMuPYfH6j+QG49/nH/jM3PpU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23361: PCI: dwc: ep: Flush MSI-X write before unmapping its ATU entry Date: Wed, 25 Mar 2026 11:27:45 +0100 Message-ID: <2026032539-CVE-2026-23361-bd5c@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3790; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NFRKHZzDrDVvxmyAnIjn6SdSn3vN8ADlsfuWbm4r7iE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd8Q/VOkuXfVGL/l8cKXCidpuS6ZM6f/6EWoPHjnNP vu55a9pRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkehvDPGsjM0+777dm5j7g 93ia1ssvJtQwl2HBlrCagoqTE6uuHzHYvY635uSzD+wdAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: PCI: dwc: ep: Flush MSI-X write before unmapping its ATU entry Endpoint drivers use dw_pcie_ep_raise_msix_irq() to raise an MSI-X interrupt to the host using a writel(), which generates a PCI posted write transaction. There's no completion for posted writes, so the writel() may return before the PCI write completes. dw_pcie_ep_raise_msix_irq() also unmaps the outbound ATU entry used for the PCI write, so the write races with the unmap. If the PCI write loses the race with the ATU unmap, the write may corrupt host memory or cause IOMMU errors, e.g., these when running fio with a larger queue depth against nvmet-pci-epf: arm-smmu-v3 fc900000.iommu: 0x0000010000000010 arm-smmu-v3 fc900000.iommu: 0x0000020000000000 arm-smmu-v3 fc900000.iommu: 0x000000090000f040 arm-smmu-v3 fc900000.iommu: 0x0000000000000000 arm-smmu-v3 fc900000.iommu: event: F_TRANSLATION client: 0000:01:00.0 sid: 0x100 ssid: 0x0 iova: 0x90000f040 ipa: 0x0 arm-smmu-v3 fc900000.iommu: unpriv data write s1 "Input address caused fault" stag: 0x0 Flush the write by performing a readl() of the same address to ensure that the write has reached the destination before the ATU entry is unmapped. The same problem was solved for dw_pcie_ep_raise_msi_irq() in commit 8719c64e76bf ("PCI: dwc: ep: Cache MSI outbound iATU mapping"), but there it was solved by dedicating an outbound iATU only for MSI. We can't do the same for MSI-X because each vector can have a different msg_addr and the msg_addr may be changed while the vector is masked. [bhelgaas: commit log] The Linux kernel CVE team has assigned CVE-2026-23361 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit beb4641a787df79a1423a8789d185b6b78fcbfea and fixed in 6.12.77 with commit a7afb8f810c04845fdfc58c57d9cf0cc5f23ced0 Issue introduced in 4.19 with commit beb4641a787df79a1423a8789d185b6b78fcbfea and fixed in 6.18.17 with commit 6f60a783860c77b309f7d81003b6a0c73feca49e Issue introduced in 4.19 with commit beb4641a787df79a1423a8789d185b6b78fcbfea and fixed in 6.19.7 with commit eaa6a56801ddd2d9b4980f19e7fe002b00994804 Issue introduced in 4.19 with commit beb4641a787df79a1423a8789d185b6b78fcbfea and fixed in 7.0-rc2 with commit c22533c66ccae10511ad6a7afc34bb26c47577e3 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-23361 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 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/a7afb8f810c04845fdfc58c57d9cf0cc5f23ced0 https://git.kernel.org/stable/c/6f60a783860c77b309f7d81003b6a0c73feca49e https://git.kernel.org/stable/c/eaa6a56801ddd2d9b4980f19e7fe002b00994804 https://git.kernel.org/stable/c/c22533c66ccae10511ad6a7afc34bb26c47577e3