Skip to content
@ConditionalCapabilities

conditionalcapabilities

Mon CHÉRI: Mitigating Uninitialized Memory Access with Conditional Capabilities

Abstract

Up to 10% of memory-safety vulnerabilities in languages like C and C++ stem from uninitialized variables. This work addresses the prevalence and lack of adequate software mitigations for uninitialized memory issues, proposing architectural protections in hardware. Capability-based addressing, such as the University of Cambridge’s CHERI, mitigates many memory defects, including spatial and temporal safety violations at an architectural level. CHERI, however, does not handle undefined behavior from uninitialized variables. We extend the CHERI capability model to include “conditional capabilities”, enabling memory-access policies based on prior operations. This allows enforcement of policies that satisfy memory-safety objectives such as “no reads to memory without at least one prior write” (Write-before-Read). We present our architecture extension, compiler support, and detailed evaluation of our approach on the QEMU full-system simulator and a modified FPGA-based CHERI-RISCV softcore. Our evaluation shows conditional capabilities are practical, with high detection accuracy while adding a small (≈ 3.5%) overhead which is comparable to the cost of baseline CHERI capabilities.

@inproceedings{Gulmez25a,
  author = {Gülmez, Merve and Englund, Håkan and Mühlberg, Jan Tobias and
            Nyman, Thomas},
  title = {{Mon CHÉRI: Mitigating Uninitialized Memory Access with 
            Conditional Capabilities}},
  booktitle = {46th IEEE Symposium on Security and Privacy (S&P 2025)},
  year = {2025},
  volume = {},
  ISSN = {2375-1207},
  pages = {829-847},
  doi = {10.1109/SP61157.2025.00133},
  url = {https://doi.ieeecomputersociety.org/10.1109/SP61157.2025.00133},
  publisher = {IEEE Computer Society},
  address = {Los Alamitos, CA, USA},
  month =May
}

Popular repositories Loading

  1. juliet-test-suite-c juliet-test-suite-c Public

    Forked from arichardson/juliet-test-suite-c

    C

  2. FreeRTOS-Demos-CHERI-RISC-V FreeRTOS-Demos-CHERI-RISC-V Public

    Forked from CTSRD-CHERI/FreeRTOS-Demos-CHERI-RISC-V

    C

  3. cheribuild cheribuild Public

    Forked from CTSRD-CHERI/cheribuild

    Easily build and run CHERI related projects

    Python

  4. qemu qemu Public

    C

  5. cheri-llvm cheri-llvm Public

    C++

  6. .github .github Public

Repositories

Showing 8 of 8 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…