# CVE-2026-46295: KVM: x86: Do IRR scan in \_\_kvm\_apic\_update\_irr even if PIR is empty

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.16% (percentile 3, 2026-11-26)
- **Published:** 2026-06-08T15:46:22.494Z
- **Modified:** 2026-07-23T08:10:00.137Z

## Who should check

- Anyone running Linux \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< bb1703949dcaa9a49c338dee075f659f4634214d; \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< 4b6b06a8b12bfd95f9015074b1430c1480908073; \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< 33fd0ccd2590b470b65adcca288615ad3b5e3e06
- Anyone running Linux 6.16

## Description

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

KVM: x86: Do IRR scan in \_\_kvm\_apic\_update\_irr even if PIR is empty

Fall back to apic\_find\_highest\_vector() when PID.ON is set but PIR
turns out to be empty, to correctly report the highest pending interrupt
from the existing IRR.

In a nested VM stress test, the following WARNING fires in
vmx\_check\_nested\_events() when kvm\_cpu\_has\_interrupt() reports a pending
interrupt but the subsequent kvm\_apic\_has\_interrupt() (which invokes
vmx\_sync\_pir\_to\_irr() again) returns -1:

  WARNING: CPU: 99 PID: 57767 at arch/x86/kvm/vmx/nested.c:4449 vmx\_check\_nested\_events+0x6bf/0x6e0 \[kvm\_intel\]
  Call Trace:
   kvm\_check\_and\_inject\_events
   vcpu\_enter\_guest.constprop.0
   vcpu\_run
   kvm\_arch\_vcpu\_ioctl\_run
   kvm\_vcpu\_ioctl
   \_\_x64\_sys\_ioctl
   do\_syscall\_64
   entry\_SYSCALL\_64\_after\_hwframe

The root cause is a race between vmx\_sync\_pir\_to\_irr() on the target vCPU
and \_\_vmx\_deliver\_posted\_interrupt() on a sender vCPU.  The sender
performs two individually-atomic operations that are not a single
transaction:

  1. pi\_test\_and\_set\_pir(vector)  -- sets the PIR bit
  2. pi\_test\_and\_set\_on()         -- sets PID.ON

The following interleaving triggers the bug:

  Sender vCPU (IPI):              Target vCPU (1st sync\_pir\_to\_irr):
  B1: set PIR\[vector\]
                                  A1: pi\_clear\_on()
                                  A2: pi\_harvest\_pir() -\> sees B1 bit
                                  A3: xchg() -\> consumes bit, PIR=0
                                      (1st sync returns correct max\_irr)
  B2: set PID.ON = 1

                                  Target vCPU (2nd sync\_pir\_to\_irr):
                                  C1: pi\_test\_on() -\> TRUE (from B2)
                                  C2: pi\_clear\_on() -\> ON=0
                                  C3: pi\_harvest\_pir() -\> PIR empty
                                  C4: \*max\_irr = -1, early return
                                      IRR NOT SCANNED

The interrupt is not lost (it resides in the IRR from the first sync and
is recovered on the next vcpu\_enter\_guest() iteration), but the incorrect
max\_irr causes a spurious WARNING and a wasted L2 VM-Enter/VM-Exit cycle.

## Affected and fixed versions

- Linux: \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< bb1703949dcaa9a49c338dee075f659f4634214d; \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< 4b6b06a8b12bfd95f9015074b1430c1480908073; \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< 33fd0ccd2590b470b65adcca288615ad3b5e3e06 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 33fd0ccd2590b470b65adcca288615ad3b5e3e06 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46295.md
Affected: Linux >= b41f8638b9d30fbe045b4ef83ff4136c56a57397, < bb1703949dcaa9a49c338dee075f659f4634214d; >= b41f8638b9d30fbe045b4ef83ff4136c56a57397, < 4b6b06a8b12bfd95f9015074b1430c1480908073; >= b41f8638b9d30fbe045b4ef83ff4136c56a57397, < 33fd0ccd2590b470b65adcca288615ad3b5e3e06; Linux 6.16
Fixed in: Linux 4b6b06a8b12bfd95f9015074b1430c1480908073, Linux 33fd0ccd2590b470b65adcca288615ad3b5e3e06

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-2026-46295 being exploited?

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

### How serious is CVE-2026-46295?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-46295?

Linux \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< bb1703949dcaa9a49c338dee075f659f4634214d; \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< 4b6b06a8b12bfd95f9015074b1430c1480908073; \>= b41f8638b9d30fbe045b4ef83ff4136c56a57397, \< 33fd0ccd2590b470b65adcca288615ad3b5e3e06; Linux 6.16.

### Is there a fix for CVE-2026-46295?

Yes. Fixed in Linux 4b6b06a8b12bfd95f9015074b1430c1480908073, Linux 33fd0ccd2590b470b65adcca288615ad3b5e3e06. Upgrade Linux to 33fd0ccd2590b470b65adcca288615ad3b5e3e06 or later.

### How do I check if I'm affected by CVE-2026-46295?

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

- patch: <https://git.kernel.org/stable/c/bb1703949dcaa9a49c338dee075f659f4634214d>
- patch: <https://git.kernel.org/stable/c/4b6b06a8b12bfd95f9015074b1430c1480908073>
- patch: <https://git.kernel.org/stable/c/33fd0ccd2590b470b65adcca288615ad3b5e3e06>

## 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-2026-46295>

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