# CVE-2025-40026: KVM: x86: Don't (re)check L1 intercepts when completing userspace I/O

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

- **Severity:** HIGH 7.9
- **CVSS:** 7.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-10-28T09:32:33.075Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< a908eca437789589dd4624da428614c1275064dc; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 00338255bb1f422642fb2798ebe92e93b6e4209b; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e0ce3ed1048a47986d15aef1a98ebda25560d257; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< ba35a5d775799ce5ad60230be97336f2fefd518e; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 3d3abf3f7e8b1abb082070a343de82d7efc80523; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e7177c7e32cb806f348387b7f4faafd4a5b32054; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 3a062a5c55adc5507600b9ae6d911e247e2f1d6e; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 7366830642505683bbe905a2ba5d18d6e4b512b8; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e750f85391286a4c8100275516973324b621a269
- Anyone running Linux 3.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: x86: Don't (re)check L1 intercepts when completing userspace I/O

When completing emulation of instruction that generated a userspace exit
for I/O, don't recheck L1 intercepts as KVM has already finished that
phase of instruction execution, i.e. has already committed to allowing L2
to perform I/O.  If L1 (or host userspace) modifies the I/O permission
bitmaps during the exit to userspace,  KVM will treat the access as being
intercepted despite already having emulated the I/O access.

Pivot on EMULTYPE\_NO\_DECODE to detect that KVM is completing emulation.
Of the three users of EMULTYPE\_NO\_DECODE, only complete\_emulated\_io() (the
intended "recipient") can reach the code in question.  gp\_interception()'s
use is mutually exclusive with is\_guest\_mode(), and
complete\_emulated\_insn\_gp() unconditionally pairs EMULTYPE\_NO\_DECODE with
EMULTYPE\_SKIP.

The bad behavior was detected by a syzkaller program that toggles port I/O
interception during the userspace I/O exit, ultimately resulting in a WARN
on vcpu-\>arch.pio.count being non-zero due to KVM no completing emulation
of the I/O instruction.

  WARNING: CPU: 23 PID: 1083 at arch/x86/kvm/x86.c:8039 emulator\_pio\_in\_out+0x154/0x170 \[kvm\]
  Modules linked in: kvm\_intel kvm irqbypass
  CPU: 23 UID: 1000 PID: 1083 Comm: repro Not tainted 6.16.0-rc5-c1610d2d66b1-next-vm \#74 NONE
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
  RIP: 0010:emulator\_pio\_in\_out+0x154/0x170 \[kvm\]
  PKRU: 55555554
  Call Trace:
   \<TASK\>
   kvm\_fast\_pio+0xd6/0x1d0 \[kvm\]
   vmx\_handle\_exit+0x149/0x610 \[kvm\_intel\]
   kvm\_arch\_vcpu\_ioctl\_run+0xda8/0x1ac0 \[kvm\]
   kvm\_vcpu\_ioctl+0x244/0x8c0 \[kvm\]
   \_\_x64\_sys\_ioctl+0x8a/0xd0
   do\_syscall\_64+0x5d/0xc60
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
   \</TASK\>

## Affected and fixed versions

- Linux: \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< a908eca437789589dd4624da428614c1275064dc; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 00338255bb1f422642fb2798ebe92e93b6e4209b; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e0ce3ed1048a47986d15aef1a98ebda25560d257; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< ba35a5d775799ce5ad60230be97336f2fefd518e; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 3d3abf3f7e8b1abb082070a343de82d7efc80523; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e7177c7e32cb806f348387b7f4faafd4a5b32054; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 3a062a5c55adc5507600b9ae6d911e247e2f1d6e; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 7366830642505683bbe905a2ba5d18d6e4b512b8; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e750f85391286a4c8100275516973324b621a269 (cvelist)
- Linux: 3.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40026.md
Affected: Linux >= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, < a908eca437789589dd4624da428614c1275064dc; >= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, < 00338255bb1f422642fb2798ebe92e93b6e4209b; >= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, < e0ce3ed1048a47986d15aef1a98ebda25560d257; >= 8a76d7f25f8f24fc5a328c8…
Fixed in: Linux 00338255bb1f422642fb2798ebe92e93b6e4209b, Linux 3d3abf3f7e8b1abb082070a343de82d7efc80523, Linux 3a062a5c55adc5507600b9ae6d911e247e2f1d6e, Linux 7366830642505683bbe905a2ba5d18d6e4b512b8

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-40026 being exploited?

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

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

High: CVSS 7.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< a908eca437789589dd4624da428614c1275064dc; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 00338255bb1f422642fb2798ebe92e93b6e4209b; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e0ce3ed1048a47986d15aef1a98ebda25560d257; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< ba35a5d775799ce5ad60230be97336f2fefd518e; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 3d3abf3f7e8b1abb082070a343de82d7efc80523; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e7177c7e32cb806f348387b7f4faafd4a5b32054; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 3a062a5c55adc5507600b9ae6d911e247e2f1d6e; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< 7366830642505683bbe905a2ba5d18d6e4b512b8; \>= 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9, \< e750f85391286a4c8100275516973324b621a269; Linux 3.0.

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

Yes. Fixed in Linux 00338255bb1f422642fb2798ebe92e93b6e4209b, Linux 3d3abf3f7e8b1abb082070a343de82d7efc80523, Linux 3a062a5c55adc5507600b9ae6d911e247e2f1d6e, Linux 7366830642505683bbe905a2ba5d18d6e4b512b8. No fix listed yet: follow the vendor advisory.

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

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/a908eca437789589dd4624da428614c1275064dc>
- other: <https://git.kernel.org/stable/c/00338255bb1f422642fb2798ebe92e93b6e4209b>
- other: <https://git.kernel.org/stable/c/e0ce3ed1048a47986d15aef1a98ebda25560d257>
- other: <https://git.kernel.org/stable/c/ba35a5d775799ce5ad60230be97336f2fefd518e>
- other: <https://git.kernel.org/stable/c/3d3abf3f7e8b1abb082070a343de82d7efc80523>
- other: <https://git.kernel.org/stable/c/e7177c7e32cb806f348387b7f4faafd4a5b32054>
- other: <https://git.kernel.org/stable/c/3a062a5c55adc5507600b9ae6d911e247e2f1d6e>
- other: <https://git.kernel.org/stable/c/7366830642505683bbe905a2ba5d18d6e4b512b8>
- other: <https://git.kernel.org/stable/c/e750f85391286a4c8100275516973324b621a269>

## 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-40026>

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