CWE Database
/

CWE-1256

Back to CWE list

CWE-1256

Improper Restriction of Software Interfaces to Hardware Features

Base
Stable

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.

{"xhtml:p":["It is frequently assumed that physical attacks\n such as fault injection and side-channel analysis\n require an attacker to have physical access to the\n target device. This assumption may be false if the\n device has improperly secured power management features,\n or similar features. For mobile devices, minimizing\n power consumption is critical, but these devices run a\n wide variety of applications with different performance\n requirements. Software-controllable mechanisms to\n dynamically scale device voltage and frequency and\n monitor power consumption are common features in today's\n chipsets, but they also enable attackers to mount fault\n injection and side-channel attacks without having\n physical access to the device.","Fault injection attacks involve strategic\n manipulation of bits in a device to achieve a desired\n effect such as skipping an authentication step,\n elevating privileges, or altering the output of a\n cryptographic operation. Manipulation of the device\n clock and voltage supply is a well-known technique to\n inject faults and is cheap to implement with physical\n device access. Poorly protected power management\n features allow these attacks to be performed from\n software. Other features, such as the ability to write\n repeatedly to DRAM at a rapid rate from unprivileged\n software, can result in bit flips in other memory\n locations (Rowhammer, [REF-1083]).","Side channel analysis requires gathering\n\t\t\t measurement traces of physical quantities such as power\n\t\t\t consumption. Modern processors often include power\n\t\t\t metering capabilities in the hardware itself (e.g.,\n\t\t\t Intel RAPL) which if not adequately protected enable\n\t\t\t attackers to gather measurements necessary for\n\t\t\t performing side-channel attacks from software."]}

Parent Weaknesses (ChildOf)

Common Consequences

Scope

Integrity

Impact

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.

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.

Applicable Platforms

Not Language-Specific

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now