A CHERI C Memory Model for Verified Temporal Safety
Open Access
- 10 January 2025
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 112-126
Abstract
Memory safety concerns continue to be a major source of security vulnerabilities. The CHERI architecture, as instantiated in prototype CHERI-RISC-V cores, the Arm Morello system, and Microsoft's CHERIoT embedded core, provides fine-grained memory access control through unforgeable hardware capabilities. The impact of CHERI on spatial memory safety is well understood. This paper systematically examines temporal memory safety within CHERI C -- a dialect of the C programming language for CHERI -- and proposes a formal approach to defining and ensuring it. In particular: 1) we examine the impact of five existing capability revocation mechanisms on CHERI C semantics and present a specialised object memory model tailored to CHERI C; 2) we introduce a new CHERI-specific pointer provenance tracking scheme; and 3) we formally define the security guarantees provided by this memory model, supported by a Coq proof of their correctness, expressed as invariants of the memory state.Keywords
Funding Information
- Digital Security by De- sign (DSbD) (105694)
- European Research Council (grant agreement No 789108, ERC AdG ELVER)
- UK Research and Innovation (ERC-AdG-2022, EP\/Y035976\/1 SAFER)
This publication has 24 references indexed in Scilit:
- The Arm Morello Evaluation Platform—Validating CHERI-Based Security in a High-Performance SystemIEEE Micro, 2023
- A Formal CHERI-C Semantics for Verification2023
- Cornucopia: Temporal Safety for CHERI Heaps2020
- Cerberus-BMC: A Principled Reference Semantics and Exploration Tool for Concurrent and Sequential C2019
- Temporal Safety for Stack Allocated Memory on Capability Machines2019
- CompCertS: A Memory-Aware Verified C Compiler Using Pointer as Integer Semantics2017
- A Concrete Memory Model for CompCert2015
- The CHERI capability model: Revisiting RISC in an age of risk2014
- A Precise and Abstract Memory Model for C Using Symbolic Values2014
- CETS2010