🇰🇷 한글 설명
Linux 커널의 Squashfs 구성 요소에서 메타데이터 블록 오프셋 범위를 제대로 확인하지 않아 발생하는 취약점입니다. 손상된 인덱스 조회 테이블로 인해 음수 오프셋이 생성되고, 이것이 squashfs_copy_data 함수로 전달되어 경계 외 메모리 접근(Out-of-bounds access)을 유발합니다.
💡 쉬운 설명
파일 시스템의 정보를 읽는 과정에서 잘못된 위치를 참조하여 시스템이 충돌하거나 오류를 일으킬 수 있는 문제입니다. 손상된 파일을 읽을 때 컴퓨터의 메모리 영역을 벗어난 곳을 건드려 문제가 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Squashfs: check metadata block offset is within range
Syzkaller reports a "general protection fault in squashfs_copy_data"
This is ultimately caused by a corrupted index look-up table, which
produces a negative metadata block offset.
This is subsequently passed to squashfs_copy_data (via
squashfs_read_metadata) where the negative offset causes an out of bounds
access.
The fix is to check that the offset is within range in
squashfs_read_metadata. This will trap this and other cases.
📍 영향받는 시스템
Squashfs를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
손상된 Squashfs 이미지 파일을 마운트하거나 읽기 시도
🛡️ 대응 방법
Squashfs 메타데이터 읽기 시 오프셋 범위를 검증하는 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인