🇰🇷 한글 설명
Linux 커널의 KVM arm64 구현에서 VNCR 의사 TLB가 할당되지 않은 상태에서 이를 참조할 때 발생하는 NULL 포인터 역참조 취약점입니다. MMU 알림 또는 TLBI 명령이 vcpu가 온라인 상태가 되기 전에 실행될 경우 레이스 컨디션이 발생하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
가상 머신을 구동하는 핵심 소프트웨어에서 아직 준비되지 않은 메모리 주소를 참조하려고 시도하여 시스템이 멈추거나 오류가 발생할 수 있는 문제입니다. 특정 상황에서 컴퓨터가 명령을 처리하는 순서가 꼬이면서 발생하는 현상입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: nv: Avoid dereferencing NULL VNCR pseudo-TLB
VNCR TLB invalidation occurs from MMU notifiers or TLBI instructions,
and either can race against a vcpu not being onlined yet (no pseudo-TLB
allocated). Similarly, the TLB might be invalid, and the invalidation
should be skipped in this case.
Both kvm_invalidate_vncr_ipa() and kvm_invalidate_vncr_va() are
expected to perform the same checks, except that the latter doesn't
check for the allocation and blindly dereferences the pointer.
Solve this by introducing a new iterator built on top of the usual
kvm_for_each_vcpu() that checks for both of the above conditions,
and convert the two users to it.
📍 영향받는 시스템
Linux kernel (KVM arm64 architecture)
⚔️ 공격 벡터
특정 타이밍에 발생하는 레이스 컨디션을 이용한 로컬 시스템 오류 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.