CVE-2026-99186

Source
https://cve.org/CVERecord?id=CVE-2026-99186
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99186.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99186
Downstream
Published
2026-10-28T10:35:44Z
Modified
2026-10-30T02:47:24Z
Summary
x86/insn-eval: Fix shadowed segment index in get_seg_reg_override_idx()
Details

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 ]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99186.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
45e1dccc0653c50e377dae57ef086a8d0f71061d
Fixed
0efe927053f7eabd1e8658cbda96ee3d78bd1765
Fixed
32c52ec87d6245ee2d12ed5dd509e40062939b50

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99186.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99186.json"