🇰🇷 한글 설명
Linux 커널의 RDMA/mana_ib 구성 요소에서 QP 참조를 드레인하지 않아 발생하는 Use-After-Free 취약점입니다. 테이블 삽입 과정 중 락이 해제된 상태에서 동시 작업이 발생하면, 잘못된 참조가 남은 상태로 QP가 해제되어 메모리 오류를 유발할 수 있습니다.
💡 쉬운 설명
데이터를 저장하는 과정에서 순서가 어긋나, 이미 사용 중인 데이터를 시스템이 멋대로 삭제해버리는 문제입니다. 이로 인해 시스템이 충돌하거나 보안상 위험한 상태가 될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mana_ib: drain QP references after partial table insertion
mana_table_store_ud_qp() publishes a QP at its send-queue id before
inserting the receive-queue id, dropping the XArray lock between the two
xa_insert_irq() calls. A concurrent completion handler can look up the QP
and take a transient reference. When the second insertion fails, the
rollback erased only the send-queue entry and returned, leaving both the
initial table reference and the transient reference outstanding while RDMA
core frees the QP, causing a use-after-free.
Drain the reference as normal destruction does: drop the initial reference
and wait for qp->free, releasing the QP only after every concurrent lookup
returns its reference.
📍 영향받는 시스템
Linux kernel (RDMA/mana_ib 모듈을 사용하는 시스템)
⚔️ 공격 벡터
동시성 제어 미흡을 이용한 Race Condition 공격을 통해 메모리 오류 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전인지 확인