🇰🇷 한글 설명
Linux 커널의 amdgpu 드라이버 내 amdgpu_acpi_enumerate_xcc() 함수에서 메모리 누수 취약점이 발견되었습니다. amdgpu_acpi_dev_init() 함수가 메모리 부족(-ENOMEM)을 반환할 경우, 할당된 xcc_info를 해제하지 않고 즉시 반환하여 메모리가 누수되는 문제입니다.
💡 쉬운 설명
컴퓨터의 그래픽 카드를 관리하는 프로그램에서 사용한 메모리를 제대로 돌려주지 않고 버리는 문제가 있습니다. 이 문제가 반복되면 시스템의 메모리가 점점 부족해져 컴퓨터가 느려지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()
In amdgpu_acpi_enumerate_xcc(), if amdgpu_acpi_dev_init() returns -ENOMEM,
the function returns directly without releasing the allocated xcc_info,
resulting in a memory leak.
Fix this by ensuring that xcc_info is properly freed in the error paths.
Compile tested only. Issue found using a prototype static analysis tool
and code review.
📍 영향받는 시스템
amdgpu 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
직접적인 공격은 어려우나, 시스템 리소스를 고갈시키는 서비스 거부(DoS) 유발 가능
🛡️ 대응 방법
amdgpu_acpi_enumerate_xcc() 함수에 오류 처리 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인