# CVE-2025-40102: KVM: arm64: Prevent access to vCPU events before init

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-10-30T09:48:07.790Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< b0ab34a9e4cd5b88b522cc156e792cefe3085334; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< d64461d38972302f0243498ff409b0d54e14e106; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< b498f0da45a388b40195f7198455c62fe366a372; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 7b854e68365a84dfa984ee81268e10b9311ac9d2; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< c0fcd72e7eb50205dc20731033b0b1c67ecbe4dc; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 64a04e6320fc5affbadc59dc7024d79f909bfe84; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 0aa1b76fe1429629215a7c79820e4b96233ac4a3
- Anyone running Linux 4.19

## Description

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.

## Affected and fixed versions

- Linux: \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< b0ab34a9e4cd5b88b522cc156e792cefe3085334; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< d64461d38972302f0243498ff409b0d54e14e106; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< b498f0da45a388b40195f7198455c62fe366a372; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 7b854e68365a84dfa984ee81268e10b9311ac9d2; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< c0fcd72e7eb50205dc20731033b0b1c67ecbe4dc; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 64a04e6320fc5affbadc59dc7024d79f909bfe84; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 0aa1b76fe1429629215a7c79820e4b96233ac4a3 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 0aa1b76fe1429629215a7c79820e4b96233ac4a3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40102. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40102.md
Affected: Linux >= b7b27facc7b50a5fce0afaa3df56157136ce181a, < b0ab34a9e4cd5b88b522cc156e792cefe3085334; >= b7b27facc7b50a5fce0afaa3df56157136ce181a, < d64461d38972302f0243498ff409b0d54e14e106; >= b7b27facc7b50a5fce0afaa3df56157136ce181a, < b498f0da45a388b40195f7198455c62fe366a372; >= b7b27facc7b50a5fce0afaa…
Fixed in: Linux 7b854e68365a84dfa984ee81268e10b9311ac9d2, Linux 64a04e6320fc5affbadc59dc7024d79f909bfe84, Linux 0aa1b76fe1429629215a7c79820e4b96233ac4a3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40102 being exploited?

There is no confirmed exploitation: CVE-2025-40102 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40102?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40102?

Linux \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< b0ab34a9e4cd5b88b522cc156e792cefe3085334; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< d64461d38972302f0243498ff409b0d54e14e106; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< b498f0da45a388b40195f7198455c62fe366a372; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 7b854e68365a84dfa984ee81268e10b9311ac9d2; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< c0fcd72e7eb50205dc20731033b0b1c67ecbe4dc; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 64a04e6320fc5affbadc59dc7024d79f909bfe84; \>= b7b27facc7b50a5fce0afaa3df56157136ce181a, \< 0aa1b76fe1429629215a7c79820e4b96233ac4a3; Linux 4.19.

### Is there a fix for CVE-2025-40102?

Yes. Fixed in Linux 7b854e68365a84dfa984ee81268e10b9311ac9d2, Linux 64a04e6320fc5affbadc59dc7024d79f909bfe84, Linux 0aa1b76fe1429629215a7c79820e4b96233ac4a3. Upgrade Linux to 0aa1b76fe1429629215a7c79820e4b96233ac4a3 or later.

### How do I check if I'm affected by CVE-2025-40102?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b0ab34a9e4cd5b88b522cc156e792cefe3085334>
- other: <https://git.kernel.org/stable/c/d64461d38972302f0243498ff409b0d54e14e106>
- other: <https://git.kernel.org/stable/c/b498f0da45a388b40195f7198455c62fe366a372>
- other: <https://git.kernel.org/stable/c/7b854e68365a84dfa984ee81268e10b9311ac9d2>
- other: <https://git.kernel.org/stable/c/c0fcd72e7eb50205dc20731033b0b1c67ecbe4dc>
- other: <https://git.kernel.org/stable/c/64a04e6320fc5affbadc59dc7024d79f909bfe84>
- other: <https://git.kernel.org/stable/c/0aa1b76fe1429629215a7c79820e4b96233ac4a3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40102>

HTML: <https://flawdb.com/CVE-2025-40102> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40102>
