Physical Memory Please: Practical Memory-Aliasing Attacks on RISC-V PMP

Read full text
Authors: Antonis Louka, Jesse De Meulemeester, Steven Keuchel, Ingrid Verbauwhede, Jo Van Bulck
Cited by: 1

Abstract

Recent years have seen a surge in security architectures built on the open RISC-V instruction set architecture. A key enabler of this trend has been the standardized Physical Memory Protection (PMP) extension, safeguarding critical firmware and forming the foundation for, amongst others, versatile Trusted Execution Environments (TEEs). However, while production TEEs on popular x86 and Arm platforms have undergone extensive security vetting, emerging RISC-V TEEs have received far less scrutiny. This paper studies the impact of recent memory-aliasing attacks, originally demonstrated on x86, within the RISC-V ecosystem. We show that a practical memory-aliasing setup can fully bypass PMP-based isolation, enabling arbitrary read and write access to protected memory regions. Using this primitive, we demonstrate end-to-end attacks on the popular RISC-V Keystone TEE, achieving full enclave memory disclosure and, ultimately, completely undermining remote attestation guarantees by extracting the long-term platform measurement key. Leveraging open-source RISC-V firmware, we further develop a practical mitigation that detects rogue DIMM configurations at boot time, effectively preventing software-based memory-aliasing attacks. Our findings nuance the trust in PMP-based isolation and highlight how microarchitectural attack vectors from established architectures like x86 can translate to emerging RISC-V settings.

Fields of Study & Subjects

Security and Verification in Computing Physical Unclonable Functions (PUFs) and Hardware Security Advanced Malware Detection Techniques

Publication details

Journal / source
Proceedings of the Microarchitecture Security Conference
Publisher
Universitatsbibliothek der Ruhr-Universitat Bochum
Publication date
3 February 2026