🔍 CVE-2026-43315

5.5
CVSS Score
MEDIUM
2026-05-08
2026-11-06 16:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 KVM nSVM 모듈에서 nested_svm_load_cr3() 함수 실패 시 발생하는 불필요한 WARN 메시지를 제거하는 패치입니다. 사용자 공간에서 CPUID를 수정한 후 CR3를 설정하면 이 경고를 쉽게 트리거할 수 있으므로 의미 있는 보호를 제공하지 않습니다.

💡 쉬운 설명

Linux 가상 머신 관리 시스템(KVM)에서 AMD 프로세서 가상화 기능 관련 불필요한 경고 메시지를 제거하는 업데이트입니다. 이 경고는 실제 보안 위험은 아니지만 일반 사용자도 쉽게 트리거할 수 있어 제거되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Remove a user-triggerable WARN on nested_svm_load_cr3() succeeding Drop the WARN in svm_set_nested_state() on nested_svm_load_cr3() failing as it is trivially easy to trigger from userspace by modifying CPUID after loading CR3. E.g. modifying the state restoration selftest like so: --- tools/testing/selftests/kvm/x86/state_test.c +++ tools/testing/selftests/kvm/x86/state_test.c @@ -280,7 +280,16 @@ int main(int argc, char *argv[]) /* Restore state in a new VM. */ vcpu = vm_recreate_with_one_vcpu(vm); - vcpu_load_state(vcpu, state); + + if (stage == 4) { + state->sregs.cr3 = BIT(44); + vcpu_load_state(vcpu, state); + + vcpu_set_cpuid_property(vcpu, X86_PROPERTY_MAX_PHY_ADDR, 36); + __vcpu_nested_state_set(vcpu, &state->nested); + } else { + vcpu_load_state(vcpu, state); + } /* * Restore XSAVE state in a dummy vCPU, first without doing generates: WARNING: CPU: 30 PID: 938 at arch/x86/kvm/svm/nested.c:1877 svm_set_nested_state+0x34a/0x360 [kvm_amd] Modules linked in: kvm_amd kvm irqbypass [last unloaded: kvm] CPU: 30 UID: 1000 PID: 938 Comm: state_test Tainted: G W 6.18.0-rc7-58e10b63777d-next-vm Tainted: [W]=WARN Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 RIP: 0010:svm_set_nested_state+0x34a/0x360 [kvm_amd] Call Trace: <TASK> kvm_arch_vcpu_ioctl+0xf33/0x1700 [kvm] kvm_vcpu_ioctl+0x4e6/0x8f0 [kvm] __x64_sys_ioctl+0x8f/0xd0 do_syscall_64+0x61/0xad0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 Simply delete the WARN instead of trying to prevent userspace from shoving "illegal" state into CR3. For better or worse, KVM's ABI allows userspace to set CPUID after SREGS, and vice versa, and KVM is very permissive when it comes to guest CPUID. I.e. attempting to enforce the virtual CPU model when setting CPUID could break userspace. Given that the WARN doesn't provide any meaningful protection for KVM or benefit for userspace, simply drop it even though the odds of breaking userspace are minuscule. Opportunistically delete a spurious newline.

📍 영향받는 시스템

Linux kernel with AMD-V (KVM SVM), kernel versions 6.18.0-rc7 and related versions

⚔️ 공격 벡터

userspace에서 KVM ioctl을 통해 CR3와 CPUID를 특정 순서로 조작하여 커널 경고 생성

🛡️ 대응 방법

Linux 커널을 이 패치가 적용된 최신 안정 버전으로 업데이트

🔧 검증 코드

커널에 SVM 지원이 있고 커널 버전 정보가 출력되면 KVM 기능이 활성화된 상태입니다. 패치 적용 여부는 소스 코드 또는 changelog에서 확인 필요

Shell / Script
grep -i 'svm_set_nested_state' /boot/System.map-$(uname -r) 2>/dev/null && uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel