🇰🇷 한글 설명
Linux 커널의 drm/amdkfd 구성 요소에서 pqm_create_queue() 함수 호출 시 QID 비트 누수가 발생하는 취약점입니다. MES가 활성화된 상태에서 메모리 할당 실패 시 정리 과정을 거치지 않아, 예약된 QID 비트가 해제되지 않고 영구적으로 점유됩니다. 이로 인해 시간이 지남에 따라 사용 가능한 큐 슬롯이 고갈될 수 있습니다.
💡 쉬운 설명
컴퓨터가 작업을 처리하기 위해 사용하는 '번호표(QID)'를 빌려준 뒤, 오류가 발생했을 때 번호표를 다시 회수하지 못하는 문제입니다. 이 문제가 반복되면 사용할 수 있는 번호표가 모두 바닥나서 시스템이 더 이상 새로운 작업을 처리할 수 없게 됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: fix QID bit leak in pqm_create_queue()
When MES is enabled and amdgpu_amdkfd_alloc_kernel_mem() fails during
the first queue creation for a process, pqm_create_queue() returns
early via 'return retval' without going through the err_create_queue
cleanup label.
This means clear_bit(*qid, pqm->queue_slot_bitmap) is never called,
leaving the reserved QID bit permanently set in queue_slot_bitmap.
Over time this leaks QID slots, potentially exhausting all available
queue slots.
Fix this by replacing 'return retval' with 'goto err_allocate_pqn'
so that clear_bit() is always called on the error path without
touching the uninitialized pqn pointer.
AILIKFD-813
(cherry picked from commit a107f74c38edbb80d6ab64dcaeeb292c14e9779f)
📍 영향받는 시스템
MES(Memory Encryption Support)가 활성화된 Linux 커널 (amdkfd 드라이버 포함 버전)
⚔️ 공격 벡터
직접적인 공격보다는 시스템 운영 중 메모리 할당 실패를 유도하여 자원 고갈(DoS)을 일으키는 방식
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 버전인지 배포판 보안 공지를 통해 확인
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux