🇰🇷 한글 설명
Linux 커널의 btrfs 파일 시스템에서 btrfs_replace_file_extents 함수 내 중단 로직 오류로 인해 파일 시스템이 손상될 수 있는 취약점입니다. 특정 오류 상황에서 중단 여부를 판단하는 조건문이 잘못 설정되어 파일 중간에 데이터 영역(extent)이 누락되는 현상이 발생할 수 있습니다.
💡 쉬운 설명
파일 시스템을 관리하는 프로그램의 논리적 오류로 인해, 파일의 일부 데이터가 사라지거나 파일 시스템 자체가 망가질 수 있는 문제입니다. 이는 시스템이 예상치 못한 오류를 만났을 때 제대로 대처하지 못해 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix abort logic in btrfs_replace_file_extents
Error injection testing uncovered a case where we'd end up with a
corrupt file system with a missing extent in the middle of a file. This
occurs because the if statement to decide if we should abort is wrong.
The only way we would abort in this case is if we got a ret !=
-EOPNOTSUPP and we called from the file clone code. However the
prealloc code uses this path too. Instead we need to abort if there is
an error, and the only error we _don't_ abort on is -EOPNOTSUPP and only
if we came from the clone file code.
📍 영향받는 시스템
btrfs 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 오류 주입(Error injection)을 통해 파일 시스템 손상을 유도할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.