🇰🇷 한글 설명
Linux 커널의 fuse-uring 구성 요소에서 발생한 취약점으로, 잘못된 상태의 요청을 처리하는 과정에서 Use-After-Free(UAF) 오류가 발생할 수 있습니다. 악의적인 사용자 공간 프로세스가 조작된 SQE 요청을 보내 커널 메모리 레이스 컨디션을 유발할 수 있는 문제입니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제(커널)가 데이터를 복사하는 도중에 공격자가 가짜 요청을 보내 메모리를 엉뚱하게 사용하게 만드는 버그입니다. 이로 인해 시스템이 멈추거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fuse-uring: make a fuse_req on SQE commit only findable after memcpy
Bad userspace might try to trick us and send commit SQEs request
unique / commit-id of requests that are not even send to
fuse-server (io_uring_cmd_done() not called) yet.
fuse_uring_commit_fetch() ends the fuse request when the ring entry
has a wrong state, but that could have caused a use-after-free
with the memcpy operations in fuse_uring_send_in_task().
In order to avoid such races the call of fuse_uring_add_to_pq()
is moved after the copy operations and just before completing
the io-uring request - malicious userspace cannot find the request
anymore until all prepration work in fuse-client/kernel is completed.
This also moves fuse_uring_add_to_pq() a bit up in the code to
avoid a forward declaration. Also not with a preparation commit,
to make it easier to back port to older kernels.
📍 영향받는 시스템
Linux kernel (fuse-uring 모듈을 사용하는 버전)
⚔️ 공격 벡터
악의적인 사용자 공간 프로세스가 조작된 io_uring 커밋 SQE 요청을 전송하여 레이스 컨디션 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인