CVE-2025-40026: Linux KVM x86 Nested I/O Emulation Intercept Recheck
- Vendor
- Linux
CVE-2025-40026 is an instruction-emulation flaw in the Linux kernel's KVM x86 subsystem, introduced in Linux 3.0. When completing an L2 guest instruction that generated a userspace I/O exit, KVM incorrectly rechecks L1 I/O intercepts after already committing to allowing and emulating the I/O access. If L1 or host userspace modifies the I/O permission bitmaps during that exit, KVM can incorrectly treat the completed access as intercepted and leave instruction emulation unfinished. This leaves vcpu->arch.pio.count nonzero and can trigger a kernel warning in emulator_pio_in_out(), potentially disrupting guest operation. The fix uses EMULTYPE_NO_DECODE to recognize emulation completion through complete_emulated_io() and avoid repeating the intercept check.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Malformed completion of nested-guest port I/O can leave inconsistent emulation state, trigger kernel WARN conditions, and potentially disrupt guest I/O or virtual-machine availability. The demonstrated behavior is incomplete instruction emulation and a kernel warning; arbitrary code execution, privilege escalation, and confidentiality or integrity compromise are not established by the technical details.
Mitigation
If you can’t patch tonight, do this now.
Disable nested virtualization for the applicable kvm_intel or kvm_amd module by setting nested=0 and ensure the setting takes effect. Verify that the module's nested parameter reports N or its equivalent disabled value. On applicable OpenShift nodes, this configuration can be deployed through a MachineConfig. Restrict untrusted access to the KVM device as an additional exposure-reduction measure.
Remediation
Patch, then assume compromise.
Update to the latest supported kernel containing the fix and reboot into it. Fixed upstream releases include 5.15.195, 6.1.157, 6.6.111, 6.12.52, 6.16.12, 6.17.2, and 6.18-rc1. For distribution kernels, install the applicable vendor security update rather than relying solely on upstream version comparisons, because fixes may be backported. Applicable Red Hat updates include RHSA-2026:45115 for RHEL 8 kernel, RHSA-2026:45116 for RHEL 8 kernel-rt, RHSA-2026:45192 for RHEL 9, and RHSA-2026:49030 for RHEL 10.0 EUS. Updating to a maintained kernel release is preferred over cherry-picking individual commits.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-40026 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2025-40026 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-40026?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2025-40026.
- Is there a patch for CVE-2025-40026?
- Update to the latest supported kernel containing the fix and reboot into it. Fixed upstream releases include 5.15.195, 6.1.157, 6.6.111, 6.12.52, 6.16.12, 6.17.2, and 6.18-rc1.
- What products are affected by CVE-2025-40026?
- Linux Kernel.
- How severe is CVE-2025-40026?
- CVE-2025-40026 has a CVSS v3.1 score of 7.9 (High) and an EPSS score of 0.26% (11th percentile) as of Nov 19, 2026.
Recent activity
44 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.