{"id":"CVE-2026-99712","summary":"KVM: x86: Conditionally resched when restarting REP string emulation","details":"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.","modified":"2026-11-20T07:01:11.910021620Z","published":"2026-11-20T05:50:51.565Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99712.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41a43510f77298d147a098eb182695d0001593c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a5f9853a78c45927cd0814ae67c5ad8b5021bcc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae85ac25eb671d174811cc3101549448671fd505"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c1293d2134c2d63741b197a1e5a6363894ed4bce"},{"type":"ADVISORY","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5cd21917da245fbe98bd443de2c7f519b3df6814"},{"fixed":"c1293d2134c2d63741b197a1e5a6363894ed4bce"},{"fixed":"41a43510f77298d147a098eb182695d0001593c8"},{"fixed":"5a5f9853a78c45927cd0814ae67c5ad8b5021bcc"},{"fixed":"ae85ac25eb671d174811cc3101549448671fd505"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99712.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.35"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99712.json"}}],"schema_version":"1.9.2"}