🇰🇷 한글 설명
Linux 커널의 SysV 파일 시스템에서 pointers_lock이 획득된 상태로 sb_bread() 함수를 호출하여 발생하는 교착 상태(Deadlock) 취약점입니다. 원자적 컨텍스트(atomic context) 내에서 수면(sleep)이 발생하여 시스템이 멈출 수 있는 결함이 확인되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제인 리눅스 내부에서 데이터 처리 순서가 꼬여 시스템이 멈춰버릴 수 있는 오류입니다. 특정 파일 시스템 기능을 사용할 때 내부 잠금 장치가 충돌하여 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sysv: don't call sb_bread() with pointers_lock held
syzbot is reporting sleep in atomic context in SysV filesystem [1], for
sb_bread() is called with rw_spinlock held.
A "write_lock(&pointers_lock) => read_lock(&pointers_lock) deadlock" bug
and a "sb_bread() with write_lock(&pointers_lock)" bug were introduced by
"Replace BKL for chain locking with sysvfs-private rwlock" in Linux 2.5.12.
Then, "[PATCH] err1-40: sysvfs locking fix" in Linux 2.6.8 fixed the
former bug by moving pointers_lock lock to the callers, but instead
introduced a "sb_bread() with read_lock(&pointers_lock)" bug (which made
this problem easier to hit).
Al Viro suggested that why not to do like get_branch()/get_block()/
find_shared() in Minix filesystem does. And doing like that is almost a
revert of "[PATCH] err1-40: sysvfs locking fix" except that get_branch()
from with find_shared() is called without write_lock(&pointers_lock).
📍 영향받는 시스템
Linux Kernel (SysV filesystem 관련 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 SysV 파일 시스템 관련 시스템 호출을 수행하여 교착 상태 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인