🇰🇷 한글 설명
Linux 커널의 XFS 파일 시스템에서 AIL 잠금을 해제하기 전에 ailp 포인터를 저장하지 않아 발생하는 Use-After-Free 취약점입니다. 로그 아이템이 백그라운드 리클레임 과정에서 해제된 후, 이후의 spin_lock() 호출이 해제된 메모리 주소를 참조하여 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터가 이미 삭제되어 사라진 메모리 주소를 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfs: save ailp before dropping the AIL lock in push callbacks
In xfs_inode_item_push() and xfs_qm_dquot_logitem_push(), the AIL lock
is dropped to perform buffer IO. Once the cluster buffer no longer
protects the log item from reclaim, the log item may be freed by
background reclaim or the dquot shrinker. The subsequent spin_lock()
call dereferences lip->li_ailp, which is a use-after-free.
Fix this by saving the ailp pointer in a local variable while the AIL
lock is held and the log item is guaranteed to be valid.
📍 영향받는 시스템
XFS 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특정 파일 시스템 작업(push callbacks)을 유도하여 메모리 해제 후 참조를 발생시키는 방식
🛡️ 대응 방법
XFS 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 버전 이후인지 확인