🇰🇷 한글 설명
Linux 커널의 io_uring/fdinfo 구성 요소에서 io_uring_show_fdinfo() 함수 호출 시 적절한 잠금(locking) 메커니즘이 부족하여 발생하는 취약점입니다. 이로 인해 io_uring 링이 활발하게 크기 조정되는 동안 SQE 필드를 읽으려고 할 때 데이터 불일치나 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 데이터 처리 통로인 io_uring이 크기를 바꾸는 도중에 정보를 읽으려고 하면 데이터가 꼬이는 문제가 있었습니다. 이를 방지하기 위해 정보를 읽기 전 데이터가 안전한 상태인지 확인하는 잠금 장치를 강화했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
Not everything requires locking in there, which is why the 'has_lock'
variable exists. But enough does that it's a bit unwieldy to manage.
Wrap the whole thing in a ->uring_lock trylock, and just return
with no output if we fail to grab it. The existing trylock() will
already have greatly diminished utility/output for the failure case.
This fixes an issue with reading the SQE fields, if the ring is being
actively resized at the same time.
📍 영향받는 시스템
io_uring을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
동시에 io_uring 링의 크기를 조정하면서 fdinfo를 읽는 특정 시나리오를 통한 데이터 무결성 침해
🛡️ 대응 방법
io_uring 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인