CWEweakness

CWE-1252 CPU Hardware Not Configured to Support Exclusivity of Write and Execute Operations

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

Description

The CPU is not configured to provide hardware support for exclusivity of write and execute operations on memory. This allows an attacker to execute data from all of memory.

Common consequences

• Confidentiality, Integrity: Execute Unauthorized Code or Commands — Without configuring exclusivity of operations via segregated areas of memory, an attacker may be able to inject malicious code onto memory and later execute it.

Potential mitigations

• [Architecture and Design] Implement a dedicated bit that can be leveraged by the Operating System to mark data areas as non-executable. If such a bit is not available in the CPU, implement MMU/MPU (memory management unit / memory protection unit). • [Integration] If MMU/MPU are not available, then the firewalls need to be implemented in the SoC interconnect to mimic the write-exclusivity operation.

Related

Attack pattern · CAPEC (1)

  • CAPEC-679 Exploitation of Improperly Configured or Implemented Memory Protections attack pattern

Child of · CWE (1)

  • CWE-284 Improper Access Control weakness

Referenced by CAPEC · weakness (1)

  • CAPEC-679 Exploitation of Improperly Configured or Implemented Memory Protections attack pattern