🇰🇷 한글 설명
Linux 커널의 drm/xe/guc 드라이버에서 버퍼 객체(BO) 해제 시 CTB 메커니즘을 통한 TLB 무효화 요청 과정 중 발생할 수 있는 취약점입니다. CTB 버퍼 객체가 조기에 해제될 경우 Use-After-Free 상황이 발생하여 시스템 크래시(Oops)를 유발할 수 있습니다. 이를 해결하기 위해 devm 관리형 해제 동작을 도입하여 리소스 해제 전 CTB 비활성화를 보장하도록 수정되었습니다.
💡 쉬운 설명
그래픽 드라이버가 메모리를 정리하는 과정에서 필요한 작업이 끝나기도 전에 메모리를 먼저 지워버려 컴퓨터가 멈추는 문제입니다. 이로 인해 시스템이 갑자기 꺼지거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/guc: Add devm release action to safely tear down CT
When a buffer object (BO) is allocated with the XE_BO_FLAG_GGTT_INVALIDATE
flag, the driver initiates TLB invalidation requests via the CTB mechanism
while releasing the BO. However a premature release of the CTB BO can lead
to system crashes, as observed in:
Oops: Oops: 0000 [#1] SMP NOPTI
RIP: 0010:h2g_write+0x2f3/0x7c0 [xe]
Call Trace:
guc_ct_send_locked+0x8b/0x670 [xe]
xe_guc_ct_send_locked+0x19/0x60 [xe]
send_tlb_invalidation+0xb4/0x460 [xe]
xe_gt_tlb_invalidation_ggtt+0x15e/0x2e0 [xe]
ggtt_invalidate_gt_tlb.part.0+0x16/0x90 [xe]
ggtt_node_remove+0x110/0x140 [xe]
xe_ggtt_node_remove+0x40/0xa0 [xe]
xe_ggtt_remove_bo+0x87/0x250 [xe]
Introduce a devm-managed release action during xe_guc_ct_init() and
xe_guc_ct_init_post_hwconfig() to ensure proper CTB disablement before
resource deallocation, preventing the use-after-free scenario.
📍 영향받는 시스템
Linux kernel (drm/xe/guc 드라이버를 사용하는 시스템)
⚔️ 공격 벡터
로컬 사용자가 특정 그래픽 메모리 관리 작업을 유도하여 시스템 크래시 유발 가능
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인