{"id":"CVE-2026-99712","aliases":[],"title":"KVM: x86: Conditionally resched when restarting REP string emulation","originalDescription":"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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00177,"percentile":0.07576},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=2.6.35, <6.12.118","fixed":"6.12.118"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <2b1c87db0a2950fd63d62e33570910d3063e1b6c","fixed":"2b1c87db0a2950fd63d62e33570910d3063e1b6c"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <3ad58cb4ec32dea14c915916c7298bf6c7903695","fixed":"3ad58cb4ec32dea14c915916c7298bf6c7903695"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <41a43510f77298d147a098eb182695d0001593c8","fixed":"41a43510f77298d147a098eb182695d0001593c8"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <5a5f9853a78c45927cd0814ae67c5ad8b5021bcc","fixed":"5a5f9853a78c45927cd0814ae67c5ad8b5021bcc"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <8871ec66b296bf14f0c096efee42c65990a30b7f","fixed":"8871ec66b296bf14f0c096efee42c65990a30b7f"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <ae85ac25eb671d174811cc3101549448671fd505","fixed":"ae85ac25eb671d174811cc3101549448671fd505"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <c1293d2134c2d63741b197a1e5a6363894ed4bce","fixed":"c1293d2134c2d63741b197a1e5a6363894ed4bce"},{"ecosystem":"vendor","name":"Linux","range":">=5cd21917da245fbe98bd443de2c7f519b3df6814, <e74913838f4b93b5e23731cdcc09356d9697ec5b","fixed":"e74913838f4b93b5e23731cdcc09356d9697ec5b"}],"references":[{"url":"https://git.kernel.org/stable/c/c1293d2134c2d63741b197a1e5a6363894ed4bce","type":"other"},{"url":"https://git.kernel.org/stable/c/41a43510f77298d147a098eb182695d0001593c8","type":"other"},{"url":"https://git.kernel.org/stable/c/5a5f9853a78c45927cd0814ae67c5ad8b5021bcc","type":"other"},{"url":"https://git.kernel.org/stable/c/ae85ac25eb671d174811cc3101549448671fd505","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99712.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99712","type":"advisory"},{"url":"https://git.kernel.org/stable/c/3ad58cb4ec32dea14c915916c7298bf6c7903695","type":"other"},{"url":"https://git.kernel.org/stable/c/8871ec66b296bf14f0c096efee42c65990a30b7f","type":"other"},{"url":"https://git.kernel.org/stable/c/2b1c87db0a2950fd63d62e33570910d3063e1b6c","type":"other"},{"url":"https://git.kernel.org/stable/c/e74913838f4b93b5e23731cdcc09356d9697ec5b","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.569Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99712","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.232Z"},{"name":"osv","at":"2026-11-20T21:22:49.024Z","url":"https://osv.dev/vulnerability/CVE-2026-99712","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T07:04:06.387Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:58.796Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99712","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:15.584Z"}],"firstSeenAt":"2026-11-20T06:28:15.584Z","publishedAt":"2026-11-20T05:50:51.565Z","modifiedAt":"2026-11-23T08:18:12.000Z"}