From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154351; b=2VhmqZwvLEvJ6ILHClTC0R2FKvuTSFR+k9iZIkyBjZyFGdw0Xov0I3KL3CGkJxoJizyD KLmfdZF/Zb7tPTws4bFkJ+jW8svofKE3DfFSI6x4RmhAd74cVRCvLlOqkTLlqLd83lMne 1Wu12ue4KG9TyU8PAcF2S0e6oUquupOYe13H+uewbw0zcncwtq4gkeMxG948GxwySpMUk Mkn7HGWPgLfxC6iifGTe8yeVGF3FNpIOdtxFIrw1VUlpAHQAwbTVu68PywrYsjUc63pX+ 1Bhz29zsr2IsIBttfu4xd1w+MWy16dxqZgM/cml2TQxxpzRMJdK42XkOKtGRnSqLitQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154351; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=JpOE10nVdpQwHODU2LEA1Q7gKwl7L+4pOVg/5nUbhfo=; b=3WFQ8zLVWnsdAeaa9O7n/4CY8iyiwuVG/rpS33BBfITtU9305/kxM9RdxVCp/vlycM4p NMEpK67Fysanrg9bGgVQG8jG8Gsj7Oza/SWJEq5fNgJ5HrBbdz9l6rMhUteiCI7y9Xk6i 4xvpxU7nG70MduqXD9xn3lHmr++kPCLUR/JGmZQXaFM/gWMZVlU2ugRxrC7vrjBxAdgQ5 dMQLzDZNWNKoNhoL8ZcOgdXxjlHf4lSYjjRf6tTBFAQ3aDhkSNZIvPjMaNmYuTA8bulSY 4Rw/GKXJie4paG62Yfx621rcmJvVgxd0BezV99jA9lP91JPD/JxRwLg8dxtWipn+LIw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XJIUWqZJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB65B60A260A for ; Fri, 20 Nov 2026 05:59:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XJIUWqZJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18C061F000C6; Fri, 20 Nov 2026 05:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154351; bh=JpOE10nVdpQwHODU2LEA1Q7gKwl7L+4pOVg/5nUbhfo=; h=From:To:Cc:Subject:Date:Reply-To; b=XJIUWqZJYaly7v903WjbMElhnlYn8sd7wk6CElS8ffydHtOaWcwpo1pFO50oH48M1 gj6fQo9/oZkmKZwaeLRFxpLdBIsET8F4wLEhqVfWOnTdX9xHO39q0e/hdLgqTYkLHq gsf9hd9AqMfQW9t+dzu0uPP3HZ69f4V+Mpgkexbo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99712: KVM: x86: Conditionally resched when restarting REP string emulation Date: Fri, 20 Nov 2026 06:51:38 +0100 Message-ID: <2026112006-CVE-2026-99712-8147@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3068; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3Pqf8kSvOPqthAykvJBnwNmJTaIevqgdTgQGMWquAeI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7/cfPXj1SM+ztOduDjfet8jtqPkw+6d5cYHyZQm1D wxzlnn+74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJtC1jmGf3ROb/1d3Rl1df DXZuPO3wacLNTC2GBfNnffy0QLTtxlOrvB3HDvp6XD76PwcA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99712 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.35 with commit 5cd21917da245fbe98bd443de2c7f519b3df6814 and fixed in 6.12.118 with commit c1293d2134c2d63741b197a1e5a6363894ed4bce Issue introduced in 2.6.35 with commit 5cd21917da245fbe98bd443de2c7f519b3df6814 and fixed in 6.18.64 with commit 41a43510f77298d147a098eb182695d0001593c8 Issue introduced in 2.6.35 with commit 5cd21917da245fbe98bd443de2c7f519b3df6814 and fixed in 7.3.5 with commit 5a5f9853a78c45927cd0814ae67c5ad8b5021bcc Issue introduced in 2.6.35 with commit 5cd21917da245fbe98bd443de2c7f519b3df6814 and fixed in 7.4-rc2 with commit ae85ac25eb671d174811cc3101549448671fd505 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99712 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/x86/kvm/x86.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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