🇰🇷 한글 설명
Linux 커널의 Btrfs 파일 시스템에서 delayed ref 리스트를 삭제할 때 리스트 멤버를 제대로 초기화하지 않아 발생하는 취약점입니다. 이로 인해 리스트 삭제 후 잘못된 포인터에 접근하게 되어 시스템 충돌(Crash)이 발생할 수 있습니다.
💡 쉬운 설명
파일 시스템의 데이터를 관리하는 목록에서 특정 항목을 지울 때, 지워진 흔적을 제대로 정리하지 않아 컴퓨터가 혼란을 겪는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
btrfs: reinitialize delayed ref list after deleting it from the list
At insert_delayed_ref() if we need to update the action of an existing
ref to BTRFS_DROP_DELAYED_REF, we delete the ref from its ref head's
ref_add_list using list_del(), which leaves the ref's add_list member
not reinitialized, as list_del() sets the next and prev members of the
list to LIST_POISON1 and LIST_POISON2, respectively.
If later we end up calling drop_delayed_ref() against the ref, which can
happen during merging or when destroying delayed refs due to a transaction
abort, we can trigger a crash since at drop_delayed_ref() we call
list_empty() against the ref's add_list, which returns false since
the list was not reinitialized after the list_del() and as a consequence
we call list_del() again at drop_delayed_ref(). This results in an
invalid list access since the next and prev members are set to poison
pointers, resulting in a splat if CONFIG_LIST_HARDENED and
CONFIG_DEBUG_LIST are set or invalid poison pointer dereferences
otherwise.
So fix this by deleting from the list with list_del_init() instead.
📍 영향받는 시스템
Linux kernel (Btrfs 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
특정 파일 시스템 작업(트랜잭션 중단 또는 병합)을 유도하여 커널 패닉을 일으키는 로컬 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.