iommu/sva: Fix crash in iommu_sva_unbind_device()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.18.206.19.107.0In 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().
From the CVE record · Linux
The Linux kernel's iommu_sva_unbind_device() can access a freed mm structure after iommu_domain_free() returns, causing a crash. The input does not specify whether an attacker can trigger this, or any required access or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.