🇰🇷 한글 설명
Linux 커널의 amdxdna 드라이버에서 amdxdna_umap 객체의 수명 주기와 관련된 레이스 컨디션 취약점이 발견되었습니다. 객체가 메모리 목록에서 제거되기 전에 해제 프로세스가 먼저 호출되어, 동시에 실행되는 프로세스가 이미 해제 중인 객체에 접근할 때 Use-After-Free(UAF) 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리를 관리하는 과정에서 두 가지 작업이 동시에 일어나 충돌이 발생하는 문제입니다. 이로 인해 이미 삭제된 메모리 영역에 접근하려고 시도하다가 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
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.
📍 영향받는 시스템
Linux kernel (amdxdna driver component)
⚔️ 공격 벡터
동시성 제어 미흡을 이용한 레이스 컨디션 공격을 통한 Use-After-Free 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 kref_get_unless_zero() 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.