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=1793187663; b=zgrVyLJxespKMGUh7Wgosb1X56yg4tJSeUMEzxgd/VmGxcgojKHEz/oDTY8Aw1qz4sl/ QLtJKR2Z4zW7uyu1If3A/1m9lzY5RKm7KNYuaRjD0rEgubpHWeW//ks3aA0BJqyskqg/o 2xljgCMZKl0L6s+Eq55PphYbpTZc5IlKzLqUu4UD4D06kmv1jRz13KG8IG0NLih21Ewem 4k4y3vStnOoe7OPnylA0swTvkFNEndTvucn3CTAc13ca9CfJp2sBQGFejGYDRDFQB7jiT 4uh2oNG4fz6G11yPt4AEICSLlupwFtgV6DnDrgUtCbpc7m7WsQb2PqgEZOw+HRsujdg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187663; 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=SUvhyEpOrNuYh6w8KtYoTrajanGqvUly/1x3yrIiHcE=; b=q99SmDsAd9Ach/IyhANIn5wvCsDVD6a85N9u0N8uLwcnPv/kFO0zaQNApj+bRrd0frBH hKnbxGHO5yKliiZQ6o9rtAPnD/d5ZNxWCNmREKmwp/2OV3ReJN40F3DB7Z4ON78mCSbux m21QwGb472DbQilrir99kGxSNByg6M1TK5TC1mC6TEVWXZdVOeHWAsxLy0RF6j54rRSYD vjHA0p55f/9VSckHt0Jvxv/UiKjzXfTv+tE3qWqVXj+6QRw1SVFJWkSJlmmiu7+8X6GZa Dg4/Ae/9AFSlnifHXIX00wjOHbFvJ9r8Y25Tdjj2wUhd1Z/xkfTmvFlhdq0fZqr1q9A== 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=e80rrBR9; 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 06081606A33A for ; Wed, 28 Oct 2026 11:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=e80rrBR9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F7941F01825; Wed, 28 Oct 2026 11:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187662; bh=SUvhyEpOrNuYh6w8KtYoTrajanGqvUly/1x3yrIiHcE=; h=From:To:Cc:Subject:Date:Reply-To; b=e80rrBR9Oaq+D52ZD/dybMKg1jnMCWXMT6b6H7TKUPEZERjHePGkq+6oG9t0MrVb6 Y5iBDHDhNeL1TsYdhKzKqxiR/P0Rfxoeps9/qpDtHJLnBTuJj1pUNIYS5kt/wnNbk2 Y75ME5XqZpZQfZ1ee4e5mn6tgt0WqF+nS334mhdE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99186: x86/insn-eval: Fix shadowed segment index in get_seg_reg_override_idx() Date: Wed, 28 Oct 2026 11:36:13 +0100 Message-ID: <2026102811-CVE-2026-99186-4c03@gregkh> X-Mailer: git-send-email 2.56.0 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=2958; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ol94SBomxhS0nGW3KuDCyd8ARfk5OmyspAyuxL+xOcc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz9/v2Vc/33nOs5/fQw5eSPHm4dweuGHimW3uRpe8W Db0ud4064hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJvKpjmJ/4hLdJrWRq5dYD 8xOPb5PPWazsbcuwYP4iY7vnDcxtOWLZD3p41GJtGh/wAgA= 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: x86/insn-eval: Fix shadowed segment index in get_seg_reg_override_idx() Commit 45e1dccc0653 ("x86/insn: Simplify for_each_insn_prefix()") made for_each_insn_prefix() declare its own loop counter named idx. get_seg_reg_override_idx() keeps its result in a local of the same name, so the assignments in the loop body now write the loop counter: - the function always returns INAT_SEG_REG_DEFAULT, so FS and GS overrides are ignored; - a CS override sets the counter to INAT_SEG_REG_CS (2), the increment makes it 3, and prefixes.bytes[3] holds the last prefix, 0x2e again, so the loop never terminates. The UMIP emulation reaches this from the #GP handler for user space: an SGDT, SIDT or SMSW with a memory operand and a CS prefix leaves the task spinning in the kernel, never returning to user space, with a SIGKILL that is never delivered. Any user can thus tie up CPUs until reboot. With an FS or GS prefix, the emulated result is written to the wrong address. Rename the internal macro iterator variable. [ Lukas' original patch renamed the use site, I changed it to rename the iterator in the macro instead, but left Lukas' commit message and authorship - Linus ] The Linux kernel CVE team has assigned CVE-2026-99186 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 45e1dccc0653c50e377dae57ef086a8d0f71061d and fixed in 7.2.13 with commit 0efe927053f7eabd1e8658cbda96ee3d78bd1765 Issue introduced in 6.19 with commit 45e1dccc0653c50e377dae57ef086a8d0f71061d and fixed in 7.3 with commit 32c52ec87d6245ee2d12ed5dd509e40062939b50 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-99186 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/include/asm/insn.h tools/arch/x86/include/asm/insn.h 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/0efe927053f7eabd1e8658cbda96ee3d78bd1765 https://git.kernel.org/stable/c/32c52ec87d6245ee2d12ed5dd509e40062939b50