🇰🇷 한글 설명
리눅스 커널의 AMD PM 드라이버 내 kv_parse_power_table 함수에서 Use-After-Free 취약점이 발견되었습니다. 메모리 할당 실패 시 이미 할당된 메모리를 해제하지만, 이후 제어 흐름 과정에서 해제된 메모리에 다시 접근하여 오류가 발생합니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 버린 메모리 공간을 실수로 다시 사용하려고 시도할 때 발생하는 보안 문제입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drivers/amd/pm: fix a use-after-free in kv_parse_power_table
When ps allocated by kzalloc equals to NULL, kv_parse_power_table
frees adev->pm.dpm.ps that allocated before. However, after the control
flow goes through the following call chains:
kv_parse_power_table
|-> kv_dpm_init
|-> kv_dpm_sw_init
|-> kv_dpm_fini
The adev->pm.dpm.ps is used in the for loop of kv_dpm_fini after its
first free in kv_parse_power_table and causes a use-after-free bug.
📍 영향받는 시스템
AMD PM 드라이버를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
메모리 할당 실패를 유도하거나 특정 전원 관리 설정 시나리오를 통해 발생 가능
🛡️ 대응 방법
AMD PM 드라이버의 Use-After-Free 오류가 수정된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 확인합니다.