🇰🇷 한글 설명
Linux 커널의 amdgpu/atom 드라이버에서 kcalloc() 메모리 할당 실패 시 WS 버퍼가 NULL 상태로 남는 취약점이 발견되었습니다. 이로 인해 atom_get_src_int() 함수에서 NULL 포인터 역참조가 발생하여 시스템 충돌이 일어날 수 있습니다.
💡 쉬운 설명
컴퓨터의 그래픽 카드를 관리하는 프로그램이 메모리를 빌려오려다 실패했을 때, 이를 제대로 확인하지 않고 사용하려다 시스템이 멈추거나 오류가 발생하는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked()
kcalloc() may fail. When WS is non-zero and allocation fails, ectx.ws
remains NULL while ectx.ws_size is set, leading to a potential NULL
pointer dereference in atom_get_src_int() when accessing WS entries.
Return -ENOMEM on allocation failure to avoid the NULL dereference.
📍 영향받는 시스템
Linux kernel (amdgpu driver component)
⚔️ 공격 벡터
메모리 할당 실패를 유도하는 특수한 상황을 통한 로컬 시스템 충돌 유발
🛡️ 대응 방법
메모리 할당 실패 시 -ENOMEM을 반환하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인