🇰🇷 한글 설명
Linux 커널의 hfs/hfsplus 파일 시스템에서 hfs_bnode_read 함수가 유효성 검사 실패 시 버퍼를 초기화하지 않고 조기 반환하는 취약점이 발견되었습니다. 이로 인해 hfs_bnode_read_u16() 및 hfs_bnode_read_u8() 호출 시 스택에 할당된 초기화되지 않은 메모리 값이 사용될 수 있습니다.
💡 쉬운 설명
파일 시스템을 읽는 과정에서 데이터가 비어있을 때 이를 0으로 채우지 않고 그대로 사용하여 잘못된 값을 읽어올 수 있는 문제입니다. 이로 인해 시스템이 예상치 못한 동작을 하거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
hfs/hfsplus: zero-initialize buffer in hfs_bnode_read
hfs_bnode_read() can return early without writing to the output buffer
when is_bnode_offset_valid() fails or when check_and_correct_requested_
length() corrects the length to zero. Callers such as hfs_bnode_read_
u16() and hfs_bnode_read_u8() pass stack-allocated buffers and use the
result unconditionally, leading to KMSAN uninit-value reports.
Rather than initializing at each individual call site, zero the buffer
at the start of hfs_bnode_read() before any validation checks. This
ensures all callers in both hfs and hfsplus get a deterministic zero
value regardless of which early-return path is taken.
📍 영향받는 시스템
Linux kernel (hfs 및 hfsplus 파일 시스템 사용 환경)
⚔️ 공격 벡터
조작된 HFS/HFS+ 파일 시스템 이미지를 마운트하여 초기화되지 않은 스택 메모리 값을 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인