CWEweakness
CWE-1223 Race Condition for Write-Once Attributes
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Languages
- VHDL, Verilog
- CWE version
- 5.0
Description
A write-once register in hardware design is programmable by an untrusted software component earlier than the trusted software component, resulting in a race condition issue.
Extended description
Implementation issues in hardware design of such controls can expose such registers to a race condition security flaw.
For example, consider a hardware design that has two different software/firmware modules executing in parallel. One module is trusted (module A) and another is untrusted (module B). In this design, it could be possible for Module B to send write cycles to the write-once register before Module A. Since the field is write-once, the programmed value from Module A will be ignored and the pre-empted value programmed by Module B will be used by hardware.
Common consequences
• Access Control: Bypass Protection Mechanism — System configuration cannot be programmed in a secure way.
Potential mitigations
• [Architecture and Design] During hardware design, all register write-once or sticky fields must be evaluated for proper configuration.
Detection methods
• Automated Analysis: The testing phase should use automated tools to test that values are not reprogrammable and that write-once fields lock on writing zeros.
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-10743 IBM MQ could allow an authenticated attacker to cause a denial of service or corrupt memory due to improper validation of buffer sizes in… vulnerability
- CVE-2025-0077 In multiple functions of UserController.java, there is a possible lock screen bypass due to a race condition. vulnerability
- CVE-2024-2975 A race condition was identified through which privilege escalation was possible in certain configurations. vulnerability