---
title: "CWE-1260: Improper Handling of Overlap Between Protected Memory Ranges"
url: https://radicalnotion.ai/cwe/cwe-1260
type: cwe
description: "The product allows address regions to overlap, which can result in the bypassing of intended memory protection."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1260: Improper Handling of Overlap Between Protected Memory Ranges

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

## Description

The product allows address regions to overlap, which can result in the bypassing of intended memory protection.

Isolated memory regions and access control (read/write) policies are used by hardware to protect privileged software. Software components are often allowed to change or remap memory region definitions in order to enable flexible and dynamically changeable memory management by system software.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | Such issues could be introduced during hardware architecture and design or implementation and identified later during the Testing phase. |
| Implementation | - |

## Applicable platforms

**Technologies:** Memory Hardware (Undetermined), Processor Hardware (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability | Modify Memory, Read Memory, DoS: Instability, DoS: Prevent Access | - |

## Potential mitigations

### Architecture and Design

Ensure that memory regions are isolated as intended and that access control (read/write) policies are used by hardware to protect privileged software.

### Implementation

For all of the programmable memory protection regions, the memory protection unit (MPU) design can define a priority scheme.

For example: if three memory regions can be programmed (Region\_0, Region\_1, and Region\_2), the design can enforce a priority scheme, such that, if a system address is within multiple regions, then the region with the lowest ID takes priority and the access-control policy of that region will be applied. In some MPU designs, the priority scheme can also be programmed by trusted software.

Hardware logic or trusted firmware can also check for region definitions and block programming of memory regions with overlapping addresses.

The memory-access-control-check filter can also be designed to apply a policy filter to all of the overlapping ranges, i.e., if an address is within Region\_0 and Region\_1, then access to this address is only granted if both Region\_0 and Region\_1 policies allow the access.

Effectiveness: High

## Detection methods

### Manual Analysis

Create a high privilege memory block of any arbitrary size. Attempt to create a lower privilege memory block with an overlap of the high privilege memory block. If the creation attempt works, fix the hardware. Repeat the test.

Effectiveness: High

## Demonstrative examples

### Example 1

For example, consider a design with a 16-bit address that has two software privilege levels: Privileged\_SW and Non\_privileged\_SW. To isolate the system memory regions accessible by these two privilege levels, the design supports three memory regions: Region\_0, Region\_1, and Region\_2.

Each region is defined by two 32 bit registers: its range and its access policy.

Certain bits of the access policy are defined symbolically as follows:

For any requests from software, an address-protection filter checks the address range and access policies for each of the three regions, and only allows software access if all three filters allow access.

Consider the following goals for access control as intended by the designer:

The intention is that Non\_privileged\_SW cannot modify memory region and policies defined by Privileged\_SW in Region\_0 and Region\_1. Thus, it cannot read or write the memory regions that Privileged\_SW is using.

Address\_range\[15:0\]: specifies the Base address of the region

Address\_range\[31:16\]: specifies the size of the region

Access\_policy\[31:0\]: specifies what types of software can access a region and which actions are allowed

Access\_policy.read\_np: if set to one, allows reads from Non\_privileged\_SW

Access\_policy.write\_np: if set to one, allows writes from Non\_privileged\_SW

Access\_policy.execute\_np: if set to one, allows code execution by Non\_privileged\_SW

Access\_policy.read\_p: if set to one, allows reads from Privileged\_SW

Access\_policy.write\_p: if set to one, allows writes from Privileged\_SW

Access\_policy.execute\_p: if set to one, allows code execution by Privileged\_SW

Region\_0 & Region\_1: registers are programmable by Privileged\_SW

Region\_2: registers are programmable by Non\_privileged\_SW

Bad code:

```
Non_privileged_SW can program the Address_range register for Region_2 so that its address overlaps with the ranges defined by Region_0 or Region_1. Using this capability, it is possible for Non_privileged_SW to block any memory region from being accessed by Privileged_SW, i.e., Region_0 and Region_1.
```

This design could be improved in several ways.

### Example 2

The example code below is taken from the IOMMU controller module of the HACK@DAC'19 buggy CVA6 SoC \[REF-1338\]. The static memory map is composed of a set of Memory-Mapped Input/Output (MMIO) regions covering different IP agents within the SoC. Each region is defined by two 64-bit variables representing the base address and size of the memory region (XXXBase and XXXLength).

Bad code:

```systemverilog
...
    localparam logic[63:0] PLICLength = 64'h03FF_FFFF;
    localparam logic[63:0] UARTLength = 64'h0011_1000;
    localparam logic[63:0] AESLength = 64'h0000_1000;
    localparam logic[63:0] SPILength = 64'h0080_0000;
...
    typedef enum logic [63:0] {
        ...
        PLICBase = 64'h0C00_0000,
        UARTBase = 64'h1000_0000,
        AESBase = 64'h1010_0000,
        SPIBase = 64'h2000_0000,
        ...
```

Good code:

```systemverilog
...
    localparam logic[63:0] PLICLength = 64'h03FF_FFFF;
    localparam logic[63:0] UARTLength = 64'h0000_1000;
    localparam logic[63:0] AESLength = 64'h0000_1000;
    localparam logic[63:0] SPILength = 64'h0080_0000;
...
    typedef enum logic [63:0] {
        ...
        PLICBase = 64'h0C00_0000,
        UARTBase = 64'h1000_0000,
        AESBase = 64'h1010_0000,
        SPIBase = 64'h2000_0000,
        ...
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2008-7096 | virtualization product allows compromise of hardware product by accessing certain remapping registers. |

## Real CVEs with this weakness (sample of 12 of 19)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-4778 | - | critical | 9.8 | - | No | 2024-05-14 |
| CVE-2022-27813 | Unconfigured memory protection modules in Motorola MTM5000 | high | 8.2 | - | No | 2023-10-19 |
| CVE-2019-1164 | Windows Kernel Elevation of Privilege Vulnerability | high | 7.8 | - | No | 2019-08-14 |
| CVE-2025-1937 | Memory safety bugs fixed in Firefox 136, Thunderbird 136, Firefox ESR 115.21, Firefox ESR 128.8, and Thunderbird 128.8 | high | 7.5 | - | No | 2025-03-04 |
| CVE-2025-31936 | kernel: microcode\_ctl: Intel Xeon 6 Processors: Privilege escalation via improper memory range handling in SMM | high | 7.0 | - | No | 2026-08-11 |
| CVE-2025-22889 | - | high | 7.0 | - | No | 2025-08-12 |
| CVE-2018-25240 | Watchr 1.1.0.0 Denial of Service via Search | medium | 6.9 | - | No | 2026-04-04 |
| CVE-2018-25238 | VSCO 1.1.1.0 Denial of Service via Search | medium | 6.9 | - | No | 2026-04-04 |
| CVE-2019-25592 | PHPRunner 10.1 Denial of Service via Dashboard Name Field | medium | 6.9 | - | No | 2026-03-22 |
| CVE-2019-25585 | Deluge 1.3.15 Denial of Service via Webseeds Field | medium | 6.9 | - | No | 2026-03-22 |
| CVE-2019-25572 | NordVPN 6.19.6 Denial of Service via Email Field Buffer Overflow | medium | 6.9 | - | No | 2026-03-21 |
| CVE-2026-20760 | - | medium | 6.8 | - | No | 2026-08-11 |

## 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-1260?

The product allows address regions to overlap, which can result in the bypassing of intended memory protection.

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

19 recorded CVEs are attributed to CWE-1260, including CVE-2024-4778, CVE-2022-27813 and CVE-2019-1164.

### How do you prevent CWE-1260?

Ensure that memory regions are isolated as intended and that access control (read/write) policies are used by hardware to protect privileged software.

### How is CWE-1260 detected?

Manual Analysis: Create a high privilege memory block of any arbitrary size. Attempt to create a lower privilege memory block with an overlap of the high privilege memory block. If the creation attempt works, fix the hardware. Repeat the test.

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

Exploiting CWE-1260 can lead to: Modify Memory, Read Memory, DoS: Instability, DoS: Prevent Access.

### Is CWE-1260 actively exploited?

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

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

---

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