CVE-2026-53053: iommu/amd: Fix clone_alias() to use the original device's devid
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommu/amd: Fix clone_alias() to use the original device's devid
Currently clone_alias() assumes first argument (pdev) is always the original device pointer. This function is called by pci_for_each_dma_alias() which based on topology decides to send original or alias device details in first argument.
This meant that the source devid used to look up and copy the DTE may be incorrect, leading to wrong or stale DTE entries being propagated to alias device.
Fix this by passing the original pdev as the opaque data argument to both the direct clone_alias() call and pci_for_each_dma_alias(). Inside clone_alias(), retrieve the original device from data and compute devid from it.
The Linux kernel CVE team has assigned CVE-2026-53053 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit 3332364e4ebc0581d133a334645a20fd13b580f1 and fixed in 6.12.91 with commit dbd76a537d8cb814e7f5b795ab21ecb7949c821d Issue introduced in 5.5 with commit 3332364e4ebc0581d133a334645a20fd13b580f1 and fixed in 6.18.33 with commit 20b3c566e2702e5d4d0545be8a97029a2eebcc0e Issue introduced in 5.5 with commit 3332364e4ebc0581d133a334645a20fd13b580f1 and fixed in 7.0.10 with commit dae251ff11d2d2208a029f98923756831cefec46 Issue introduced in 5.5 with commit 3332364e4ebc0581d133a334645a20fd13b580f1 and fixed in 7.1 with commit faad224fe0f0857a04ff2eb3c90f0de57f47d0f3 Issue introduced in 5.4.17 with commit 1f03a258f20f1699ede29bb40804074db9398a0d
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-53053
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/iommu/amd/iommu.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/dbd76a537d8cb814e7f5b795ab21ecb7949c821d https://git.kernel.org/stable/c/20b3c566e2702e5d4d0545be8a97029a2eebcc0e https://git.kernel.org/stable/c/dae251ff11d2d2208a029f98923756831cefec46 https://git.kernel.org/stable/c/faad224fe0f0857a04ff2eb3c90f0de57f47d0f3