CHERI-D: Secure and efficient inline object ID for CHERI temporal memory safety

arXiv:2606.19055 · cs.AR, cs.CR · Submitted 2026-06-17 · Read on arXiv

cs.AR, cs.CR

Submitted: 2026-06-17

Updated: 2026-10-19

License: http://creativecommons.org/licenses/by/4.0/

The gist: We propose CHERI-D, an architectural extension to CHERI that supports efficient temporal memory safety.

Abstract

We propose CHERI-D, an architectural extension to CHERI that supports efficient temporal memory safety. Efficient memory safety is an increasing priority for programming languages, operating systems, and hardware designs, and CHERI is a leading hardware/software system that provides native spatial safety and a foundation for temporal memory safety. Due to CHERI lacking intrinsic architectural support for temporal memory safety, the state-of-the-art CHERI temporal safety solution, Cornucopia Reloaded, is a software-based solution that provides use-after-reallocation (UAR) protections instead of the stronger use-after-free (UAF) mitigation, and suffers performance overhead due to delayed reallocation and revocation. CHERI-D associates object identification (ID) metadata with capability pointers to provide temporal integrity of allocations. CHERI spatial safety allows CHERI-D to store object IDs safely inline with allocation data, potentially within unused fragmentation. Evaluated in simulation and in hardware, CHERI-D significantly reduces the revocation overhead of Cornucopia Reloaded while allowing it to support strict use-after-free mitigation.

Related papers