CWE-1257

Improper Access Control Applied to Mirrored or Aliased Memory Regions

Medium

Description

Aliased or mirrored memory regions in hardware designs may have inconsistent read/write permissions enforced by the hardware. A possible result is that an untrusted agent is blocked from accessing a memory region but is not blocked from accessing the corresponding aliased memory region.

Potential Impact

How to Fix

Architecture and Design

The checks should be applied for consistency access rights between primary memory regions and any mirrored or aliased memory regions. If different memory protection units (MPU) are protecting the aliased regions, their protected range definitions and policies should be synchronized.

Architecture and Design

The controls that allow enabling memory aliases or changing the size of mapped memory regions should only be programmable by trusted software components.

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-1257 vulnerabilities in your codebase.

Get Security Assessment