🇰🇷 한글 설명
Linux 커널의 libceph 구성 요소에서 crush_decode() 함수 호출 시 경계 외 메모리 접근(Out-of-bounds access)이 발생할 수 있는 취약점입니다. CEPH_MSG_OSD_MAP 메시지 내의 버킷 알고리즘 필드 값이 서로 다를 경우, 메모리 할당 크기와 실제 처리 시 사용하는 알고리즘 값이 일치하지 않아 문제가 발생합니다.
💡 쉬운 설명
데이터를 처리할 때 미리 준비한 메모리 공간보다 더 큰 데이터를 읽거나 쓰려고 시도하여 시스템 오류를 일으킬 수 있는 보안 결함입니다. 공격자가 조작된 데이터를 보내면 시스템이 비정상적으로 동작하거나 제어권을 탈취당할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
libceph: Fix potential out-of-bounds access in crush_decode()
A message of type CEPH_MSG_OSD_MAP containing a crush map with at least
one bucket has two fields holding the bucket algorithm. If the values
in these two fields differ, an out-of-bounds access can occur. This is
the case because the first algorithm field (alg) is used to allocate
the correct amount of memory for a bucket of this type, while the second
algorithm field inside the bucket (b->alg) is used in the subsequent
processing.
This patch fixes the issue by adding a check that compares alg and
b->alg and aborts the processing in case they differ. Furthermore,
b->alg is set to 0 in this case, because the destruction of the crush
map also uses this field to determine the bucket type, which can again
result in an out-of-bounds access when trying to free the memory pointed
to by the fields of the bucket. To correctly free the memory allocated
for the bucket in such a case, the corresponding call to kfree is moved
from the algorithm-specific crush_destroy_bucket functions to the
generic crush_destroy_bucket().
📍 영향받는 시스템
Linux Kernel (libceph 모듈을 사용하는 시스템)
⚔️ 공격 벡터
조작된 CEPH_MSG_OSD_MAP 메시지를 전송하여 커널의 crush_decode() 함수를 트리거함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.