🇰🇷 한글 설명
Linux 커널의 nvdimm/btt 구성 요소에서 nfree 필드에 대한 검증 부재로 인해 발생하는 취약점입니다. 조작된 아레나의 nfree 값이 레인 수보다 작을 경우, 배열의 범위를 벗어난 쓰기(Out-of-bounds write)가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 저장 장치 관리 프로그램이 데이터 저장 공간의 크기를 제대로 확인하지 않아 발생하는 오류입니다. 잘못된 정보가 입력되면 프로그램이 허용되지 않은 메모리 영역에 데이터를 써서 시스템을 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nvdimm/btt: reject an arena whose nfree is below the lane count
The BTT info block's nfree field, the number of reserve free blocks, is
read from the medium without validation. btt_freelist_init() and
btt_rtt_init() size the per-lane freelist[] and rtt[] arrays by nfree,
but the I/O path indexes them by the lane from nd_region_acquire_lane(),
which is bounded by nd_region->num_lanes (ND_MAX_LANES), not by nfree.
A crafted or foreign arena whose nfree is below the lane count makes
freelist[lane]/rtt[lane] run past the allocation: an out-of-bounds write.
btt.rst documents the nlanes = min(nfree, num_cpus) invariant, which the
code does not currently honor: num_lanes is ND_MAX_LANES regardless of
nfree. Reject an arena whose nfree is below num_lanes at discovery,
before the per-lane arrays are allocated, enforcing that invariant.
📍 영향받는 시스템
Linux Kernel (nvdimm/btt 모듈 사용 환경)
⚔️ 공격 벡터
조작된 nfree 값을 가진 비정상적인 아레나(Arena)를 시스템에 노출시켜 메모리 범위를 벗어난 쓰기 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 nfree 값 검증 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인