🇰🇷 한글 설명
Linux 커널의 drm/xe 드라이버에서 VM 종료 시 런타임 전원 관리(PM) 참조가 비동기적으로 해제되어 발생하는 취약점입니다. 이로 인해 이미 종료된 VM의 오래된 페이지 폴트가 처리되는 동안 장치가 자동 절전 모드로 진입하여 커널 어설션(Assertion) 오류 및 시스템 경고를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 그래픽 장치가 일을 다 마치기도 전에 잠들기 모드로 들어가 버려서 시스템에 오류가 발생하는 문제입니다. 이미 끝난 작업이 뒤늦게 처리되려 할 때 장치가 꺼져 있어 충돌이 일어나는 상황입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Guard page-fault worker with runtime PM check
During VM teardown, the VM's runtime PM reference is dropped
asynchronously, allowing the device to autosuspend while stale page
faults belonging to the now-dead VM are still queued. When the
page-fault worker later tries to ack one of these, it calls into
guc_ct_send_locked() on an already-suspended device, tripping:
Assertion `!xe_pm_runtime_suspended(xe)` failed!
WARNING at xe_device.c:1267 xe_device_assert_mem_access+0x11c/0x140 [xe]
A live VM/exec queue always holds a PM reference while it has
outstanding work, so if the device is suspended at ack time, the
owning context is already gone and the fault is stale.
Take a runtime PM reference across the entire pagefault
queue worker to safely deliver acks for torn-down VMs.
v3:
- Move PM ref to the generic xe_pagefault_queue_work using
guard(xe_pm_runtime)(xe) instead of tracking it in the GuC
backend(Matt Brost).
v2:
- Hold PM ref across the entire batch (begin/end) instead of per-ack.
This prevents the device from autosuspending mid-batch, which would
leave write_only acks written but the end flush skipped, and skip
counter++, desyncing the cadence check.(Himal)
- Add a comment explaining stale faults.(Himal)
(cherry picked from commit fcc2431d2213dc4d04250c4f1ae87d9c3ae0d455)
[Rodrigo: Added xe_device struct for compatibility while cherry-picking]
📍 영향받는 시스템
Linux kernel (drm/xe driver component)
⚔️ 공격 벡터
로컬 사용자가 VM을 빈번하게 생성 및 종료하여 레이스 컨디션(Race Condition) 유도
🛡️ 대응 방법
Linux 커널을 최신 버전으로 업데이트하거나 해당 커밋(fcc2431d2213dc4d04250c4f1ae87d9c3ae0d455)이 적용된 패치를 적용하십시오.
🔧 검증 코드
현재 실행 중인 커널 버전과 xe 드라이버의 정보를 확인하여 패치 적용 여부를 판단합니다.
uname -r && modinfo xe | grep version