🇰🇷 한글 설명
Linux 커널의 dm-pcache 구성 요소에서 디스크 캐시 정보의 기하학적 필드를 검증하지 않아 발생하는 취약점입니다. 공격자가 조작된 캐시 메타데이터를 제공할 경우, n_segs 값이 세그먼트 수를 초과하거나 세그먼트 ID가 범위를 벗어나 메모리 경계를 넘어서는 읽기 및 쓰기(Out-of-bounds access)가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 저장 장치 정보를 읽어올 때, 잘못된 숫자가 적힌 가짜 정보를 입력하여 시스템의 허용된 영역 밖의 데이터를 읽거나 수정할 수 있는 문제입니다. 이를 통해 시스템의 중요한 정보를 훔치거나 시스템을 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dm-pcache: validate geometry fields from on-disk cache_info
cache_segs_init() iterates cache_info->n_segs times indexing
cache->segments[], which is sized to the cache device geometry, and
get_seg_id() takes each segment id from the on-media cache_info and the
per-segment next_seg link. Both come from cache device metadata that is
only CRC-protected with a fixed public seed, so whoever supplies the
cache device on a table load (CAP_SYS_ADMIN) controls them: an oversized
n_segs or an out-of-range id drives an out-of-bounds access of
cache->segments[] and a wild CACHE_DEV_SEGMENT() pointer into the device
mapping -- an out-of-bounds read and write from on-disk data.
Reject an n_segs that exceeds the device segment count and a segment id
that is out of range before either is used. Valid metadata is unaffected.
📍 영향받는 시스템
Linux Kernel (dm-pcache 모듈을 사용하는 시스템)
⚔️ 공격 벡터
CAP_SYS_ADMIN 권한을 가진 사용자가 조작된 캐시 메타데이터를 포함한 장치를 테이블 로드 시 제공
🛡️ 대응 방법
dm-pcache의 n_segs 및 세그먼트 ID 검증 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인