# CVE-2026-99712: KVM: x86: Conditionally resched when restarting REP string emulation

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:51.565Z
- Modified: 2026-11-23T08:18:12.000Z
- Assigned by: Linux

## Description

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

KVM: x86: Conditionally resched when restarting REP string emulation

When restarting emulation, e.g. of a REP-prefixed string instruction,
conditionally reschedule as emulating guest writes can be deceptively slow
and expensive, e.g. when shadow paging is in use and each write can trigger
write tracking.

In a perfect world, restarting emulation (or not) would be less arbitrary,
e.g. would honor not only host events (NEED_RESCHED, signals, etc.) but
also guest events (e.g. by checking kvm_vcpu_has_events()).  Unfortunately,
as pointed out by Sashiko, pio_in_emulated()'s read-ahead logic is baked
into the restart logic, as KVM relies on restarting emulation to drain the
cache and avoid duplicate reads from the I/O port.  I.e. re-entering the
guest on kvm_vcpu_has_events() or __xfer_to_guest_mode_work_pending() would
introduce architecturally-incorrect, guest-visible changes.

(As written by CVE List.)

## Affected

- Linux Linux: from 5cd21917da245fbe98bd443de2c7f519b3df6814 before 3ad58cb4ec32dea14c915916c7298bf6c7903695; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before 8871ec66b296bf14f0c096efee42c65990a30b7f; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before 2b1c87db0a2950fd63d62e33570910d3063e1b6c; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before e74913838f4b93b5e23731cdcc09356d9697ec5b; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before c1293d2134c2d63741b197a1e5a6363894ed4bce; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before 41a43510f77298d147a098eb182695d0001593c8; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before 5a5f9853a78c45927cd0814ae67c5ad8b5021bcc; from 5cd21917da245fbe98bd443de2c7f519b3df6814 before ae85ac25eb671d174811cc3101549448671fd505; 2.6.35 (not affected: before 2.6.35; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/3ad58cb4ec32dea14c915916c7298bf6c7903695>
- <https://git.kernel.org/stable/c/8871ec66b296bf14f0c096efee42c65990a30b7f>
- <https://git.kernel.org/stable/c/2b1c87db0a2950fd63d62e33570910d3063e1b6c>
- <https://git.kernel.org/stable/c/e74913838f4b93b5e23731cdcc09356d9697ec5b>
- <https://git.kernel.org/stable/c/c1293d2134c2d63741b197a1e5a6363894ed4bce>
- <https://git.kernel.org/stable/c/41a43510f77298d147a098eb182695d0001593c8>
- <https://git.kernel.org/stable/c/5a5f9853a78c45927cd0814ae67c5ad8b5021bcc>
- <https://git.kernel.org/stable/c/ae85ac25eb671d174811cc3101549448671fd505>

## Sources

- CVE List: [CVE-2026-99712](https://www.cve.org/CVERecord?id=CVE-2026-99712), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99712](https://nvd.nist.gov/vuln/detail/CVE-2026-99712), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99712 · Whole record: https://cve.day/CVE-2026-99712.json · Rebuilt by cve.day 2026-11-25T22:59:52.318Z
