🇰🇷 한글 설명
Linux 커널의 KVM nSVM 구현에서 nCR3 레지스터의 하위 5비트를 무시하지 않아 발생하는 취약점입니다. 이로 인해 메모리에서 PDPTE를 로드할 때 경계 외 읽기(Out-of-bounds read)가 발생할 수 있습니다.
💡 쉬운 설명
가상 머신을 실행할 때 메모리 주소를 계산하는 과정에서 작은 오류가 있어, 허용되지 않은 메모리 영역을 읽을 위험이 있습니다. 이는 시스템의 보안 경계를 허물 수 있는 결함입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
Ignore nCR3[4:0] when loading PDPTEs from memory for nested SVM, as bits
4:0 of CR3 are ignored when PAE paging is used, and thus VMRUN doesn't
enforce 32-byte alignment of nCR3.
In the absolute worst case scenario, failure to ignore bits 4:0 can result
in an out-of-bounds read, e.g. if the target page is at the end of a
memslot, and the VMM isn't using guard pages.
Per the APM:
The CR3 register points to the base address of the page-directory-pointer
table. The page-directory-pointer table is aligned on a 32-byte boundary,
with the low 5 address bits 4:0 assumed to be 0.
And the SDM's much more explicit:
4:0 Ignored
Note, KVM gets this right when loading PDPTRs, it's only the nSVM flow
that is broken.
📍 영향받는 시스템
nSVM(Nested SVM) 기능을 사용하는 Linux 커널 기반 KVM 환경
⚔️ 공격 벡터
조작된 nCR3 값을 가진 가상 머신 실행을 통한 메모리 경계 외 읽기 유도
🛡️ 대응 방법
nSVM 흐름에서 nCR3의 하위 5비트를 무시하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인