Linux
iommu: Handle unmap error when iommu_debug is enabled
In the Linux kernel, the following vulnerability has been resolved: iommu: Handle unmap error when iommu_debug is enabled Sashiko noticed a latent bug where the map error flow called iommu_unmap() which calls iommu_debug_unmap_begin()/iommu_debug_unmap_end() however since this is an error path the map flow never actually established the original iommu_debug_map() it will malfunction. Lift the unmap error handling into iommu_map_nosync() and reorder it so the trace_map()/iommu_debug_map() records the partial mapping and then immediately unmaps it. This avoid creating the unbalanced tracking and provides saner tracing instead of a unmap unmatched to any map.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ccc21213f013834b484cdcc738e282f963fcfc97, < 0cd028806efc148a75d4acf711d21db335a89661
- >= ccc21213f013834b484cdcc738e282f963fcfc97, < 0735c54804c709d1b292f3b6947cfb560b2ce552
Fixed in 0cd028806efc148a75d4acf711d21db335a89661, 0735c54804c709d1b292f3b6947cfb560b2ce552
- 7.0
Fixed in 0, 7.0.11, 7.1
Mitigation
Upgrade Linux to 0cd028806efc148a75d4acf711d21db335a89661 or 0735c54804c709d1b292f3b6947cfb560b2ce552 or later.
Upgrade Linux to 0 or 7.0.11 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.