🇰🇷 한글 설명
Linux 커널의 RDMA/mad 구성 요소에서 PKey 보안 검증 실패 시 수신 버퍼가 해제되지 않는 메모리 누수 취약점이 발견되었습니다. 보안 검증 이전에 버퍼를 리스트에 연결하지 않아, 오류 발생 시 해제 프로세스가 대상 버퍼를 찾지 못해 메모리가 계속 점유됩니다.
💡 쉬운 설명
잘못된 보안 키를 가진 데이터를 보냈을 때, 컴퓨터가 사용한 메모리를 제대로 치우지 못하고 계속 쌓아두는 문제입니다. 공격자가 이 과정을 반복하면 컴퓨터의 메모리가 가득 차서 시스템이 느려지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mad: Fix receive buffer leak when PKey enforcement fails
ib_mad_complete_recv() initializes mad_recv_wc->rmpp_list and then runs
ib_mad_enforce_security() before linking recv_buf onto that list. On
failure it calls ib_free_recv_mad(), which only walks rmpp_list and frees
the ib_mad_private of every buffer found there. As the list is still
empty at that point, nothing is freed at all.
The caller cannot clean up either: ib_mad_recv_done() sets recv to NULL
right after ib_mad_complete_recv() returns, assuming the MAD layer took
ownership of the buffer. Every MAD that fails the PKey check therefore
leaks one ib_mad_private (about 300 bytes per IB port MAD, ~2K for OPA),
and a remote node can trigger this repeatedly by sending MADs with a
wrong PKey.
Link recv_buf onto rmpp_list right after the list is initialized, so the
error path has something to free.
📍 영향받는 시스템
Linux kernel (RDMA/mad subsystem)
⚔️ 공격 벡터
원격 노드가 잘못된 PKey를 포함한 MAD(Management Datagram)를 반복적으로 전송하여 메모리 누수 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 버퍼 리스트 연결 로직 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux