🇰🇷 한글 설명
Linux 커널의 accel/amdxdna 드라이버에서 PM(전원 관리) 재개 과정 중 데드락(교착 상태)이 발생할 수 있는 취약점이 발견되었습니다. amdxdna_hwctx_sync_debug_bo() 함수가 xdna->dev_lock을 보유한 상태에서 콜백을 호출할 때, 해당 콜백이 다시 동일한 락을 요청하게 되어 시스템이 멈출 수 있습니다.
💡 쉬운 설명
컴퓨터의 전원 관리 기능이 작동할 때, 특정 작업이 서로의 자원을 기다리며 무한히 대기하는 상태에 빠져 시스템이 응답하지 않을 수 있습니다. 이는 주로 AMD 관련 하드웨어 가속 드라이버를 사용하는 환경에서 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
accel/amdxdna: Prevent PM resume deadlock in hwctx_sync_debug_bo()
amdxdna_hwctx_sync_debug_bo() invokes the hardware hwctx_sync_debug_bo()
callback while holding xdna->dev_lock.
The callback may call amdxdna_cmd_submit(), which in turn calls
amdxdna_pm_resume_get(). If the device is suspended,
amdxdna_pm_resume_get() may synchronously execute amdxdna_pm_resume(),
which also acquires xdna->dev_lock, resulting in a deadlock.
Avoid the deadlock by calling amdxdna_pm_resume_get() before holding
xdna->dev_lock in both amdxdna_hwctx_sync_debug_bo() and
amdxdna_drm_config_hwctx_ioctl()
📍 영향받는 시스템
Linux kernel (accel/amdxdna 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 명령(ioctl)을 호출하여 시스템을 데드락 상태로 유도할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.