Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
ccc21213f013834b484cdcc738e282f963fcfc97 to < 0cd028806efc148a75d4acf711d21db335a89661affectedccc21213f013834b484cdcc738e282f963fcfc97 to < 0735c54804c709d1b292f3b6947cfb560b2ce552affected
Linux Linux
Default version status: affected
7.0affected0 to < 7.0unaffected7.0.11 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected