🇰🇷 한글 설명
Linux 커널의 io_uring 구성 요소에서 웨이크업 핸들러를 통해 큐에 추가될 때 eventfd 신호가 지연되지 않는 취약점이 해결되었습니다. 이로 인해 특정 상황에서 잠금(lock)을 보유한 상태로 신호가 즉시 전달되어 시스템 불안정성을 초래할 수 있었습니다. IOU_F_TWQ_IN_WAKE 플래그를 도입하여 신호 전달을 강제로 지연시킴으로써 문제를 해결했습니다.
💡 쉬운 설명
컴퓨터의 작업 처리 방식 중 하나인 io_uring에서 신호를 보내는 타이밍이 잘못되어 시스템이 엉킬 수 있는 문제가 있었습니다. 이 패치를 통해 신호 전달 타이밍을 적절히 조절하여 시스템이 안정적으로 작동하도록 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
io_uring: defer eventfd signaling when queued from a wakeup handler
io_req_local_work_add() signals the CQ ring eventfd inline when it is the
one to push the first entry onto ->work_list. For DEFER_TASKRUN rings that
add is frequently done from a waitqueue wakeup handler, where an
arbitrary waitqueue lock is held.
eventfd_signal_mask() only refuses to recurse when current->in_eventfd
is set, but that bit is set by eventfd_signal_mask() itself. If the wake
chain starts somewhere else, signal goes out inline and can feed back
into epoll.
Add IOU_F_TWQ_IN_WAKE, set it on the task_work add done from the three
waitqueue callbacks, and use it to force io_eventfd_signal() down the
existing call_rcu_hurry() deferral instead of signaling inline.
📍 영향받는 시스템
io_uring을 사용하는 Linux 커널 버전 (패치 적용 전 버전)
⚔️ 공격 벡터
특정 웨이크업 핸들러를 유도하여 잠금 상태에서 eventfd 신호가 즉시 발생하도록 유도하는 방식
🛡️ 대응 방법
io_uring 관련 수정 사항이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 확인