Linux
iommu/sva: Fix crash in iommu_sva_unbind_device()
In the Linux kernel, the following vulnerability has been resolved: iommu/sva: Fix crash in iommu_sva_unbind_device() domain->mm->iommu_mm can be freed by iommu_domain_free(): iommu_domain_free() mmdrop() __mmdrop() mm_pasid_drop() After iommu_domain_free() returns, accessing domain->mm->iommu_mm may dereference a freed mm structure, leading to a crash. Fix this by moving the code that accesses domain->mm->iommu_mm to before the call to iommu_domain_free().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9f0a7ab700f8620e433b05c57fbd26c92ea186d9, < 58abeb7b9562f25bdfa2f5ae5ce803eb02e74433
- >= e37d5a2d60a338c5917c45296bac65da1382eda5, < f5daaa2c959d9f894fb5b1ab76da8612dd220a0d
- >= e37d5a2d60a338c5917c45296bac65da1382eda5, < 06e14c36e20b48171df13d51b89fe67c594ed07a
- >= 6.18.7, < 6.18.20
Fixed in 58abeb7b9562f25bdfa2f5ae5ce803eb02e74433, f5daaa2c959d9f894fb5b1ab76da8612dd220a0d, 06e14c36e20b48171df13d51b89fe67c594ed07a, 6.18.20
- 6.19
Fixed in 0, 6.18.20, 6.19.10, 7.0
Mitigation
Upgrade Linux to 58abeb7b9562f25bdfa2f5ae5ce803eb02e74433 or f5daaa2c959d9f894fb5b1ab76da8612dd220a0d or 06e14c36e20b48171df13d51b89fe67c594ed07a or 6.18.20 or later.
Upgrade Linux to 0 or 6.18.20 or 6.19.10 or 7.0 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.