accel/amdxdna: Fix potential amdxdna_umap lifetime race
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.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Fix potential amdxdna_umap lifetime race
amdxdna_umap_release() calls the blocking mmu_interval_notifier_remove() before removing the object from abo->mem.umap_list. If aie2_populate_range() runs concurrently, it may obtain a reference to an amdxdna_umap that is being released, leading to a potential use-after-free.
Use kref_get_unless_zero() in aie2_populate_range() when acquiring a reference. If the reference count has already dropped to zero, release is in progress and the entry is skipped.
From the CVE record · Linux
The Linux kernel’s accel/amdxdna component has a lifetime race involving amdxdna_umap objects. If aie2_populate_range() runs while an object is being released, it may reference that object after it is freed. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the accel/amdxdna component should check their versions against the vendor advisory; affected versions were not provided.