🇰🇷 한글 설명
Linux 커널의 btrfs 파일 시스템에서 read_one_chunk 함수가 누락된 장치를 처리할 때 extent_map 사용 후 해제(Use-After-Free) 취약점이 발생합니다. 장치가 누락된 상태에서 degraded 마운트 옵션 없이 접근할 경우, 오류 코드를 저장하기 전에 메모리를 해제하여 문제가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 저장 장치 중 하나가 갑자기 사라졌을 때, 시스템이 이를 처리하는 과정에서 이미 사용이 끝난 메모리 공간을 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 멈추거나 보안상 위험한 상황이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix extent map use-after-free when handling missing device in read_one_chunk
Store the error code before freeing the extent_map. Though it's
reference counted structure, in that function it's the first and last
allocation so this would lead to a potential use-after-free.
The error can happen eg. when chunk is stored on a missing device and
the degraded mount option is missing.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216721
📍 영향받는 시스템
btrfs 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
장치가 누락된 상태에서 특정 조건(degraded 마운트 옵션 미사용 등)을 유도하여 메모리 오류 유발
🛡️ 대응 방법
최신 보안 패치가 적용된 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인