🇰🇷 한글 설명
Linux 커널의 NTFS 드라이버에서 클러스터 비트맵 스캔 범위가 볼륨 크기를 초과하여 발생할 수 있는 취약점입니다. 조작된 NTFS 이미지를 마운트하고 파일을 확장할 때 배열 범위를 벗어난 읽기(Out-of-bounds read)가 발생하여 시스템 안정성을 해칠 수 있습니다.
💡 쉬운 설명
특수하게 제작된 NTFS 저장 장치를 연결하면 컴퓨터의 메모리 영역을 잘못 읽어 들여 오류를 일으킬 수 있는 문제입니다. 파일 크기를 늘리는 과정에서 컴퓨터가 허용된 범위를 넘어서는 데이터를 읽으려 할 때 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ntfs: bound the free-cluster bitmap scan to the volume
vol->lcn_empty_bits_per_page is sized from vol->nr_clusters at mount, but
ntfs_cluster_alloc() bounds its scan of that array by the size of $Bitmap.
Those are independent on-disk quantities and the mount-time check only
rejects a $Bitmap that is too small, so an image whose $Bitmap covers more
clusters than the volume has lets the scan index past the array. A run
whose LCN lies in that gap takes the allocator straight there, since the
caller passes the file's own last LCN as its locality hint. KASAN reports
a slab out-of-bounds read when a file on such a volume is extended.
Clamp the scan to what that array covers, mirroring the max_index
calculation the mount-time scan already uses, and reject a decoded LCN
at or beyond nr_clusters in the mapping pairs decoder. Conforming
volumes are unaffected.
📍 영향받는 시스템
Linux kernel (NTFS driver 사용 시스템)
⚔️ 공격 벡터
조작된 NTFS 파일 시스템 이미지를 마운트한 후 해당 볼륨 내의 파일을 확장함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 NTFS 클러스터 할당 로직을 수정해야 함
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전 이상인지 확인합니다.