CWEweakness
CWE-1332 Improper Handling of Faults that Lead to Instruction Skips
- Abstraction
- Base
- Structure
- Simple
- Status
- Stable
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The device is missing or incorrectly implements circuitry or sensors that detect and mitigate the skipping of security-critical CPU instructions when they occur.
Common consequences
• Confidentiality, Integrity, Authentication: Bypass Protection Mechanism, Alter Execution Logic, Unexpected State, Varies by Context — Depending on the context, instruction skipping can
have a broad range of consequences related to the
generic bypassing of security critical code.
Attackers can use fault injection techniques to
alter the operating conditions of hardware so that
security-critical instructions are skipped more
frequently or more reliably than they would in a
"natural" setting.
Potential mitigations
• [Architecture and Design] Design strategies for ensuring safe failure if
inputs, such as Vcc, are modified out of acceptable
ranges.
• [Architecture and Design] Design strategies for ensuring safe behavior if
instructions attempt to be skipped.
• [Architecture and Design] Identify mission critical secrets that should
be wiped if faulting is detected, and design a
mechanism to do the deletion.
• [Implementation] Add redundancy by performing an operation
multiple times, either in space or time, and perform
majority voting. Additionally, make conditional
instruction timing unpredictable.
• [Implementation] Use redundant operations or canaries to
detect and respond to faults.
• [Implementation] Ensure that fault mitigations are strong enough
in practice. For example, a low power detection
mechanism that takes 50 clock cycles to trigger at lower
voltages may be an insufficient security mechanism if
the instruction counter has already progressed with no
other CPU activity occurring.
Detection methods
• Automated Static Analysis: This weakness can be found using automated static analysis once a developer has indicated which code paths are critical to protect.
• Simulation / Emulation: This weakness can be found using automated dynamic analysis. Both emulation of a CPU with instruction skips, as well as RTL simulation of a CPU IP, can indicate parts of the code that are sensitive to faults due to instruction skips.
• Manual Analysis: This weakness can be found using manual (static) analysis. The analyst has security objectives that are matched against the high-level code. This method is less precise than emulation, especially if the analysis is done at the higher level language rather than at assembly level.
Observed examples
• CVE-2019-15894: fault injection attack bypasses the verification mode, potentially allowing arbitrary code execution.
Related
Attack pattern · CAPEC (2)
Observed example · CVE (1)
- CVE-2019-15894 An issue was discovered in Espressif ESP-IDF 2.x, 3.0.x through 3.0.9, 3.1.x through 3.1.6, 3.2.x through 3.2.3, and 3.3.x through 3.3.1. vulnerability
Child of · CWE (1)
- CWE-1384 Improper Handling of Physical or Environmental Conditions weakness
Peer of · CWE (1)
- CWE-1247 Improper Protection Against Voltage and Clock Glitches weakness
Referenced by CAPEC · weakness (2)
Referenced by CVE · weakness (3)
- CVE-2025-8028 On arm64, a WASM `br_table` instruction with a lot of entries could lead to the label being too far from the instruction causing truncation… vulnerability
- CVE-2024-20059 In da, there is a possible escalation of privilege due to an incorrect status check. vulnerability
- CVE-2024-20060 In da, there is a possible escalation of privilege due to an incorrect status check. vulnerability