🇰🇷 한글 설명
Linux 커널의 module/dups 모듈에서 kmod_dup_req의 수명 주기 관리 오류로 인한 Use-After-Free 취약점이 발견되었습니다. 기존의 RCU 메커니즘이 병렬 사용자의 참조를 적절히 보호하지 못해 발생하며, 이를 참조 횟수(reference counting) 방식으로 수정하여 해결되었습니다.
💡 쉬운 설명
컴퓨터의 핵심 부품인 커널이 이미 삭제된 데이터를 다른 작업이 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
module/dups: Fix use-after-free in kmod_dup_req lifetime handling
The kmod dups code uses RCU to ensure that a kmod_dup_req instance is freed
only after it is no longer referenced. When releasing an instance, the
kmod_dup_request_delete() function removes the kmod_dup_req from the
dup_kmod_reqs list, waits via synchronize_rcu() and finally frees it.
However, this doesn't work correctly because parallel users referencing the
instance in kmod_dup_request_exists_wait() don't enter an RCU read-side
critical section. This can result in a use-after-free.
The kmod_dup_request_exists_wait() function may need to hold a valid
reference to a kmod_dup_req instance across a blocking wait until the
corresponding modprobe command completes. This makes it unsuitable for RCU.
Fix the issue by changing the lifecycle management of kmod_dup_req to use
reference counting.
📍 영향받는 시스템
Linux Kernel (module/dups 관련 기능 사용 시)
⚔️ 공격 벡터
병렬적인 kmod 요청을 통해 특정 타이밍에 메모리 참조 오류를 유도하는 방식
🛡️ 대응 방법
커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 kmod_dup_req의 수명 주기를 참조 횟수 방식으로 변경 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인