🇰🇷 한글 설명
Linux 커널의 drm/amdkfd 드라이버에서 하드웨어 스케줄러 중단 시 발생하는 Use-After-Free 레이스 컨디션 취약점입니다. GPU 리셋 과정에서 사용자 큐가 해제된 시스템 메모리에 접근하여 데이터 구조를 손상시키고 드라이버 충돌을 유발할 수 있습니다.
💡 쉬운 설명
그래픽 카드(GPU)가 멈췄을 때 이를 복구하는 과정에서 메모리 관리 오류가 발생합니다. 이 오류로 인해 컴퓨터 시스템이 갑자기 멈추거나 데이터가 깨질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Fix mode1 reset crash issue
If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal
user space to abort the processes. After process abort exit, user queues
still use the GPU to access system memory before h/w is reset while KFD
cleanup worker free system memory and free VRAM.
There is use-after-free race bug that KFD allocate and reuse the freed
system memory, and user queue write to the same system memory to corrupt
the data structure and cause driver crash.
To fix this race, KFD cleanup worker terminate user queues, then flush
reset_domain wq to wait for any GPU ongoing reset complete, and then
free outstanding BOs.
📍 영향받는 시스템
Linux kernel (amdkfd driver component)
⚔️ 공격 벡터
하드웨어 스케줄러 중단을 유도하여 GPU 리셋 및 메모리 해제 과정에서의 레이스 컨디션 악용
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인