CWE-1209: Failure to Disable Reserved Bits
The reserved bits in a hardware design are not disabled prior to production.
Last updated
Overview
CWE-1209 (Failure to Disable Reserved Bits) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
Reserved bits are labeled as such so they can be allocated for a later purpose. Typically, reserved bits are used for future capabilities and should not support any functional logic in the design. They are not supposed to do anything in the current design.
Common consequences
What can happen when CWE-1209 is exploited.
Varies by Context
Affects: Confidentiality, Integrity, Availability, Access Control, Accountability, Authentication, Authorization, Non-Repudiation
If the logic being controlled by these bits is still enabled in production, an adversary could use the logic to induce unwanted/unsupported behavior in the hardware. Adversaries with access to these bits will write to them in hopes of compromising hardware state. This type of weakness all depends on the capabilities of the logic being controlled or configured by the reserved bits.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Technologies
How to prevent it
Practical mitigations for CWE-1209, grouped by where in the lifecycle they apply.
Include a feature to disable reserved bits.
Any writes to these reserve bits are blocked (e.g., ignored, access-protected, etc.), or an exception can be asserted.
Code examples
MITRE examples of the weakness in code.
Assume a hardware Intellectual Property (IP) has address space 0x0-0x0F for its configuration registers, with the last one labeled reserved (i.e. 0x0F). Therefore inside the Finite State Machine (FSM), the code is as follows:
Vulnerable example
reg gpio_out = 0; //gpio should remain low for normal operation
case (register_address)
4'b1111 : //0x0F
begin
gpio_out = 1;
endSafe example
reg gpio_out = 0; //gpio should remain low for normal operation
case (register_address)
//4'b1111 : //0x0F
default: gpio_out = gpio_out;An adversary may perform writes to reserved address space in hopes of changing the behavior of the hardware. In the code above, the GPIO pin should remain low for normal operation. However, it can be asserted by accessing the reserved address space (0x0F). This may be a concern if the GPIO state is being used as an indicator of health (e.g. if asserted the hardware may respond by shutting down or resetting the system, which may not be the correct action the system should perform).
In the code below, the condition "register_address = 0X0F" is commented out, and a default is provided that will catch any values of register_address not explicitly accounted for and take no action with regards to gpio_out. This means that an attacker who is able to write 0X0F to register_address will not enable any undocumented "features" in the process.
Attack patterns
CAPEC attack patterns that exploit this weakness.
Frequently asked questions
Common questions about CWE-1209.
- What is CWE-1209?
- The reserved bits in a hardware design are not disabled prior to production.
- How do you prevent CWE-1209?
- Include a feature to disable reserved bits.
- What are the consequences of CWE-1209?
- Exploiting CWE-1209 can lead to: Varies by Context.
References
- MITRE CWE definition (CWE-1209) (opens in a new tab)
- CWE-1209 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-1209 CVEs
Get an alert when a new CWE-1209 CVE affects your products, with AI-written analysis and remediation steps.