🇰🇷 한글 설명
Linux 커널의 dm-pcache 구성 요소에서 논리적 키 오프셋이 장치 크기를 초과할 때 발생하는 취약점입니다. 잘못된 오프셋 값이 배열 인덱스로 사용되어 범위를 벗어난 메모리 영역에 쓰기 작업이 수행될 수 있습니다.
💡 쉬운 설명
데이터를 저장하는 위치를 가리키는 번호가 실제 저장 공간보다 큰 숫자로 입력될 수 있는 오류입니다. 이로 인해 시스템의 엉뚱한 메모리 영역에 데이터가 기록되어 시스템이 불안정해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dm-pcache: bound the logical key offset from persistent memory
cache_key_decode() takes a key's logical off from the cache device and
later indexes req_key_tree->subtrees[] by it in get_subtree(). An off
past the device forms a subtree pointer outside the array, which
rb_insert() writes through during replay.
Reject a key of zero length, or whose off+len (computed in 64 bits)
exceeds the device size, before it is used.
📍 영향받는 시스템
dm-pcache 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 키 오프셋 값을 포함한 요청을 통해 메모리 범위를 벗어난 쓰기 유도
🛡️ 대응 방법
dm-pcache의 키 길이 및 오프셋 범위를 검증하는 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 버전인지 확인