CWEweakness
CWE-1222 Insufficient Granularity of Address Regions Protected by Register Locks
- Abstraction
- Variant
- Structure
- Simple
- Status
- Incomplete
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product defines a large address region protected from modification by the same register lock control bit. This results in a conflict between the functional requirement that some addresses need to be writable by software during operation and the security requirement that the system configuration lock bit must be set during the boot process.
Extended description
A problem can arise wherein the protected region definition is not granular enough. After the programmable lock bit has been set, then this new functionality cannot be implemented without changing the hardware design.
Common consequences
• Access Control: Other — System security configuration cannot be defined in a way that does not conflict with functional requirements of device.
Potential mitigations
• [Architecture and Design] The defining of protected locked registers should be reviewed or tested early in the design phase with software teams to ensure software flows are not blocked by the security locks.
As an alternative to using register lock control bits and fixed access control regions, the hardware design could use programmable security access control configuration so that device trusted firmware can configure and change the protected regions based on software usage and security models.
Related
Attack pattern · CAPEC (1)
- CAPEC-679 Exploitation of Improperly Configured or Implemented Memory Protections attack pattern
Child of · CWE (1)
- CWE-1220 Insufficient Granularity of Access Control weakness
Referenced by CAPEC · weakness (1)
- CAPEC-679 Exploitation of Improperly Configured or Implemented Memory Protections attack pattern
Referenced by CVE · weakness (1)
- CVE-2025-21283 Microsoft Edge (Chromium-based) Remote Code Execution Vulnerability vulnerability