CWE一覧に戻る
CWE-1260

保護されたメモリ領域間のオーバーラップの不適切な処理

Improper Handling of Overlap Between Protected Memory Ranges
脆弱性 確定版
JA

本製品は、アドレス領域が重なり合うことを許可しており、意図したメモリ保護をバイパスする結果となる可能性がある。

分離されたメモリ領域とアクセス制御(読み取り/書き込み)ポリシーは、特権ソフトウェアを保護するためにハードウェアによって使用される。ソフトウェア・コンポーネントは、システム・ソフトウェアによる柔軟で動的に変更可能なメモリ管理を可能にするため、メモリ領域の定義の変更やリマップを許可されることが多い。

より低い特権で動作するソフトウェア・コンポーネントが、より高い特権で動作するソフトウェアが使用する他のメモリ領域とオーバーラップするようにメモリ・アドレス領域をプログラムできる場合、攻撃者が特権の昇格を利用できる可能性があります。メモリ保護ユニット(MPU)のロジックは、このようなアドレスの重複を誤って処理し、低権限のソフトウェアに保護されたメモリ領域への読み書きを許してしまう可能性があり、その結果、特権の昇格攻撃が発生する。また、アドレス・オーバーラップの弱点を利用して、高権限ソフトウェアのメモリ領域にサービス拒否攻撃を仕掛けることもできる。

EN

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.

If a software component running at lower privilege can program a memory address region to overlap with other memory regions used by software running at higher privilege, privilege escalation may be available to attackers. The memory protection unit (MPU) logic can incorrectly handle such an address overlap and allow the lower-privilege software to read or write into the protected memory region, resulting in privilege escalation attack. An address overlap weakness can also be used to launch a denial of service attack on the higher-privilege software memory regions.

Scope: Confidentiality, Integrity, Availability / Impact: Modify Memory; Read Memory; DoS: Instability
Ensure that memory regions are isolated as intended and that access control (read/write) policies are used by hardware to protect privileged software.
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.
MITRE公式ページ — CWE-1260