🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버에서 KFD 장치 초기화가 실패하더라도 초기화되지 않은 노드 배열을 참조하여 발생하는 취약점입니다. 특히 PCIe 원자성(atomics)을 지원하지 않는 Polaris 시스템에서 GPU 리셋 시 잘못된 메모리 참조로 인해 시스템 오류가 발생할 수 있습니다.
💡 쉬운 설명
그래픽 카드 드라이버가 장치를 준비하는 과정에서 오류가 발생했을 때, 준비되지 않은 부분을 건드려 컴퓨터가 멈추거나 오류가 나는 문제입니다. 특정 그래픽 카드를 사용하는 환경에서 장치를 재설정할 때 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Skip KFD mapping clear before initialization
amdgpu_amdkfd_clear_kfd_mapping() assumes that a non-NULL kfd_dev
has a fully populated node array. This is not true when KFD device
initialization fails after probe.
For example, kgd2kfd_device_init() sets num_nodes before checking
PCIe atomics support. On Polaris systems without the required atomics,
it returns before allocating nodes[0], but the kfd_dev remains attached
to the amdgpu device. A later GPU reset then dereferences nodes[0]->id.
Require the authoritative KFD initialization flag before walking the
node array, matching the existing KFD reset and teardown paths.
(cherry picked from commit 4ac1835823c47903fbb278bbf474773c46f59edc)
📍 영향받는 시스템
Linux kernel (amdgpu driver, Polaris architecture systems)
⚔️ 공격 벡터
Local (GPU 리셋 또는 특정 드라이버 초기화 실패 유도)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.