iommu/amd: Fix clone_alias() to use the original device's devid
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.5, Kernel 166a08644aa509e5d27e154d7fa774f4181df9e0, Kernel 20b3c566e2702e5d4d0545be8a97029a2eebcc0e and 9 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.4.17 <5.5, >=3332364e4ebc0581d133a334645a20fd13b580f1 <166a08644aa509e5d27e154d7fa774f4181df9e0, >=3332364e4ebc0581d133a334645a20fd13b580f1 <20b3c566e2702e5d4d0545be8a97029a2eebcc0e, >=3332364e4ebc0581d133a334645a20fd13b580f1 <880a2e6c887c8f51870c0a00dfba3c8519178b65, >=3332364e4ebc0581d133a334645a20fd13b580f1 <dae251ff11d2d2208a029f98923756831cefec46, >=3332364e4ebc0581d133a334645a20fd13b580f1 <dbd76a537d8cb814e7f5b795ab21ecb7949c821d, >=3332364e4ebc0581d133a334645a20fd13b580f1 <faad224fe0f0857a04ff2eb3c90f0de57f47d0f3, =1f03a258f20f1699ede29bb40804074db9398a0d, =5.5 | 5.5, 166a08644aa509e5d27e154d7fa774f4181df9e0, 20b3c566e2702e5d4d0545be8a97029a2eebcc0e, 880a2e6c887c8f51870c0a00dfba3c8519178b65, dae251ff11d2d2208a029f98923756831cefec46, dbd76a537d8cb814e7f5b795ab21ecb7949c821d, faad224fe0f0857a04ff2eb3c90f0de57f47d0f3 |
| linux-kernel: Kernel | >=5.5.0 <6.1.191, >=6.13.0 <6.18.33, >=6.19.0 <7.0.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.91, >=5.4.17 <5.5 | 6.1.191, 6.18.33, 7.0.10, 6.6.160, 6.12.91, 5.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket