🇰🇷 한글 설명
Linux 커널의 RDMA/irdma 드라이버에서 비메모리 영역에 대한 rereg_mr 호출을 방지하지 못하는 취약점이 발견되었습니다. 공격자가 특수 등록된 객체에 대해 rereg_mr을 호출하면 유효하지 않은 mkey(0)를 사용하여 실제 CQP 명령이 실행될 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리 관리 과정에서 특수한 임시 영역을 실제 메모리인 것처럼 속여 잘못된 명령을 내릴 수 있는 문제입니다. 이로 인해 시스템의 데이터 처리 과정에 오류가 발생하거나 보안 설정이 무력화될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Prevent rereg_mr for non-mem regions
When a QP/CQ/SRQ is created, a two step process is used
where the buffer is allocated in userspace and explicitly
registered with the normal reg_mr mechanism prior to creating
the actual QP/CQ/SRQ object.
These special registrations are indicated via an ABI field
so the driver knows that they do not have a valid mkey and
to skip the actual CQP command submission.
Since these are real MR objects from the core's perspective,
it is possible for a user application to invoke rereg_mr on them
and cause a real CQP op to be emitted with the zero-initialized
mkey value of 0.
Fix this by preventing rereg_mr on these special regions.
📍 영향받는 시스템
RDMA/irdma 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
사용자 애플리케이션이 특수하게 등록된 비메모리 영역에 대해 rereg_mr 함수를 호출하여 잘못된 CQP 명령을 유도함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 rereg_mr 호출 제한 기능을 적용해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.