В ядре Linux устранена следующая уязвимость:
Accel/amdxdna: исправлена потенциальная гонка за всю жизнь amdxdna_umap.
amdxdna_umap_release() вызывает блокирующий mmu_interval_notifier_remove()
перед удалением объекта из abo->mem.umap_list. Если
aie2_populate_range() выполняется одновременно, он может получить ссылку на
amdxdna_umap, который выпускается, что может привести к потенциальному использованию после освобождения. Используйте kref_get_unless_zero() в aie2_populate_range() при получении
ссылка.
Если счетчик ссылок уже упал до нуля, отпустите выполняется, и запись пропускается.
Показать оригинальное описание (EN)
In 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.
Характеристики атаки
Последствия
Строка CVSS v3.1