🇰🇷 한글 설명
Linux 커널의 io_uring 구성 요소에서 링크된 타임아웃 요청의 참조 횟수(reference count)를 잘못 처리하는 취약점입니다. 마스터 요청의 완료와 타임아웃 처리가 동시에 발생할 경우 참조 횟수가 과도하게 감소하여 시스템 불안정이나 메모리 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 작업을 처리할 때 사용하는 '작업 관리 번호'를 실수로 너무 많이 지워버리는 문제입니다. 이로 인해 시스템이 혼란에 빠져 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
io_uring: fix link timeout refs
WARNING: CPU: 0 PID: 10242 at lib/refcount.c:28 refcount_warn_saturate+0x15b/0x1a0 lib/refcount.c:28
RIP: 0010:refcount_warn_saturate+0x15b/0x1a0 lib/refcount.c:28
Call Trace:
__refcount_sub_and_test include/linux/refcount.h:283 [inline]
__refcount_dec_and_test include/linux/refcount.h:315 [inline]
refcount_dec_and_test include/linux/refcount.h:333 [inline]
io_put_req fs/io_uring.c:2140 [inline]
io_queue_linked_timeout fs/io_uring.c:6300 [inline]
__io_queue_sqe+0xbef/0xec0 fs/io_uring.c:6354
io_submit_sqe fs/io_uring.c:6534 [inline]
io_submit_sqes+0x2bbd/0x7c50 fs/io_uring.c:6660
__do_sys_io_uring_enter fs/io_uring.c:9240 [inline]
__se_sys_io_uring_enter+0x256/0x1d60 fs/io_uring.c:9182
io_link_timeout_fn() should put only one reference of the linked timeout
request, however in case of racing with the master request's completion
first io_req_complete() puts one and then io_put_req_deferred() is
called.
📍 영향받는 시스템
io_uring을 사용하는 Linux 커널 버전 (패치 전 버전)
⚔️ 공격 벡터
특수하게 조작된 io_uring 요청을 통해 마스터 요청과 타임아웃 요청 간의 레이스 컨디션(Race Condition) 유도
🛡️ 대응 방법
io_uring의 참조 횟수 관리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인합니다.