← Lab /Systems

PoisonCap enforces strict use-after-free and init safety on CHERI with no extra overhead

PoisonCap provides strict use-after-free and initialization safety without performance overhead compared to Cornucopia

Systems arXiv 13 May 2026 Method Prototype evidence

Published as “PoisonCap: Efficient Hierarchical Temporal Safety for CHERI”

Why it matters

Enables CHERI systems to obtain strict temporal and initialization safety without sacrificing performance, facilitating broader adoption in security-critical software.

Summary

PoisonCap enforces strict use-after-free and heap initialisation safety on CHERI with no measurable performance penalty, even yielding a 0.1% speedup and 1.49% DRAM traffic reduction on SPEC CPU2006 compared to Cornucopia with zeroing; the claim is backed by full mitigation of 2776 Juliet test cases and minimal hardware overhead (1.1% logic, 2.2% registers).

What they found 5

  1. All use-after-free Juliet tests are mitigated

    “PoisonCap is able to run all the cases provided for CWE-416, and mitigates all vulnerabilities in the “bad” cases.”

  2. Initialisation safety detects all bad cases with no false positives

    “PoisonCap successfully ran all good cases, and detected all vulnerabilities in bad cases with no false positives.”

  3. No performance overhead versus Cornucopia with zeroing; slight speedup

    “PoisonCap does not introduce any additional performance overhead relative to Cornucopia with zeroing. In fact, PoisonCap yields a slight performance improvement in SPEC, reducing CPU cycle overhead by 0.1% compared to Cornucopia with zeroing.”

  4. Reduces DRAM traffic overhead by about 1.5%

    “PoisonCap reduces DRAM traffic overhead overall, lowering Cornucopia with zeroing overhead by an average 1.49%.”

  5. Hardware adds only 1.1% logic and 2.2% register overhead

    “PoisonCap adds 1.1% to logic usage and 2.2% register usage to CHERI-Toooba synthesised for the UltraScale+ FPGA on the VCU118.”

Caveats 8

  • PoisonCap only supports quadword-granularity (128 bit) initialisation safety; smaller writes detox the whole capability word and auto-zero the memory.
  • Initialisation safety is not yet fully compatible with some user-space programs on CheriBSD due to read-before-write behaviour.
  • SQLite evaluation was limited: many tests hung or caused kernel panics, and only a subset completed successfully.
  • The kernel revoker experienced recursive page-fault handling issues caused by poison probes.
  • PoisonCap currently supports only quadword-granularity (128bit) initialisation safety; a legal write that is smaller than a capabilityword detoxes the entire capability word of poison and auto-zeros the memory.
  • PoisonCap’s initialisation safety is not yet fully compatible due to read-before-write behaviour encountered in some user-space programs running on CheriBSD.
  • The results presented here are limited to a subset of the SQLite tests that were able to complete; ... the remaining 17 tests which did not succeed were either hanging or triggering a kernel panic.
  • Under this SQLite workload, we discovered multiple issues related to recursive page fault handling as a result of poison probes in the revoker.

What’s new here 4

  • Provides true use-after-free protection instead of only use-after-reallocation.
  • Enforces heap initialisation safety beyond simple zeroing.
  • Replaces Cornucopia's shadow bitmap with poison capabilities, enabling hierarchical protection for nested allocators.
  • Communicates memory poison state to the cache hierarchy for improved cache efficiency.