Skip to content
OpenAdvisories

Weakness (CWE)

CWE-1298: Hardware Logic Contains Race Conditions

Base Draft

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

More detail

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.

How to prevent it (2 mitigations)
  1. 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.

  2. 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.

Source: MITRE CWE-1298

0 results · Clear filters · Feed

Nothing found.