🇰🇷 한글 설명
Linux 커널의 RDMA/nldev 구성 요소에서 mr->pd 접근 시 발생하는 잠금(locking) 문제가 해결되었습니다. rereg_mr 과정에서 PD(Protection Domain)가 가변적으로 변함에 따라 발생하는 레이스 컨디션(Race Condition)을 방지하기 위해 mr->device를 사용하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 메모리 관리 과정에서 데이터가 바뀌는 순간에 여러 작업이 동시에 접근하여 충돌이 발생하는 보안 약점이 발견되었습니다. 이로 인해 시스템이 불안정해지거나 예기치 않은 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/nldev: Fix locking when accessing mr->pd
Sashiko points out that, due to rereg_mr, the PD is actually variable and
all the touches in nldev are racy.
Use mr->device instead of mr->pd->device.
Getting the PD restrack ID is more tricky. To avoid disturbing all the
happy paths, add an rdma_restrack_sync() operation which is sort of like
flush_workqueue() or synchronize_irq(): after it returns, all the old
nldev touches to the mr are gone and everything sees the new PD. This
makes it safe to reach into the PD pointer.
📍 영향받는 시스템
RDMA 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 시스템에서 RDMA 관련 메모리 등록 및 재등록(rereg_mr) 작업을 유도하여 레이스 컨디션 유발
🛡️ 대응 방법
RDMA/nldev 잠금 메커니즘이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인