🇰🇷 한글 설명
Linux 커널의 blk-cgroup 구성 요소에서 인터럽트 상태를 잘못 관리하여 발생하는 교착 상태(Deadlock) 취약점입니다. 특정 상황에서 인터럽트가 예기치 않게 활성화되어 I/O 완료 소프트인터럽트가 실행될 경우, 이미 보유 중인 락을 다시 획득하려 시도하면서 시스템이 멈출 수 있습니다.
💡 쉬운 설명
컴퓨터가 중요한 작업을 처리하는 동안 잠시 멈춰야 하는 상황에서, 실수로 멈춤 기능을 풀어버려 작업이 꼬이는 문제입니다. 이로 인해 시스템이 명령에 응답하지 않고 완전히 멈춰버리는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
blk-cgroup: save IRQ state in blkg_tryget_closest()
bio_set_dev() associates the bio with a blkg through bio_associate_blkg().
If the blkg lookup misses, blkg_tryget_closest() takes q->queue_lock with
spin_lock_irq() and releases it with spin_unlock_irq(), which
unconditionally enables local interrupts.
Callers may call bio_set_dev() with interrupts already disabled, e.g.
dm-thin's pool_map() does so while holding pool->lock taken with
spin_lock_irq(). The nested spin_unlock_irq() then enables interrupts
while pool->lock is still held, so an I/O completion softirq can run on
the same CPU, re-acquire pool->lock (thin_endio(), or overwrite_endio()
-> complete_mapping_preparation()) and deadlock. lockdep reports this
as inconsistent SOFTIRQ-ON-W to IN-SOFTIRQ-W usage.
Commit 3a762de55b4e ("block: save irq state in blkg_lookup_create()")
fixed the same problem while the lock lived in blkg_lookup_create(), but
commit 9327a865e395 ("blk-cgroup: don't nest queue_lock under rcu in
blkg_lookup_create()") moved the locking into blkg_tryget_closest() and
reverted it to spin_lock_irq().
Save and restore the caller's IRQ state instead.
📍 영향받는 시스템
Linux Kernel (blk-cgroup 관련 모듈을 사용하는 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 I/O 패턴(예: dm-thin 사용 시)을 유도하여 커널 교착 상태를 유발할 수 있음
🛡️ 대응 방법
인터럽트 상태를 저장하고 복구하도록 수정된 최신 Linux 커널 패치를 적용하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.