Linux
iommu/amd: Fix clone_alias() to use the original device's devid
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3332364e4ebc0581d133a334645a20fd13b580f1, < 880a2e6c887c8f51870c0a00dfba3c8519178b65
- >= 3332364e4ebc0581d133a334645a20fd13b580f1, < 166a08644aa509e5d27e154d7fa774f4181df9e0
- >= 3332364e4ebc0581d133a334645a20fd13b580f1, < dbd76a537d8cb814e7f5b795ab21ecb7949c821d
- >= 3332364e4ebc0581d133a334645a20fd13b580f1, < 20b3c566e2702e5d4d0545be8a97029a2eebcc0e
- >= 3332364e4ebc0581d133a334645a20fd13b580f1, < dae251ff11d2d2208a029f98923756831cefec46
- >= 3332364e4ebc0581d133a334645a20fd13b580f1, < faad224fe0f0857a04ff2eb3c90f0de57f47d0f3
- 1f03a258f20f1699ede29bb40804074db9398a0d
- >= 5.4.17, < 5.5
Fixed in 880a2e6c887c8f51870c0a00dfba3c8519178b65, 166a08644aa509e5d27e154d7fa774f4181df9e0, dbd76a537d8cb814e7f5b795ab21ecb7949c821d, 20b3c566e2702e5d4d0545be8a97029a2eebcc0e, dae251ff11d2d2208a029f98923756831cefec46, faad224fe0f0857a04ff2eb3c90f0de57f47d0f3, 5.5
- 5.5
Fixed in 0, 6.1.191, 6.6.160, 6.12.91, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to 880a2e6c887c8f51870c0a00dfba3c8519178b65 or 166a08644aa509e5d27e154d7fa774f4181df9e0 or dbd76a537d8cb814e7f5b795ab21ecb7949c821d or 20b3c566e2702e5d4d0545be8a97029a2eebcc0e or dae251ff11d2d2208a029f98923756831cefec46 or faad224fe0f0857a04ff2eb3c90f0de57f47d0f3 or 5.5 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 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.