🔍 CVE-2026-98927

0.0
CVSS Score
UNKNOWN
2026-10-23
2026-10-23 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 KVM arm64 중첩 가상화(nested virtualization) 코드에서 nested_mmus 배열의 수명 주기 문제가 수정되었습니다. VCPU_INIT 시 배열이 재할당되면서 실행 중인 vCPU가 이미 해제된 포인터를 참조할 수 있었으며, 이를 포인터 배열로 바꾸고 VM 생성 시 최대 크기로 한 번만 할당하도록 변경했습니다.

💡 쉬운 설명

가상 머신 안에서 또 다른 가상 머신을 실행하는 기능에서, 내부 메모리 구조가 잘못 해제되어 참조되는 문제가 있었습니다. 이를 메모리 구조를 처음부터 고정 크기로 잡아두는 방식으로 고쳤습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: nv: Fix life cycle of the nested_mmus array The nested_mmus array holds the shadow page tables that are used when a guest is running a nested context. These structures are allocated on VCPU_INIT for whole guest, which implies that they may have to be relocated as the array grows. Should a VCPU_INIT occur whilst a vcpu is actively running an L2 and that the allocation requires relocation, that vcpu will still be running with a pointer to the previous structure, which will have been freed. Fix this by turning the array of structures to an array of pointers, which is now allocated at VM creation, sized to the absolute maximum that KVM can handle. In turn, each VCPU_INIT contributes S2_MMU_PER_VCPU to the pool. No reallocation is ever performed, and the life cycle of each object is much clearer: - the nested_mmus array is allocated in kvm_init_nested(), and freed in kvm_arch_destroy_vm() - s2_mmu structures are allocated in kvm_vcpu_init_nested(), and freed on kvm_arch_flush_shadow_all() Finally, the freeing of vcpu->arch.vncr_array is made consistent rather than being done on some failure paths, but not others.

📍 영향받는 시스템

수정 이전의 Linux 커널 (arm64 아키텍처에서 KVM 중첩 가상화를 사용하는 환경)

⚔️ 공격 벡터

게스트 VM에서 VCPU_INIT이 발생하는 시점에 해제된 메모리를 참조하도록 유도하여 use-after-free로 인한 커널 메모리 손상 또는 호스트 영향 가능성

🛡️ 대응 방법

패치된 Linux 커널 버전으로 업데이트하고 재부팅하거나, 배포판 보안 업데이트를 적용하세요.

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지에서 해당 CVE 수정 버전과 비교하고, 같거나 높으면 패치가 적용된 것입니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel