iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices
Previously, the domain_context_clear() function incorrectly called pci_for_each_dma_alias() to set up context entries for non-PCI devices. This could lead to kernel hangs or other unexpected behavior.
Add a check to only call pci_for_each_dma_alias() for PCI devices. For non-PCI devices, domain_context_clear_one() is called directly.
From the CVE record · Linux
The Linux kernel's IOMMU VT-d code can incorrectly call pci_for_each_dma_alias() for non-PCI devices when clearing domain contexts. This can cause kernel hangs or other unexpected behavior. The input does not specify attacker capabilities, access requirements, or user interaction.
Engineers running Linux kernels with IOMMU VT-d should check their kernel versions against the vendor advisory; affected versions are not specified.