🇰🇷 한글 설명
리눅스 커널의 cpufreq pcc 모듈에서 _OSC 평가 과정 중 use-after-free 및 double free 취약점이 발견되었습니다. 두 단계로 진행되는 ACPI 객체 평가 과정에서 첫 번째 결과값을 해제한 후 길이를 초기화하지 않아, 두 번째 평가 시 해제된 메모리에 데이터를 쓰는 문제가 발생합니다.
💡 쉬운 설명
컴퓨터의 CPU 속도를 조절하는 과정에서 이미 사용이 끝난 메모리 공간을 다시 사용하거나 두 번 삭제하려고 시도하는 오류가 있습니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: pcc: fix use-after-free and double free in _OSC evaluation
pcc_cpufreq_do_osc() calls acpi_evaluate_object() twice for the
two-phase _OSC negotiation. Between the two calls it freed
output.pointer but left output.length unchanged. Since
acpi_evaluate_object() treats a non-zero length with a non-NULL
pointer as an existing buffer to write into, the second call wrote
into freed memory (use-after-free). The subsequent kfree(output.pointer)
at out_free then freed the same pointer a second time (double free).
Reset output.pointer to NULL and output.length to ACPI_ALLOCATE_BUFFER
after freeing the first result, so ACPICA allocates a fresh buffer for
each phase independently.
📍 영향받는 시스템
Linux Kernel (cpufreq: pcc 모듈 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 ACPI 객체를 통해 메모리 오류를 유도하여 권한 상승 또는 시스템 중단 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 메모리 해제 후 포인터를 초기화해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인