CWEweakness

CWE-1298 Hardware Logic Contains Race Conditions

Official page ↗
Abstraction
Base
Structure
Simple
Status
Draft
Languages
VHDL, Verilog
CWE version
5.0

Description

A race condition in the hardware logic results in undermining security guarantees of the system.

Extended description

A race condition in logic circuits typically occurs when a logic gate gets inputs from signals that have traversed different paths while originating from the same source. Such inputs to the gate can change at slightly different times in response to a change in the source signal. This results in a timing error or a glitch (temporary or permanent) that causes the output to change to an unwanted state before settling back to the desired state.

Common consequences

• Access Control: Bypass Protection Mechanism, Gain Privileges or Assume Identity, Alter Execution Logic — If timing errors occur in access control logic or finite state machines that are implemented in security sensitive flows, an attacker might exploit them to circumvent existing protections.

Potential mitigations

• [Architecture and Design] Adopting design practices that encourage designers to recognize and eliminate race conditions, such as Karnaugh maps, could result in the decrease in occurrences of race conditions. • [Implementation] Logic redundancy can be implemented along security critical paths to prevent race conditions. To avoid metastability, it is a good practice in general to default to a secure state in which access is not given to untrusted agents.

Related

Attack pattern · CAPEC (1)

  • CAPEC-26 Leveraging Race Conditions attack pattern

Child of · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

Referenced by CAPEC · weakness (1)

  • CAPEC-26 Leveraging Race Conditions attack pattern

Referenced by CVE · weakness (3)

  • CVE-2026-20707 Hardware logic contains race conditions for some 3rd Gen Intel(R) Xeon(R) Scalable Processors within Ring 3: unprivileged software may… vulnerability
  • CVE-2023-45733 Hardware logic contains race conditions in some Intel(R) Processors may allow an authenticated user to potentially enable partial… vulnerability
  • CVE-2023-20827 In ims service, there is a possible memory corruption due to a race condition. vulnerability