🇰🇷 한글 설명
Linux 커널의 RDMA/efa 구성 요소에서 관리 큐 완료 처리 중 Use-After-Free 취약점이 발견되었습니다. 관리 명령이 오류로 완료될 경우, 이미 해제된 완료 컨텍스트(completion context)의 데이터를 참조하여 출력함으로써 메모리 오염이나 정보 유출이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 버린 메모리 공간을 다시 읽으려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 잘못된 정보가 노출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/efa: Fix use of completion ctx after free
On admin queue completion handling, if the admin command completed with
error we print data from the completion context. The issue is that we
already freed the completion context in polling/interrupts handler which
means we print data from context in an unknown state (it might be
already used again).
Change the admin submission flow so alloc/dealloc of the context will be
symmetric and dealloc will be called after any potential use of the
context.
📍 영향받는 시스템
RDMA/efa 드라이버를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
관리 명령(Admin Command)을 의도적으로 오류가 발생하도록 유도하여 해제된 메모리 영역에 접근
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 컨텍스트 할당 및 해제 로직을 수정
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인