🇰🇷 한글 설명
Linux 커널의 XFS 파일 시스템에서 xchk_xfile_*_descr 매크로가 메모리 할당 함수인 kasprintf를 호출할 때 발생할 수 있는 취약점입니다. 특정 상황에서 포맷된 문자열이 너무 길어지면 메모리 할당에 실패할 수 있으며, 이를 해결하기 위해 정적 문자열을 사용하도록 수정되었습니다.
💡 쉬운 설명
파일 시스템의 오류를 확인하는 과정에서 컴퓨터의 메모리를 빌려 쓰려다 실패하여 문제가 생길 수 있는 결함입니다. 시스템이 예상치 못한 상황에서 메모리를 확보하지 못해 오류가 발생할 수 있는 상황을 방지하기 위한 수정입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfs: get rid of the xchk_xfile_*_descr calls
The xchk_xfile_*_descr macros call kasprintf, which can fail to allocate
memory if the formatted string is larger than 16 bytes (or whatever the
nofail guarantees are nowadays). Some of them could easily exceed that,
and Jiaming Zhang found a few places where that can happen with syzbot.
The descriptions are debugging aids and aren't required to be unique, so
let's just pass in static strings and eliminate this path to failure.
Note this patch touches a number of commits, most of which were merged
between 6.6 and 6.14.
📍 영향받는 시스템
Linux kernel (XFS 파일 시스템을 사용하는 6.6 버전부터 6.14 버전 사이의 커널)
⚔️ 공격 벡터
특수하게 조작된 파일 시스템 구조를 통해 메모리 할당 실패를 유도하는 방식
🛡️ 대응 방법
XFS 관련 패치가 적용된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 패치가 적용된 최신 보안 업데이트 버전인지 확인