🇰🇷 한글 설명
리눅스 커널의 mm/slab 구성 요소에서 자동 메모리 해제 함수인 __free(kfree)가 에러 포인터를 처리하지 못하는 취약점이 발견되었습니다. 에러 포인터가 포함된 상태로 메모리 해제를 시도할 경우 시스템 충돌(Crash)이 발생할 수 있습니다.
💡 쉬운 설명
프로그램이 메모리를 할당하다가 실패했을 때, 그 실패 신호를 잘못된 메모리 주소로 인식하여 시스템을 강제로 종료시키는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 재부팅될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mm/slab: make __free(kfree) accept error pointers
Currently, if an automatically freed allocation is an error pointer that
will lead to a crash. An example of this is in wm831x_gpio_dbg_show().
171 char *label __free(kfree) = gpiochip_dup_line_label(chip, i);
172 if (IS_ERR(label)) {
173 dev_err(wm831x->dev, "Failed to duplicate label\n");
174 continue;
175 }
The auto clean up function should check for error pointers as well,
otherwise we're going to keep hitting issues like this.
📍 영향받는 시스템
에러 포인터 처리가 미흡한 특정 버전의 Linux Kernel (mm/slab 관련 모듈 사용 시)
⚔️ 공격 벡터
로컬 공격자가 특정 커널 드라이버(예: wm831x)의 동작을 유도하여 에러 포인터를 생성함으로써 시스템 충돌 유발
🛡️ 대응 방법
커널 패치를 적용하여 __free(kfree) 함수가 에러 포인터를 검사하고 안전하게 처리하도록 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 보안 패치 버전인지 확인