🇰🇷 한글 설명
Linux 커널의 EROFS 파일 시스템에서 인코딩된 익스텐트(extents) 처리 중 발생하는 취약점입니다. 조작된 이미지를 사용할 경우 시스템 충돌이나 메모리 경계 외 접근(out-of-bound access)이 발생할 수 있습니다.
💡 쉬운 설명
특수하게 제작된 손상된 파일을 시스템에 연결하면 컴퓨터가 갑자기 멈추거나 꺼질 수 있는 오류입니다. 파일 시스템이 잘못된 주소 값을 처리하는 과정에서 발생하는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix crafted invalid cases for encoded extents
Robert recently reported two corrupted images that can cause system
crashes, which are related to the new encoded extents introduced
in Linux 6.15:
- The first one [1] has plen != 0 (e.g. plen == 0x2000000) but
(plen & Z_EROFS_EXTENT_PLEN_MASK) == 0. It is used to represent
special extents such as sparse extents (!EROFS_MAP_MAPPED), but
previously only plen == 0 was handled;
- The second one [2] has pa 0xffffffffffdcffed and plen 0xb4000,
then "cur [0xfffffffffffff000] += bvec.bv_len [0x1000]" in
"} while ((cur += bvec.bv_len) < end);" wraps around, causing an
out-of-bound access of pcl->compressed_bvecs[] in
z_erofs_submit_queue(). EROFS only supports 48-bit physical block
addresses (up to 1EiB for 4k blocks), so add a sanity check to
enforce this.
📍 영향받는 시스템
Linux 커널 6.15 이상 버전의 EROFS 파일 시스템을 사용하는 시스템
⚔️ 공격 벡터
조작된(crafted) EROFS 이미지 파일을 시스템에 마운트하거나 읽기 시도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인