🇰🇷 한글 설명
리눅스 커널의 RDMA/iwcm 구성 요소에서 CM ID를 파괴할 때 발생하는 Use-After-Free 취약점입니다. rdma_destroy_id() 함수가 cm_id와 rdma_id_private를 동시에 해제하면서, 처리 중인 작업이 남아있을 경우 메모리 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 메모리 공간을 미리 지워버려서 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/iwcm: Fix a use-after-free related to destroying CM IDs
iw_conn_req_handler() associates a new struct rdma_id_private (conn_id) with
an existing struct iw_cm_id (cm_id) as follows:
conn_id->cm_id.iw = cm_id;
cm_id->context = conn_id;
cm_id->cm_handler = cma_iw_handler;
rdma_destroy_id() frees both the cm_id and the struct rdma_id_private. Make
sure that cm_work_handler() does not trigger a use-after-free by only
freeing of the struct rdma_id_private after all pending work has finished.
📍 영향받는 시스템
RDMA 기능을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
특수하게 조작된 RDMA 연결 요청을 통해 메모리 해제 후 접근(Use-After-Free) 유도
🛡️ 대응 방법
RDMA 관련 취약점이 패치된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 보안 패치가 적용된 최신 버전인지 배포판 보안 공지를 통해 확인