🇰🇷 한글 설명
Linux 커널의 libceph 구성 요소에서 메모리 할당 실패 시 NULL 포인터를 참조할 수 있는 취약점이 발견되었습니다. arg_map의 크기가 먼저 업데이트된 후 메모리 할당에 실패하면, 해제 과정에서 유효하지 않은 주소를 참조하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 무언가를 저장할 공간을 만들다가 실패했을 때, 비어있는 공간을 확인하려다 길을 잃고 멈춰버리는 문제입니다. 이로 인해 시스템이 갑자기 꺼지거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
libceph: make free_choose_arg_map() resilient to partial allocation
free_choose_arg_map() may dereference a NULL pointer if its caller fails
after a partial allocation.
For example, in decode_choose_args(), if allocation of arg_map->args
fails, execution jumps to the fail label and free_choose_arg_map() is
called. Since arg_map->size is updated to a non-zero value before memory
allocation, free_choose_arg_map() will iterate over arg_map->args and
dereference a NULL pointer.
To prevent this potential NULL pointer dereference and make
free_choose_arg_map() more resilient, add checks for pointers before
iterating.
📍 영향받는 시스템
Linux kernel (libceph 모듈 사용 시스템)
⚔️ 공격 벡터
메모리 할당 실패를 유도할 수 있는 특수한 상황을 조성하여 NULL 포인터 역참조 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.