---
title: "CWE-1251: Mirrored Regions with Different Values"
url: https://radicalnotion.ai/cwe/cwe-1251
type: cwe
description: "The product's architecture mirrors regions without ensuring that their contents always stay in sync."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1251: Mirrored Regions with Different Values

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

## Description

The product's architecture mirrors regions without ensuring that their contents always stay in sync.

In the interest of increased performance, one might need to duplicate a resource. A cache memory is a common example of this concept, which keeps a "local" copy of a data element in the high speed cache memory. Unfortunately, this speed improvement comes with a downside, since the product needs to ensure that the local copy always mirrors the original copy truthfully. If they get out of sync, the computational result is no longer true.

During hardware design, memory is not the only item that gets mirrored. There are many other entities that get mirrored, as well: registers, memory regions, and, in some cases, even whole computational units. For example, within a multi-core processor, if all memory accesses for each and every core goes through a single Memory-Management Unit (MMU) then the MMU will become a performance bottleneck. In such cases, duplicating local MMUs that will serve only a subset of the cores rather than all of them may resolve the performance issue. These local copies are also called "shadow copies" or "mirrored copies."

If the original resource never changed, local duplicate copies getting out of sync would never be an issue. However, the values of the original copy will sometimes change. When the original copy changes, the mirrored copies must also change, and change fast.

This situation of shadow-copy-possibly-out-of-sync-with-original-copy might occur as a result of multiple scenarios, including the following:

After the values in the original copy change, due to some reason the original copy does not send the "update" request to its shadow copies.

After the values in the original copy change, the original copy dutifully sends the "update" request to its shadow copies, but due to some reason the shadow copy does not "execute" this update request.

After the values in the original copy change, the original copy sends the "update" request to its shadow copies, and the shadow copy executes this update request faithfully. However, during the small time period when the original copy has "new" values and the shadow copy is still holding the "old" values, an attacker can exploit the old values. Then it becomes a race condition between the attacker and the update process of who can reach the target, shadow copy first, and, if the attacker reaches first, the attacker wins.

The attacker might send a "spoofed" update request to the target shadow copy, pretending that this update request is coming from the original copy. This spoofed request might cause the targeted shadow copy to update its values to some attacker-friendly values, while the original copies remain unchanged by the attacker.

Suppose a situation where the original copy has a system of reverting back to its original value if it does not hear back from all the shadow copies that such copies have successfully completed the update request. In such a case, an attack might occur as follows: (1) the original copy might send an update request; (2) the shadow copy updates it; (3) the shadow copy sends back the successful completion message; (4) through a separate issue, the attacker is able to intercept the shadow copy's completion message. In this case, the original copy thinks that the update did not succeed, hence it reverts to its original value. Now there is a situation where the original copy has the "old" value, and the shadow copy has the "new" value.

## Modes of introduction

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

## Applicable platforms

**Languages:** VHDL (Undetermined), Verilog (Undetermined)

**Technologies:** System on Chip (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability, Access Control, Accountability, Authentication, Authorization, Non-Repudiation | Varies by Context | - |

## Potential mitigations

### Architecture and Design

Whenever there are multiple, physically different copies of the same value that might change and the process to update them is not instantaneous and atomic, it is impossible to assert that the original and shadow copies will always be in sync - there will always be a time period when they are out of sync. To mitigate the consequential risk, the recommendations essentially are:

- Make this out-of-sync time period as small as possible, and
- Make the update process as robust as possible.

Effectiveness: Moderate

## Demonstrative examples

### Example 1

Suppose a processor's Memory Management Unit (MMU) has 5 other shadow MMUs to distribute its workload for its various cores. Each MMU has the start address and end address of "accessible" memory. Any time this accessible range changes (as per the processor's boot status), the main MMU sends an update message to all the shadow MMUs.

Suppose the interconnect fabric does not prioritize such "update" packets over other general traffic packets. This introduces a race condition. If an attacker can flood the target with enough messages so that some of those attack packets reach the target before the new access ranges gets updated, then the attacker can leverage this scenario.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-25939 | - | medium | 6.7 | - | No | 2024-08-14 |
| CVE-2023-4272 | Mali GPU Kernel Driver exposes sensitive data from freed memory | medium | 5.5 | - | No | 2023-11-07 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-1250](https://radicalnotion.ai/cwe/cwe-1250) | Improper Preservation of Consistency Between Independent Representations of Shared State |
| Peer | [CWE-1312](https://radicalnotion.ai/cwe/cwe-1312) | Missing Protection for Mirrored Regions in On-Chip Fabric Firewall |

## Frequently asked questions

### What is CWE-1251?

The product's architecture mirrors regions without ensuring that their contents always stay in sync.

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

2 recorded CVEs are attributed to CWE-1251, including CVE-2024-25939 and CVE-2023-4272.

### How do you prevent CWE-1251?

Whenever there are multiple, physically different copies of the same value that might change and the process to update them is not instantaneous and atomic, it is impossible to assert that the original and shadow copies will always be in sync - there will always be a time period when they are out of sync. To mitigate the consequential risk, the recommendations essentially are:

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

Exploiting CWE-1251 can lead to: Varies by Context.

### Is CWE-1251 actively exploited?

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

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

---

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