---
title: "CWE-1257: Improper Access Control Applied to Mirrored or Aliased Memory Regions"
url: https://radicalnotion.ai/cwe/cwe-1257
type: cwe
description: "Aliased or mirrored memory regions in hardware designs may have inconsistent read/write permissions enforced by the hardware."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1257: Improper Access Control Applied to Mirrored or Aliased Memory Regions

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 4
- **Of those, in CISA KEV:** 0
- **New in 2026:** 1
- **CWE catalog version:** 4.21

## Description

Aliased or mirrored memory regions in hardware designs may have inconsistent read/write permissions enforced by the hardware.

A common security weakness that can exist in such memory mapping is that aliased memory regions could have different read/write access protections enforced by the hardware such that an untrusted agent is blocked from accessing a memory address but is not blocked from accessing the corresponding aliased memory address. Such inconsistency can then be used to bypass the access protection of the primary memory block and read or modify the protected memory.

An untrusted agent could also possibly create memory aliases in the system address map for malicious purposes if it is able to change the mapping of an address region or modify memory region sizes.

## Background

Hardware product designs often need to implement memory protection features that enable privileged software to define isolated memory regions and access control (read/write) policies. Isolated memory regions can be defined on different memory spaces in a design (e.g. system physical address, virtual address, memory mapped IO). Each memory cell should be mapped and assigned a system address that the core software can use to read/write to that memory. It is possible to map the same memory cell to multiple system addresses such that read/write to any of the aliased system addresses would be decoded to the same memory cell. This is commonly done in hardware designs for redundancy and simplifying address decoding logic. If one of the memory regions is corrupted or faulty, then that hardware can switch to using the data in the mirrored memory region. Memory aliases can also be created in the system address map if the address decoder unit ignores higher order address bits when mapping a smaller address region into the full system address.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Applicable platforms

**Technologies:** Memory Hardware (Undetermined), Processor Hardware (Undetermined), Microcontroller Hardware (Undetermined), Network on Chip Hardware (Undetermined), System on Chip (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Memory | An untrusted agent might be blocked from accessing a memory region, but it is not blocked from accessing the corresponding aliased memory region. |
| Integrity | Modify Memory | An untrusted agent might be blocked from accessing a memory region, but it is not blocked from accessing the corresponding aliased memory region. |
| Availability | DoS: Instability | - |

## Potential mitigations

### Architecture and Design, Implementation

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, Implementation

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

## Demonstrative examples

### Example 1

In a System-on-a-Chip (SoC) design the system fabric uses 16 bit addresses. An IP unit (Unit\_A) has 4 kilobytes of internal memory which is mapped into a 16 kilobyte address range in the system fabric address map.

System Address, Mapped to

0x0000 - 0x3FFF, Unit\_A registers : 0x0000 - 0x0FFF

0x4000 - 0xFFFF, Other IPs & Memory

To protect the register controls in Unit\_A unprivileged software is blocked from accessing addresses between 0x0000 - 0x0FFF.

The address decoder of Unit\_A masks off the higher order address bits and decodes only the lower 12 bits for computing the offset into the 4 kilobyte internal memory space.

Bad code:

```other
In this design  the aliased memory address ranges are these:

0x0000 - 0x0FFF
0x1000 - 0x1FFF
0x2000 - 0x2FFF
0x3000 - 0x3FFF
The same register can be accessed using four different addresses: 0x0000, 0x1000, 0x2000, 0x3000.
The system address filter only blocks access to range 0x0000 - 0x0FFF and does not block access to the aliased addresses in 0x1000 - 0x3FFF range. Thus, untrusted software can leverage the aliased memory addresses to bypass the memory protection.
```

Good code:

```other
In this design the aliased memory addresses (0x1000 - 0x3FFF) could be blocked from all system software access since they are not used by software.
Alternately, the MPU logic can be changed to apply the memory protection policies to the full address range mapped to Unit_A (0x0000 - 0x3FFF).
```

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-36600 | - | high | 8.2 | - | No | 2025-07-08 |
| CVE-2025-27032 | Improper Access Control Applied to Mirrored or Aliased Memory Regions in Hypervisor | high | 7.8 | - | No | 2025-09-24 |
| CVE-2019-1174 | Windows Elevation of Privilege Vulnerability | high | 7.0 | - | No | 2019-08-14 |
| CVE-2026-28247 | - | medium | 5.9 | - | No | 2026-11-10 |

## Related attack patterns (CAPEC)

- [CAPEC-456](https://radicalnotion.ai/capec/capec-456): Infected Memory
- [CAPEC-679](https://radicalnotion.ai/capec/capec-679): Exploitation of Improperly Configured or Implemented Memory Protections

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-284](https://radicalnotion.ai/cwe/cwe-284) | Improper Access Control |
| Can precede | [CWE-119](https://radicalnotion.ai/cwe/cwe-119) | Improper Restriction of Operations within the Bounds of a Memory Buffer |

## Frequently asked questions

### What is CWE-1257?

Aliased or mirrored memory regions in hardware designs may have inconsistent read/write permissions enforced by the hardware.

### What CVEs are caused by CWE-1257?

4 recorded CVEs are attributed to CWE-1257, including CVE-2025-36600, CVE-2025-27032 and CVE-2019-1174.

### How do you prevent CWE-1257?

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.

### What are the consequences of CWE-1257?

Exploiting CWE-1257 can lead to: Read Memory, Modify Memory, DoS: Instability.

### Is CWE-1257 actively exploited?

4 recorded CVEs are caused by CWE-1257; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1257.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1257). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
