🇰🇷 한글 설명
Linux 커널의 UDF 파일 시스템에서 VAT(Virtual Allocation Table) 인덱스 경계 검사 오류로 인해 발생하는 취약점입니다. 특정 인덱스가 허용 범위를 벗어나 할당된 테이블의 범위를 초과하여 읽을 수 있는 Out-of-bounds 읽기 문제가 존재합니다.
💡 쉬운 설명
파일 시스템을 읽을 때 데이터의 위치를 알려주는 목록의 범위를 잘못 계산하여, 허용되지 않은 메모리 영역을 읽을 수 있는 문제입니다. 공격자가 조작된 파일을 사용하면 시스템이 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
udf: reject VAT indexes equal to the entry count
UDF 1.50 virtual partition mapping uses the VAT as an array of physical
block mappings. s_num_entries stores the number of entries in that array,
not the highest valid index. The valid VAT indexes are therefore below
s_num_entries.
udf_get_pblock_virt15() currently rejects only indexes greater than
s_num_entries. A crafted image can request index s_num_entries, pass the
bounds check, and make the kernel read one entry past the allocated VAT table.
Change the check to reject block >= s_num_entries, so the count is handled as
an exclusive upper bound.
A crafted UDF image reproduced this on origin/master commit
0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53 with a KASAN slab-out-of-bounds
report in udf_get_pblock_virt15().
Trail of Bits has a reproducer that triggers kernel panic demonstrating the bug, and can share it if needed.
📍 영향받는 시스템
UDF 파일 시스템을 사용하는 Linux 커널 (특정 패치 이전 버전)
⚔️ 공격 벡터
조작된 UDF 이미지 파일을 마운트하여 커널의 메모리 경계 검사를 우회함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 VAT 인덱스 검사 로직을 수정함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.