🇰🇷 한글 설명
Linux 커널 io_uring에서, IORING_SETUP_R_DISABLED로 생성된 비활성화 링은 활성화 전까지 레지스터 제한을 적용받지 않는 예외가 있었습니다. 커밋 ed82f35b926b 이후 링은 생성 태스크로부터 제한을 상속받는데, 이 상속된 제한에도 같은 예외가 적용되어 레지스터 opcode가 제한된 태스크가 비활성화 링을 만들어 제한을 우회할 수 있었습니다. 패치는 상속된 제한 플래그를 추가하고 비활성화 상태에서도 레지스터 opcode를 검사하며, 링 활성화에 IORING_REGISTER_ENABLE_RINGS 허용이 필요하도록 합니다.
💡 쉬운 설명
리눅스 커널의 비동기 입출력 기능에서 일부 기능 사용을 제한받은 프로그램이 임시로 꺼진 상태의 통로를 만들어 그 제한을 우회할 수 있었습니다. 이제는 제한이 꺼진 통로에도 똑같이 적용됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
io_uring/register: don't exempt disabled rings from task restrictions
A ring created with IORING_SETUP_R_DISABLED is exempt from its register
restrictions until it is enabled. This lets the creator register the
restrictions and then enable the ring with IORING_REGISTER_ENABLE_RINGS,
whether or not that opcode is in the allowed set.
Since commit ed82f35b926b ("io_uring: allow registration of per-task
restrictions"), a ring also inherits restrictions from the task that
creates it, and the same exemption applies to those. A task whose
register opcodes are restricted can therefore create a disabled ring,
issue any register opcode on it, and then enable it.
Mark rings whose restrictions were inherited from the task, and keep
checking register opcodes for them while the ring is disabled. Enabling
such a ring now requires IORING_REGISTER_ENABLE_RINGS to be in the
task's allowed set. Per-ring restrictions registered on a disabled ring
work as before.
[axboe: amend with inheritance flag fixup]
📍 영향받는 시스템
io_uring 제한 상속이 도입된 Linux 커널 (ed82f35b926b 이후 버전, 패치된 커널 업데이트 필요)
⚔️ 공격 벡터
레지스터 opcode가 제한된 태스크가 IORING_SETUP_R_DISABLED 링을 생성해 제한을 우회한 뒤 해당 링을 활성화하여 금지된 레지스터 작업을 수행
🛡️ 대응 방법
패치된 최신 Linux 커널로 업데이트하고 배포판의 보안 권고를 적용
🔧 검증 코드
출력된 커널 버전을 배포판 보안 공지 또는 패치 커밋 포함 버전과 비교하여, 패치가 반영된 업데이트 버전인지 확인합니다.