🔍 CVE-2021-47012

7.8
CVSS Score
HIGH
2024-02-28
2026-08-04 10:16
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 RDMA/siw 구성 요소에서 siw_alloc_mr 함수 호출 중 Use-After-Free(UAF) 취약점이 발견되었습니다. 메모리 할당 실패 시 해제된 메모리 주소를 참조하는 오류로 인해 시스템 불안정이나 권한 상승이 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터가 이미 사용이 끝나서 버린 메모리 공간을 실수로 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 제어권을 얻을 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Fix a use after free in siw_alloc_mr Our code analyzer reported a UAF. In siw_alloc_mr(), it calls siw_mr_add_mem(mr,..). In the implementation of siw_mr_add_mem(), mem is assigned to mr->mem and then mem is freed via kfree(mem) if xa_alloc_cyclic() failed. Here, mr->mem still point to a freed object. After, the execution continue up to the err_out branch of siw_alloc_mr, and the freed mr->mem is used in siw_mr_drop_mem(mr). My patch moves "mr->mem = mem" behind the if (xa_alloc_cyclic(..)<0) {} section, to avoid the uaf.

📍 영향받는 시스템

RDMA/siw 모듈을 사용하는 리눅스 커널 버전

⚔️ 공격 벡터

특수하게 조작된 RDMA 메모리 등록 요청을 통해 메모리 할당 실패를 유도하여 발생

🛡️ 대응 방법

해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 보안 패치가 적용된 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel