🇰🇷 한글 설명
Linux 커널의 rxrpc 프로토콜에서 recvmsg() 호출 시 조건 없이 재큐잉(requeue)을 수행하여 발생하는 취약점입니다. 이로 인해 수신 큐가 손상되어 Use-After-Free(UAF) 또는 참조 횟수 언더런(refcount underrun)과 같은 메모리 오류가 발생할 수 있습니다.
💡 쉬운 설명
데이터를 받는 과정에서 처리 순서가 꼬여 메모리 관리 오류가 발생하는 문제입니다. 이 오류를 이용하면 해커가 시스템 권한을 탈취하거나 시스템을 중단시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix recvmsg() unconditional requeue
If rxrpc_recvmsg() fails because MSG_DONTWAIT was specified but the call at
the front of the recvmsg queue already has its mutex locked, it requeues
the call - whether or not the call is already queued. The call may be on
the queue because MSG_PEEK was also passed and so the call was not dequeued
or because the I/O thread requeued it.
The unconditional requeue may then corrupt the recvmsg queue, leading to
things like UAFs or refcount underruns.
Fix this by only requeuing the call if it isn't already on the queue - and
moving it to the front if it is already queued. If we don't queue it, we
have to put the ref we obtained by dequeuing it.
Also, MSG_PEEK doesn't dequeue the call so shouldn't call
rxrpc_notify_socket() for the call if we didn't use up all the data on the
queue, so fix that also.
📍 영향받는 시스템
rxrpc 프로토콜을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 네트워크 패킷을 통해 rxrpc 수신 큐의 상태를 조작하여 메모리 오류 유도
🛡️ 대응 방법
rxrpc 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 취약점이 해결된 패치 버전인지 확인합니다.