🇰🇷 한글 설명
Linux 커널의 Btrfs 파일 시스템에서 로그 재현(log replay) 중 extrefs를 반복 처리할 때 발생하는 취약점입니다. __inode_add_ref() 함수에서 victim_name.len 값이 초기화되지 않은 상태로 다음 루프로 넘어갈 경우, 정의되지 않은 메모리 값으로 인해 잘못된 메모리 접근이 발생할 수 있습니다.
💡 쉬운 설명
리눅스의 Btrfs라는 저장 장치 관리 기능에서 데이터 복구 작업을 할 때, 컴퓨터 메모리의 잘못된 위치를 읽으려고 시도하는 오류가 있습니다. 이로 인해 시스템이 불안정해지거나 예상치 못한 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix iteration of extrefs during log replay
At __inode_add_ref() when processing extrefs, if we jump into the next
label we have an undefined value of victim_name.len, since we haven't
initialized it before we did the goto. This results in an invalid memory
access in the next iteration of the loop since victim_name.len was not
initialized to the length of the name of the current extref.
Fix this by initializing victim_name.len with the current extref's name
length.
📍 영향받는 시스템
Btrfs 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 조작된 파일 시스템 상태를 통해 로그 재현 과정을 유도하여 메모리 오류를 발생시킴
🛡️ 대응 방법
Btrfs 관련 수정 사항이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인