🇰🇷 한글 설명
Linux 커널의 ntfs3 파일 시스템에서 UTF-8 변환 시 볼륨 레이블의 끝에 널(NUL) 문자가 누락되는 취약점이 발견되었습니다. 이로 인해 변환된 레이블이 버퍼를 가득 채울 경우, ntfs3_label_show() 함수가 버퍼 범위를 벗어나 메모리를 읽는 정보 노출 또는 오류가 발생할 수 있습니다.
💡 쉬운 설명
NTFS 형식의 저장 장치 이름을 읽어올 때, 이름의 끝을 알려주는 표시가 빠져서 컴퓨터가 메모리의 엉뚱한 부분까지 읽어버리는 문제입니다. 이로 인해 시스템 정보가 유출되거나 프로그램이 예기치 않게 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: terminate the cached volume label after UTF-8 conversion
ntfs_fill_super() loads the on-disk volume label with utf16s_to_utf8s()
and stores the result in sbi->volume.label. The converted label is later
exposed through ntfs3_label_show() using %s, but utf16s_to_utf8s() only
returns the number of bytes written and does not add a trailing NUL.
If the converted label fills the entire fixed buffer,
ntfs3_label_show() can read past the end of sbi->volume.label while
looking for a terminator.
Terminate the cached label explicitly after a successful conversion and
clamp the exact-full case to the last byte of the buffer.
📍 영향받는 시스템
Linux kernel (ntfs3 driver 사용 환경)
⚔️ 공격 벡터
특수하게 조작된 볼륨 레이블을 가진 NTFS 파일 시스템을 마운트하여 메모리 읽기 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인