🔍 CVE-2025-23141

7.8
CVSS Score
HIGH
2025-05-01
2026-10-15 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 KVM(Kernel-based Virtual Machine)에서 x86 아키텍처를 사용할 때 발생하는 취약점입니다. 특정 조건에서 MP 상태를 가져오는 과정 중 게스트 메모리에 접근할 때 SRCU 잠금(lock)이 누락되어 RCU 관련 경고 및 메모리 접근 오류가 발생할 수 있습니다.

💡 쉬운 설명

가상 머신을 운영하는 시스템에서 특수한 상황이 발생하면, 가상 머신의 메모리 데이터를 읽는 과정에서 보안 규칙을 어기거나 시스템 오류를 일으킬 수 있는 문제입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Acquire SRCU in KVM_GET_MP_STATE to protect guest memory accesses Acquire a lock on kvm->srcu when userspace is getting MP state to handle a rather extreme edge case where "accepting" APIC events, i.e. processing pending INIT or SIPI, can trigger accesses to guest memory. If the vCPU is in L2 with INIT *and* a TRIPLE_FAULT request pending, then getting MP state will trigger a nested VM-Exit by way of ->check_nested_events(), and emuating the nested VM-Exit can access guest memory. The splat was originally hit by syzkaller on a Google-internal kernel, and reproduced on an upstream kernel by hacking the triple_fault_event_test selftest to stuff a pending INIT, store an MSR on VM-Exit (to generate a memory access on VMX), and do vcpu_mp_state_get() to trigger the scenario. ============================= WARNING: suspicious RCU usage 6.14.0-rc3-b112d356288b-vmx/pi_lockdep_false_pos-lock #3 Not tainted ----------------------------- include/linux/kvm_host.h:1058 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 1 lock held by triple_fault_ev/1256: #0: ffff88810df5a330 (&vcpu->mutex){+.+.}-{4:4}, at: kvm_vcpu_ioctl+0x8b/0x9a0 [kvm] stack backtrace: CPU: 11 UID: 1000 PID: 1256 Comm: triple_fault_ev Not tainted 6.14.0-rc3-b112d356288b-vmx #3 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 Call Trace: <TASK> dump_stack_lvl+0x7f/0x90 lockdep_rcu_suspicious+0x144/0x190 kvm_vcpu_gfn_to_memslot+0x156/0x180 [kvm] kvm_vcpu_read_guest+0x3e/0x90 [kvm] read_and_check_msr_entry+0x2e/0x180 [kvm_intel] __nested_vmx_vmexit+0x550/0xde0 [kvm_intel] kvm_check_nested_events+0x1b/0x30 [kvm] kvm_apic_accept_events+0x33/0x100 [kvm] kvm_arch_vcpu_ioctl_get_mpstate+0x30/0x1d0 [kvm] kvm_vcpu_ioctl+0x33e/0x9a0 [kvm] __x64_sys_ioctl+0x8b/0xb0 do_syscall_64+0x6c/0x170 entry_SYSCALL_64_after_hwframe+0x4b/0x53 </TASK>

📍 영향받는 시스템

Linux Kernel (KVM x86 모듈을 사용하는 버전, 특히 6.14.0-rc3 이전 버전)

⚔️ 공격 벡터

중첩 가상화(Nested Virtualization) 환경에서 특정 APIC 이벤트와 Triple Fault를 유도하여 게스트 메모리 접근을 트리거함

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 KVM_GET_MP_STATE 시 SRCU를 획득하도록 수정해야 함

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전(6.14.0-rc3 이후 또는 배포판 보안 업데이트 적용 버전)인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel