accel/amdxdna: Hold mm structure across 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 |
|
|
6.18.146.19.47.0In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Hold mm structure across iommu_sva_unbind_device()
Some tests trigger a crash in iommu_sva_unbind_device() due to accessing iommu_mm after the associated mm structure has been freed.
Fix this by taking an explicit reference to the mm structure after successfully binding the device, and releasing it only after the device is unbound. This ensures the mm remains valid for the entire SVA bind/unbind lifetime.
From the CVE record · Linux
The Linux kernel's accel/amdxdna driver can access a freed mm structure during iommu_sva_unbind_device(), causing a crash. Some tests trigger the crash; the input does not establish an attacker path, authentication requirements, or user-interaction requirements.
Engineers running Linux kernels with the accel/amdxdna driver should check their exposure; affected versions were not specified.