🇰🇷 한글 설명
Linux 커널의 ublk 구성 요소에서 io_uring_sqe에 포함된 struct ublksrv_ctrl_cmd를 읽을 때 발생하는 레이스 컨디션 취약점입니다. 사용자 공간에서 메모리를 동시에 수정할 수 있는 상황에서 일반 로드를 사용하면 데이터 불일치가 발생할 수 있어, READ_ONCE()를 사용하여 스택으로 안전하게 복사하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제(커널)가 데이터를 읽는 도중에 사용자가 데이터를 몰래 바꿔버려 오류를 일으킬 수 있는 문제입니다. 이를 방지하기 위해 데이터를 읽을 때 한 번에 안전하게 복사해오는 방식을 적용했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ublk: use READ_ONCE() to read struct ublksrv_ctrl_cmd
struct ublksrv_ctrl_cmd is part of the io_uring_sqe, which may lie in
userspace-mapped memory. It's racy to access its fields with normal
loads, as userspace may write to them concurrently. Use READ_ONCE() to
copy the ublksrv_ctrl_cmd from the io_uring_sqe to the stack. Use the
local copy in place of the one in the io_uring_sqe.
📍 영향받는 시스템
Linux kernel (ublk 및 io_uring 관련 모듈 사용 시스템)
⚔️ 공격 벡터
사용자 공간에서 매핑된 메모리를 통해 커널이 데이터를 처리하는 도중 값을 동시에 변경하는 레이스 컨디션 공격
🛡️ 대응 방법
ublk 모듈에 READ_ONCE()가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인