🇰🇷 한글 설명
리눅스 커널의 fastrpc 구성 요소에서 fastrpc_map_lookup와 fastrpc_map_find 함수 간의 레이스 컨디션(경쟁 상태)으로 인해 Use-After-Free 취약점이 발생합니다. 뮤텍스 해제와 참조 횟수 증가 사이의 시간 차이로 인해 메모리가 해제된 후 다시 접근될 수 있는 문제가 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 처리하는 과정에서 순서가 꼬여, 이미 삭제된 메모리 공간을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
misc: fastrpc: Fix use-after-free and race in fastrpc_map_find
Currently, there is a race window between the point when the mutex is
unlocked in fastrpc_map_lookup and the reference count increasing
(fastrpc_map_get) in fastrpc_map_find, which can also lead to
use-after-free.
So lets merge fastrpc_map_find into fastrpc_map_lookup which allows us
to both protect the maps list by also taking the &fl->lock spinlock and
the reference count, since the spinlock will be released only after.
Add take_ref argument to make this suitable for all callers.
📍 영향받는 시스템
fastrpc 모듈을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
특정 타이밍에 맞춰 메모리 참조를 유도하는 레이스 컨디션 공격
🛡️ 대응 방법
fastrpc_map_find를 fastrpc_map_lookup에 통합하여 스핀락(spinlock)을 적용한 최신 리눅스 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 버전인지 확인합니다.