🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버에서 사용자 큐 생성 시 예약된 도어벨 매핑을 허용하는 취약점이 발견되었습니다. 기존의 xa_store_irq() 함수 사용으로 인해 동일한 BO 및 오프셋을 사용하는 새로운 큐가 기존 큐의 매핑을 덮어쓸 수 있는 문제가 있었습니다. 이 문제는 xa_insert_irq()로 교체하여 중복 매핑을 거부함으로써 해결되었습니다.
💡 쉬운 설명
그래픽 카드 드라이버에서 새로운 작업 통로를 만들 때, 이미 사용 중인 통로를 실수로 덮어씌울 수 있는 오류가 있었습니다. 이로 인해 작업 신호가 잘못 전달되거나 시스템 데이터가 엉키는 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: reject mapping a reserved doorbell to a new queue
When creating an user-queue, the user space
provides a doorbell BO handle and an offset within
the bo to obtain a doorbell.
However current implementation using xa_store_irq()
to store a doorbell, which allows a later queue created
with the same BO and offset parameters to overwrite an
existing queue and doorbell mapping.
This can cause problems like misrouting fence IRQ
processing to a wrong queue, and mislead the cleanup
process of one queue erasing the mapping of another queue.
This commit fixes this issue by replacing xa_store_irq with
xa_insert_irq, which rejects mapping a reserved
doorbell to a newly created queue
(cherry picked from commit 6244eae22966350db52faf9c1369d3b2ffc5de4e)
📍 영향받는 시스템
Linux kernel (amdgpu driver component)
⚔️ 공격 벡터
사용자 공간(User space)에서 특정 BO 핸들과 오프셋을 사용하여 기존에 예약된 도어벨 매핑을 덮어쓰는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트 (xa_insert_irq 적용 버전)
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.