🇰🇷 한글 설명
Linux 커널의 UDF 파일 시스템에서 VAT 헤더 길이를 검증하지 않아 발생하는 취약점입니다. 공격자가 조작된 UDF 이미지를 마운트할 경우, 헤더 길이 값이 inode 크기를 초과하여 정수 언더플로우를 유발하고 결과적으로 경계 외 읽기(Out-of-bounds read)가 발생할 수 있습니다.
💡 쉬운 설명
특수하게 제작된 가짜 디스크 파일을 컴퓨터에 연결하면, 컴퓨터가 파일의 정보를 잘못 읽어 메모리의 민감한 정보를 훔쳐볼 수 있는 보안 결함입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
udf: validate VAT header length against the VAT inode size
udf_load_vat() takes the virtual partition's start offset straight from
the on-disk VAT 2.0 header without checking it against the VAT inode
size:
map->s_type_specific.s_virtual.s_start_offset =
le16_to_cpu(vat20->lengthHeader);
map->s_type_specific.s_virtual.s_num_entries =
(sbi->s_vat_inode->i_size -
map->s_type_specific.s_virtual.s_start_offset) >> 2;
lengthHeader is a fully attacker-controlled 16-bit value. If it exceeds
the VAT inode size, the s_num_entries subtraction underflows to a huge
count, which defeats the "block > s_num_entries" bound in
udf_get_pblock_virt15(); and on the ICB-inline path that function reads
((__le32 *)(iinfo->i_data + s_start_offset))[block]
so a large s_start_offset indexes past the inode's in-ICB data. Mounting
a crafted UDF image with a virtual (VAT) partition then triggers an
out-of-bounds read.
Reject a VAT whose header length does not leave room for at least one
entry within the VAT inode.
📍 영향받는 시스템
Linux kernel (UDF file system module)
⚔️ 공격 벡터
조작된 VAT 헤더를 포함한 UDF 이미지 파일을 시스템에 마운트
🛡️ 대응 방법
VAT 헤더 길이가 inode 크기 내에 있는지 검증하는 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인