🇰🇷 한글 설명
Linux 커널의 RDMA/core 구성 요소에서 ib_destroy_srq_user() 함수 호출 시 발생하는 Use-After-Free 취약점입니다. SRQ(Shared Receive Queue)를 삭제할 때 추적 메커니즘(restrack)에서 제거하는 시점이 너무 늦어, 리소스가 해제된 후에도 접근이 가능한 상태가 유지될 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 데이터를 삭제할 때, 삭제 목록에서 먼저 지우지 않고 데이터부터 지워버려서 발생하는 문제입니다. 이로 인해 이미 사라진 데이터에 접근하려다 시스템 오류나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Fix potential use after free in ib_destroy_srq_user()
When accessing a SRQ via the netlink path the only synchronization
mechanism for the said SRQ is rdma_restrack_get().
Currently, rdma_restrack_del() is invoked at the end of
ib_destroy_srq_user(), which is too late, since by that point
vendor-specific resources associated with the SRQ might already be
freed. This can leave a short window where the SRQ remains accessible
through restrack, leading to a potential use-after-free.
Fix this by moving the rdma_restrack_begin_del() call to the start of
ib_destroy_srq_user(), ensuring that the SRQ is removed from restrack
before its internal resources are released. This guarantees that no new
users hold references to a SRQ that is in the process of destruction.
In addition, this change preserves the intended inverted order
between create and destroy routines: resources are added to
restrack at the end of successful creation, and hence shall be removed
from the restrack first thing during the destruction flow, which keeps
the lifecycle management consistent and predictable.
📍 영향받는 시스템
RDMA 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
Netlink 경로를 통해 SRQ에 접근하여 리소스 해제와 추적 제거 사이의 시간차를 이용한 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.