🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버에서 amdgpu_ras_init() 함수 실행 중 오류가 발생할 경우, 할당된 con 구조체를 해제하지 않고 반환하여 메모리 누수가 발생하는 취약점입니다. 이 문제는 오류 발생 시 적절한 정리 라벨(release_con)로 이동하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 그래픽 카드 관련 소프트웨어에서 특정 오류가 발생할 때 사용했던 메모리를 제대로 돌려주지 않고 계속 쌓아두는 문제가 있었습니다. 이로 인해 시스템의 메모리가 조금씩 낭비될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Fix memory leak in amdgpu_ras_init()
When amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function
returns directly without freeing the allocated con structure, leading
to a memory leak.
Fix this by jumping to the release_con label to properly clean up the
allocated memory before returning the error code.
Compile tested only. Issue found using a prototype static analysis tool
and code review.
📍 영향받는 시스템
Linux kernel (amdgpu driver 포함 버전)
⚔️ 공격 벡터
로컬 시스템에서 특정 하드웨어 초기화 오류를 유도하여 메모리 자원을 점진적으로 고갈시킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인