Description
The firewall in an on-chip fabric protects the main addressed region, but it does not protect any mirrored memory or memory-mapped-IO (MMIO) regions.
Few fabrics mirror memory and address ranges, where mirrored regions contain copies of the original data. This redundancy is used to achieve fault tolerance. Whatever protections the fabric firewall implements for the original region should also apply to the mirrored regions. If not, an attacker could bypass existing read/write protections by reading from/writing to the mirrored regions to leak or corrupt the original data.
Potential Impact
Confidentiality, Integrity, Access Control
Modify Memory, Read Memory, Bypass Protection Mechanism
Demonstrative Examples
Mitigations & Prevention
The fabric firewall should apply the same protections as the original region to the mirrored regions.
The fabric firewall should apply the same protections as the original region to the mirrored regions.
Detection Methods
- Manual Dynamic Analysis High — Using an external debugger, send write transactions to mirrored regions to test if original, write-protected regions are modified. Similarly, send read transactions to mirrored regions to test if the original, read-protected signals can be read.
Related Weaknesses
Frequently Asked Questions
What is CWE-1312?
CWE-1312 (Missing Protection for Mirrored Regions in On-Chip Fabric Firewall) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. The firewall in an on-chip fabric protects the main addressed region, but it does not protect any mirrored memory or memory-mapped-IO (MMIO) regions.
How can CWE-1312 be exploited?
Attackers can exploit CWE-1312 (Missing Protection for Mirrored Regions in On-Chip Fabric Firewall) to modify memory, read memory, bypass protection mechanism. This weakness is typically introduced during the Architecture and Design, Implementation phase of software development.
How do I prevent CWE-1312?
Key mitigations include: The fabric firewall should apply the same protections as the original region to the mirrored regions.
What is the severity of CWE-1312?
CWE-1312 is classified as a Base-level weakness (Medium abstraction). Its actual severity depends on the specific context and how the weakness manifests in your application.