CVE-2026-99186

x86/insn-eval: Fix shadowed segment index in get_seg_reg_override_idx()

Published Oct 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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 ]

Analysis

AI-generated

Technical impact

The bug in the Linux kernel’s x86 instruction evaluation, caused by a shadowed local variable in get_seg_reg_override_idx(), leads to an infinite execution loop inside the #GP handler for user-space errors. Affected user-mode instructions that involve a CS, FS or GS prefix spin the kernel indefinitely, preventing the delivery of the SIGKILL that would normally terminate the offending process. The consequence is that any unprivileged user can tie up one or more CPUs until a reboot occurs, effectively denying service to the system.

Affected Systems

The vulnerability affects Linux kernel versions prior to the inclusion of commit 45e1dccc0653, which simplified the for_each_insn_prefix() macro. All Linux kernel builds that contain the earlier code for x86/insn-eval are potentially vulnerable, regardless of distribution. The issue is specific to the x86 architecture and does not apply to ARM or other CPU families.

Risk and Exploitability

The flaw is a local-user denial-of-service condition with a directly exploitable code path that does not require elevated privileges. The CVSS score is 5.5, indicating a medium severity, and the EPSS score is < 1%, suggesting low likelihood of widespread exploitation. The impact of the bug—continuous CPU lock-up and denial of system responsiveness—renders it a medium‑to‑high risk. The vulnerability is not yet listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that incorporates commit 45e1dccc0653 or later.
  • If an immediate kernel upgrade is not possible, backport the patch that renames the macro iterator variable into the current kernel source and rebuild the kernel.
  • After updating or patching, monitor system CPU usage for any anomalous high-CPU processes that might indicate an attempt to exploit the flaw.

Generated by OpenCVE AI on November 2, 2026 at 13:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-835
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-665
Type Values Removed Values Added
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 ]
Title x86/insn-eval: Fix shadowed segment index in get_seg_reg_override_idx()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-665

    Improper Initialization

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 28, 2026, 10:35 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 28, 2026, 11:17 AM
Severity
Moderate
Public date
Oct 28, 2026, 10:35 AM