🇰🇷 한글 설명
Linux 커널의 Ceph 구성 요소에서 캡(caps)을 정리하는 과정 중 Use-After-Free 취약점이 발견되었습니다. 세션 락이 해제된 직후 다른 스레드에 의해 캡이 제거될 경우, 이미 해제된 메모리에 접근하여 시스템 충돌을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 지워버린 메모리 정보를 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼지는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix potential use-after-free bug when trimming caps
When trimming the caps and just after the 'session->s_cap_lock' is
released in ceph_iterate_session_caps() the cap maybe removed by
another thread, and when using the stale cap memory in the callbacks
it will trigger use-after-free crash.
We need to check the existence of the cap just after the 'ci->i_ceph_lock'
being acquired. And do nothing if it's already removed.
📍 영향받는 시스템
Ceph 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특정 조건에서 멀티스레딩 환경을 이용한 메모리 레이스 컨디션 유발
🛡️ 대응 방법
Ceph 관련 메모리 관리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 보안 패치가 적용된 최신 버전인지 확인합니다.