🇰🇷 한글 설명
Linux 커널의 blk-cgroup 구성 요소에서 __blkcg_rstat_flush() 함수 호출 시 Use-After-Free(UAF) 취약점이 발견되었습니다. 동일한 blkcg 내의 여러 blkg가 동시에 해제될 때 경합 조건이 발생하여, 이미 해제된 메모리 영역에 접근할 수 있는 문제가 있습니다.
💡 쉬운 설명
컴퓨터의 자원을 관리하는 시스템에서 여러 작업이 동시에 종료될 때, 이미 사라진 데이터를 다시 사용하려고 시도하면서 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 보안 공격에 악용될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
blk-cgroup: fix UAF in __blkcg_rstat_flush()
When multiple blkgs in the same blkcg are released concurrently,
a use-after-free can occur. The race happens when one blkg's
__blkcg_rstat_flush() removes another blkg's iostat entries via
llist_del_all(). The second blkg sees an empty list and proceeds
to free itself while the first is still iterating over its entries.
Move the flush from __blkg_release() (RCU callback) to blkg_release()
(before call_rcu). This ensures the RCU grace period waits for any
concurrent flush's rcu_read_lock() section to complete before freeing.
📍 영향받는 시스템
Linux Kernel (blk-cgroup 관련 모듈을 사용하는 버전)
⚔️ 공격 벡터
동일한 블록 그룹(blkcg) 내에서 여러 블록(blkg)을 동시에 해제하도록 유도하는 경합 조건 공격
🛡️ 대응 방법
커널 패치를 적용하여 flush 동작을 RCU 콜백 이전 단계로 이동시켜 메모리 해제 순서를 보장해야 함
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인합니다.