{"id":"CVE-2026-99712","aliases":["CVE-2026-99712"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: x86: Conditionally resched when restarting REP string emulation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Conditionally resched when restarting REP string emulation\n\nWhen restarting emulation, e.g. of a REP-prefixed string instruction,\nconditionally reschedule as emulating guest writes can be deceptively slow\nand expensive, e.g. when shadow paging is in use and each write can trigger\nwrite tracking.\n\nIn a perfect world, restarting emulation (or not) would be less arbitrary,\ne.g. would honor not only host events (NEED_RESCHED, signals, etc.) but\nalso guest events (e.g. by checking kvm_vcpu_has_events()).  Unfortunately,\nas pointed out by Sashiko, pio_in_emulated()'s read-ahead logic is baked\ninto the restart logic, as KVM relies on restarting emulation to drain the\ncache and avoid duplicate reads from the I/O port.  I.e. re-entering the\nguest on kvm_vcpu_has_events() or __xfer_to_guest_mode_work_pending() would\nintroduce architecturally-incorrect, guest-visible changes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Conditionally resched when restarting REP string emulation\n\nWhen restarting emulation, e.g. of a REP-prefixed string instruction,\nconditionally reschedule as emulating guest writes can be deceptively slow\nand expensive, e.g. when shadow paging is in use and each write can trigger\nwrite tracking.\n\nIn a perfect world, restarting emulation (or not) would be less arbitrary,\ne.g. would honor not only host events (NEED_RESCHED, signals, etc.) but\nalso guest events (e.g. by checking kvm_vcpu_has_events()).  Unfortunately,\nas pointed out by Sashiko, pio_in_emulated()'s read-ahead logic is baked\ninto the restart logic, as KVM relies on restarting emulation to drain the\ncache and avoid duplicate reads from the I/O port.  I.e. re-entering the\nguest on kvm_vcpu_has_events() or __xfer_to_guest_mode_work_pending() would\nintroduce architecturally-incorrect, guest-visible changes.","source":"cvelist"}],"published":"2026-11-20T05:50:51.565Z","modified":"2026-11-23T08:18:12.000Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"3ad58cb4ec32dea14c915916c7298bf6c7903695","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"8871ec66b296bf14f0c096efee42c65990a30b7f","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"2b1c87db0a2950fd63d62e33570910d3063e1b6c","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"e74913838f4b93b5e23731cdcc09356d9697ec5b","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"c1293d2134c2d63741b197a1e5a6363894ed4bce","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"41a43510f77298d147a098eb182695d0001593c8","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"5a5f9853a78c45927cd0814ae67c5ad8b5021bcc","status":"affected"},{"type":"git","introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814","fixed":"ae85ac25eb671d174811cc3101549448671fd505","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.35","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.35","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3ad58cb4ec32dea14c915916c7298bf6c7903695","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8871ec66b296bf14f0c096efee42c65990a30b7f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b1c87db0a2950fd63d62e33570910d3063e1b6c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e74913838f4b93b5e23731cdcc09356d9697ec5b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1293d2134c2d63741b197a1e5a6363894ed4bce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41a43510f77298d147a098eb182695d0001593c8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a5f9853a78c45927cd0814ae67c5ad8b5021bcc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae85ac25eb671d174811cc3101549448671fd505","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99712","url":"https://www.cve.org/CVERecord?id=CVE-2026-99712","licence":"CVE Terms of Use","modified":"2026-11-23T08:06:24.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99712","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99712","licence":"Public domain","modified":"2026-11-23T08:18:12.000Z"}],"updatedAt":"2026-11-25T22:59:52.318Z","epss":{"score":0.00177,"percentile":0.07591,"date":"2026-12-01T12:00:22.000Z"}}