CWEweakness

CWE-1245 Improper Finite State Machines (FSMs) in Hardware Logic

Official page ↗
Abstraction
Base
Structure
Simple
Status
Incomplete
Languages
Not Language-Specific
CWE version
5.0

Description

Faulty finite state machines (FSMs) in the hardware logic allow an attacker to put the system in an undefined state, to cause a denial of service (DoS) or gain privileges on the victim's system.

Extended description

The functionality and security of the system heavily depend on the implementation of FSMs. FSMs can be used to indicate the current security state of the system. Lots of secure data operations and data transfers rely on the state reported by the FSM.

Common consequences

• Availability, Access Control: Unexpected State, DoS: Crash, Exit, or Restart, DoS: Instability, Gain Privileges or Assume Identity — Faulty FSM designs that do not account for all states, either through undefined states (left as don't cares) or through incorrect implementation, might lead an attacker to drive the system into an unstable state from which the system cannot recover without a reset, thus causing a DoS. Depending on what the FSM is used for, an attacker might also gain additional privileges to launch further attacks and compromise the security guarantees.

Potential mitigations

• [Architecture and Design, Implementation] Define all possible states and handle all unused states through default statements. Ensure that system defaults to a secure state.

Related

Attack pattern · CAPEC (1)

  • CAPEC-74 Manipulating State attack pattern

Child of · CWE (1)

  • CWE-684 Incorrect Provision of Specified Functionality weakness

Referenced by CAPEC · weakness (1)

  • CAPEC-74 Manipulating State attack pattern

Referenced by CVE · weakness (5)

  • CVE-2025-48508 Improper Hardware reset flow logic in the GPU GFX Hardware IP block could allow a privileged attacker in a guest virtual machine to control… vulnerability
  • CVE-2024-58311 Dormakaba Saflok System 6000 contains a predictable key generation algorithm that allows attackers to derive card access keys from a 32-bit… vulnerability
  • CVE-2024-31068 Improper Finite State Machines (FSMs) in Hardware Logic for some Intel(R) Processors may allow privileged user to potentially enable denial… vulnerability
  • CVE-2024-21853 Improper finite state machines (FSMs) in the hardware logic in some 4th and 5th Generation Intel(R) Xeon(R) Processors may allow an… vulnerability
  • CVE-2024-24968 Improper finite state machines (FSMs) in hardware logic in some Intel(R) Processors may allow an privileged user to potentially enable a… vulnerability