CVE-2025-40102: KVM: arm64: Prevent access to vCPU events before init
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: Prevent access to vCPU events before init
Another day, another syzkaller bug. KVM erroneously allows userspace to
pend vCPU events for a vCPU that hasn't been initialized yet, leading to
KVM interpreting a bunch of uninitialized garbage for routing /
injecting the exception.
In one case the injection code and the hyp disagree on whether the vCPU
has a 32bit EL1 and put the vCPU into an illegal mode for AArch64,
tripping the BUG() in exception_target_el() during the next injection:
kernel BUG at arch/arm64/kvm/inject_fault.c:40!
Internal error: Oops - BUG: 00000000f2000800 [#1] SMP
CPU: 3 UID: 0 PID: 318 Comm: repro Not tainted 6.17.0-rc4-00104-g10fd0285305d #6 PREEMPT
Hardware name: linux,dummy-virt (DT)
pstate: 21402009 (nzCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
pc : exception_target_el+0x88/0x8c
lr : pend_serror_exception+0x18/0x13c
sp : ffff800082f03a10
x29: ffff800082f03a10 x28: ffff0000cb132280 x27: 0000000000000000
x26: 0000000000000000 x25: ffff0000c2a99c20 x24: 0000000000000000
x23: 0000000000008000 x22: 0000000000000002 x21: 0000000000000004
x20: 0000000000008000 x19: ffff0000c2a99c20 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000 x15: 00000000200000c0
x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
x8 : ffff800082f03af8 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800080f621f0 x4 : 0000000000000000 x3 : 0000000000000000
x2 : 000000000040009b x1 : 0000000000000003 x0 : ffff0000c2a99c20
Call trace:
exception_target_el+0x88/0x8c (P)
kvm_inject_serror_esr+0x40/0x3b4
__kvm_arm_vcpu_set_events+0xf0/0x100
kvm_arch_vcpu_ioctl+0x180/0x9d4
kvm_vcpu_ioctl+0x60c/0x9f4
__arm64_sys_ioctl+0xac/0x104
invoke_syscall+0x48/0x110
el0_svc_common.constprop.0+0x40/0xe0
do_el0_svc+0x1c/0x28
el0_svc+0x34/0xf0
el0t_64_sync_handler+0xa0/0xe4
el0t_64_sync+0x198/0x19c
Code: f946bc01 b4fffe61 9101e020 17fffff2 (d4210000)
Reject the ioctls outright as no sane VMM would call these before
KVM_ARM_VCPU_INIT anyway. Even if it did the exception would've been
thrown away by the eventual reset of the vCPU's state.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel KVM issue on arm64. A userspace virtual machine monitor could ask KVM to pend vCPU events before that vCPU is initialized, causing KVM to use uninitialized state and hit a kernel BUG. The main business concern is host stability for affected ARM virtualization systems.
Executive priority
Treat as a targeted stability risk for ARM virtualization hosts. Patch during the normal kernel maintenance cycle unless untrusted tenants can access KVM interfaces, which raises urgency.
Technical view
KVM arm64 accepted vCPU event ioctls before KVM_ARM_VCPU_INIT. The kernel could then route or inject exceptions using uninitialized vCPU state, including disagreement about 32-bit EL1 handling, producing an illegal mode and BUG in exception_target_el(). The fix rejects those ioctls before initialization.
Likely exposure
Exposure appears limited to Linux arm64 systems using KVM where userspace can interact with KVM vCPU ioctls. The bundle lists affected Linux kernel versions but distribution-specific backports are not identified.
Exploitation context
The source describes a syzkaller-found kernel crash path. The bundle does not cite active exploitation, weaponized public exploits, KEV inclusion, privilege impact, or remote reachability.
Researcher notes
Evidence supports a pre-initialization state handling bug in KVM arm64 vCPU event injection. Impact is demonstrated as kernel BUG/Oops. The bundle lacks CVSS, CWE, exploitability analysis, and distribution-specific fixed version mapping.
Mitigation direction
Apply vendor kernel updates that include the referenced KVM arm64 fixes.
Check distribution advisories for backported fixes matching CVE-2025-40102.
Restrict KVM device access to trusted virtualization components and administrators.
Prioritize hosts running arm64 KVM workloads or exposing virtualization to tenants.
Validation and detection
Inventory ARM64 Linux hosts using KVM virtualization.
Compare running kernel packages against vendor-fixed builds or referenced stable commits.
Review access controls for userspace components that can create or manage KVM vCPUs.
Check kernel logs for related KVM arm64 BUG or Oops reports.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40102 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
0ADP providers
3Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Oct 30, 2025, 09:48 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.