🇰🇷 한글 설명
Linux 커널의 RDMA/hns 구성 요소에서 hns_roce_qp_remove() 함수 호출 시 잠금(lock)을 획득하지 않는 문제가 발견되었습니다. hns_roce_create_qp_common()의 오류 처리 과정에서 잠금 없이 함수를 호출하여 메모리 오염을 유발할 위험이 있습니다.
💡 쉬운 설명
컴퓨터의 핵심 부품인 커널이 데이터를 처리할 때, 여러 작업이 동시에 엉키지 않도록 잠금 장치를 사용해야 합니다. 하지만 특정 상황에서 이 잠금을 건너뛰고 작업을 수행하여 데이터가 깨질 수 있는 결함이 발견되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Fix unlocked call to hns_roce_qp_remove()
Sashiko points out that hns_roce_qp_remove() requires the caller to hold
locks. The error flow in hns_roce_create_qp_common() doesn't hold those
locks for the error unwind so it risks corrupting memory.
Grab the same locks the other two callers use.
📍 영향받는 시스템
RDMA/hns 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
특정 네트워크 환경에서 RDMA 연결 생성 중 오류를 유도하여 메모리 오염 및 시스템 불안정 유발
🛡️ 대응 방법
hns_roce_create_qp_common() 함수 내 오류 처리 로직에 적절한 잠금(lock)을 적용한 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인