🇰🇷 한글 설명
리눅스 커널의 keys 서브시스템에서 request_key_auth 페이로드를 인스턴스화하는 과정 중 Use-After-Free 취약점이 발견되었습니다. 인증 키를 생성하고 사용하는 과정에서 동시성 문제로 인해 이미 해제된 메모리 영역에 접근할 수 있는 결함이 존재합니다.
💡 쉬운 설명
컴퓨터가 데이터를 처리하는 도중, 이미 삭제된 데이터의 주소를 다시 참조하여 오류를 일으키는 보안 약점입니다. 이로 인해 시스템이 멈추거나 해커가 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
keys: Pin request_key_auth payload in instantiate paths
A: request_key() B: KEYCTL_INSTANTIATE_IOV
================ =========================
create auth key
store rka in auth key
wait for helper
get auth key
load rka from auth key
copy user payload
sleep on #PF
helper completed
detach and free rka
destroy auth key
wake up
use rka->target_key
**USE-AFTER-FREE**
Give request_key_auth payloads a refcount. Take a payload reference while
authkey->sem stabilizes the payload and revocation state. Hold that
reference across the instantiate and reject paths. Drop the auth key
owning reference from revoke and destroy.
[jarkko: Replaced the first two paragraphs of text with an actual
concurrency scenario.]
📍 영향받는 시스템
Linux Kernel (keys 서브시스템을 사용하는 모든 버전)
⚔️ 공격 벡터
특수하게 조작된 인증 키 요청을 통해 커널 메모리의 Use-After-Free 상태를 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인