🇰🇷 한글 설명
Linux 커널의 hfsplus 파일 시스템에서 중복된 속성 inode dirty 마킹 동작으로 인해 발생하는 Null 포인터 역참조 취약점입니다. 시스템 마운트 시 속성 파일이 로드되지 않은 상태에서 사용자 공간의 setxattr 명령을 실행할 경우 발생합니다.
💡 쉬운 설명
컴퓨터의 파일 정보를 수정하려고 할 때, 시스템이 존재하지 않는 메모리 주소를 참조하여 오류가 발생하는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 충돌할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
hfsplus: Remove the duplicate attr inode dirty marking action
Syzbot reported a null-ptr-deref in [1].
If the attributes file is not loaded during system mount, a trigger
occurs [1] when setxattr is executed in userspace.
Remove the first mark attr inode dirty operation.
[1]
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
Call Trace:
hfsplus_setxattr+0x124/0x340 fs/hfsplus/xattr.c:555
hfsplus_trusted_setxattr+0x40/0x60 fs/hfsplus/xattr_trusted.c:30
__vfs_setxattr+0x43c/0x480 fs/xattr.c:218
__vfs_setxattr_noperm+0x12d/0x660 fs/xattr.c:252
vfs_setxattr+0x163/0x360 fs/xattr.c:339
do_setxattr fs/xattr.c:654 [inline]
📍 영향받는 시스템
hfsplus 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자 권한으로 setxattr 시스템 호출을 실행하여 유도
🛡️ 대응 방법
hfsplus 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 hfsplus 취약점이 해결된 최신 패치 버전인지 확인합니다.