---
title: "CWE-1256: Improper Restriction of Software Interfaces to Hardware Features"
url: https://radicalnotion.ai/cwe/cwe-1256
type: cwe
description: "The product provides software-controllable device functionality for capabilities such as power and clock management, but it does not properly limit functionality that can lead to modification of hardware memory or register bits, or the ability to observe physical side channels."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1256: Improper Restriction of Software Interfaces to Hardware Features

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

## Description

The product provides software-controllable device functionality for capabilities such as power and clock management, but it does not properly limit functionality that can lead to modification of hardware memory or register bits, or the ability to observe physical side channels.

It is frequently assumed that physical attacks such as fault injection and side-channel analysis require an attacker to have physical access to the target device. This assumption may be false if the device has improperly secured power management features, or similar features. For mobile devices, minimizing power consumption is critical, but these devices run a wide variety of applications with different performance requirements. Software-controllable mechanisms to dynamically scale device voltage and frequency and monitor power consumption are common features in today's chipsets, but they also enable attackers to mount fault injection and side-channel attacks without having physical access to the device.

Fault injection attacks involve strategic manipulation of bits in a device to achieve a desired effect such as skipping an authentication step, elevating privileges, or altering the output of a cryptographic operation. Manipulation of the device clock and voltage supply is a well-known technique to inject faults and is cheap to implement with physical device access. Poorly protected power management features allow these attacks to be performed from software. Other features, such as the ability to write repeatedly to DRAM at a rapid rate from unprivileged software, can result in bit flips in other memory locations (Rowhammer, \[REF-1083\]).

Side channel analysis requires gathering measurement traces of physical quantities such as power consumption. Modern processors often include power metering capabilities in the hardware itself (e.g., Intel RAPL) which if not adequately protected enable attackers to gather measurements necessary for performing side-channel attacks from software.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | An architect may initiate introduction of this weakness via exacting requirements for software accessible power/clock management requirements |
| Implementation | An implementer may introduce this weakness by assuming there are no consequences to unbounded power and clock management for secure components from untrusted ones. |

## Applicable platforms

**Technologies:** Memory Hardware (Undetermined), Power Management Hardware (Undetermined), Clock/Counter Hardware (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Modify Memory, Modify Application Data, Bypass Protection Mechanism | - |

## Potential mitigations

### Architecture and Design, Implementation

Ensure proper access control mechanisms protect software-controllable features altering physical operating conditions such as clock frequency and voltage.

## Detection methods

### Manual Analysis

Perform a security evaluation of system-level architecture and design with software-aided physical attacks in scope.

### Automated Dynamic Analysis

Use custom software to change registers that control clock settings or power settings to try to bypass security locks, or repeatedly write DRAM to try to change adjacent locations. This can be effective in extracting or changing data. The drawback is that it cannot be run before manufacturing, and it may require specialized software.

Effectiveness: Moderate

## Demonstrative examples

### Example 1

This example considers the Rowhammer problem \[REF-1083\]. The Rowhammer issue was caused by a program in a tight loop writing repeatedly to a location to which the program was allowed to write but causing an adjacent memory location value to change.

### Example 2

Suppose a hardware design implements a set of software-accessible registers for scaling clock frequency and voltage but does not control access to these registers. Attackers may cause register and memory changes and race conditions by changing the clock or voltage of the device under their control.

### Example 3

Consider the following SoC design. Security-critical settings for scaling clock frequency and voltage are available in a range of registers bounded by \[PRIV\_END\_ADDR : PRIV\_START\_ADDR\] in the tmcu.csr module in the HW Root of Trust. These values are writable based on the lock\_bit register in the same module. The lock\_bit is only writable by privileged software running on the tmcu.

We assume that untrusted software running on any of the Core{0-N} processors has access to the input and output ports of the hrot\_iface. If untrusted software can clear the lock\_bit or write the clock frequency and voltage registers due to inadequate protection, a fault injection attack could be performed.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2019-11157 | Plundervolt: Improper conditions check in voltage settings for some Intel(R) Processors may allow a privileged user to potentially enable escalation of privilege and/or information disclosure via local access \[REF-1081\]. |
| CVE-2020-8694 | PLATYPUS Attack: Insufficient access control in the Linux kernel driver for some Intel processors allows information disclosure. |
| CVE-2020-8695 | Observable discrepancy in the RAPL interface for some Intel processors allows information disclosure. |
| CVE-2020-12912 | AMD extension to a Linux service does not require privileged access to the RAPL interface, allowing side-channel attacks. |
| CVE-2015-0565 | NaCl in 2015 allowed the CLFLUSH instruction, making Rowhammer attacks possible. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-2881 | Fault Injection of EdDSA signature in WolfCrypt | high | 8.8 | - | No | 2024-08-29 |
| CVE-2024-5477 | - | high | 7.3 | - | No | 2025-08-13 |
| CVE-2026-90891 | ASRock｜ASRock Polychrome SYNC/RGB software utility - Improper Access Control | medium | 6.8 | - | No | 2026-09-14 |
| CVE-2026-75811 | - | medium | 5.8 | - | No | 2026-09-08 |
| CVE-2024-48869 | microcode\_ctl: Improper restriction of software interfaces to hardware features | medium | 5.6 | - | No | 2025-05-13 |
| CVE-2024-1545 | Fault Injection of RSA encryption in WolfCrypt | low | 1.6 | - | No | 2024-08-29 |

## Related attack patterns (CAPEC)

- [CAPEC-624](https://radicalnotion.ai/capec/capec-624): Hardware Fault Injection
- [CAPEC-625](https://radicalnotion.ai/capec/capec-625): Mobile Device Fault Injection

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-285](https://radicalnotion.ai/cwe/cwe-285) | Improper Authorization |

## Frequently asked questions

### What is CWE-1256?

The product provides software-controllable device functionality for capabilities such as power and clock management, but it does not properly limit functionality that can lead to modification of hardware memory or register bits, or the ability to observe physical side channels.

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

6 recorded CVEs are attributed to CWE-1256, including CVE-2024-2881, CVE-2024-5477 and CVE-2026-90891.

### How do you prevent CWE-1256?

Ensure proper access control mechanisms protect software-controllable features altering physical operating conditions such as clock frequency and voltage.

### How is CWE-1256 detected?

Manual Analysis: Perform a security evaluation of system-level architecture and design with software-aided physical attacks in scope.

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

Exploiting CWE-1256 can lead to: Modify Memory, Modify Application Data, Bypass Protection Mechanism.

### Is CWE-1256 actively exploited?

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

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

---

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