Lune

CCS2026顶会

Mind the Heap: Preventing Capability Leakage Across CHERI Compartments

Seyedhamed Ghavamnia, Maurice D. Hanisch, Julien Vanegue

问 Lune

摘要

CHERI enforces spatial memory safety and referential pointer integrity by replacing integer pointers with unforgeable capabilities that carry bounds and permissions. This rules out many conventional pointer-fabrication attacks and shifts exploitation toward the reuse of existing privileged capabilities obtained through vulnerabilities or unintended disclosure. CheriBSD's library compartmentalization reduces such disclosure by isolating per-compartment execution stacks. However, heap memory remains shared across compartments, and may lead to capability leakage through both reuse and explicit sharing. In this paper, we show that CHERI's compartmentalization guarantees can be bypassed through two distinct attack vectors, even in the absence of allocator bugs. First, cross-compartment reuse of freed heap regions can leak privileged capabilities through residual allocator state. Second, unnecessary sharing of compartment-owned heap objects can leak capabilities to less-trusted compartments through ordinary program data structures and interfaces. To mitigate unnecessary sharing of live capabilities, we introduce type-directed capability sealing, which uses static analysis of library interfaces and CHERI sealing to preserve opaque-handle semantics for library-owned objects. As a complementary defense against residual capability reuse, we adapt the established practice of per-compartment allocation pools to CheriBSD's library-compartmentalization runtime. Our design integrates with CheriBSD's existing library compartmentalization mechanisms without requiring application or library modifications. Experimental results on micro- and macrobenchmarks show that the combined system incurs minimal overhead (less than 5% on average) while preventing capability leakage through both heap reuse and unnecessary cross-compartment sharing.

问 Lune

几分钟看清这篇 Paper 的位置,不用再花一下午。

Lune 能读引用它和与它最相关的顶会 Paper,讲清它说了什么、后来怎样、哪里站不住,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

摘要 · 相关的 Paper

获取答案

免费开始,无需绑卡

相关 Paper

  1. CHERIoT: Complete Memory Safety for Embedded DevicesSaar Amar, David Chisnall, Tony Chen, Nathaniel Wesley Filardo 等MICRO 2023 · 22 次引用
  2. PoisonCap: Efficient Hierarchical Temporal Safety for CHERIYuecheng Wang, Jonathan Woodruff, Alfredo Mazzinghi, Peter Rugg 等CCS 2026 · 3 次引用
  3. Cornucopia: Temporal Safety for CHERI HeapsNathaniel Wesley Filardo, Brett F. Gutstein, Jonathan Woodruff, Sam Ainsworth 等S&P 2020 · 71 次引用
  4. Efficient Linkage-Based Compartmentalization on CHERIDapeng Gao, John Baldwin, Jessica Clarke, Nicholas C. Connolly 等CCS 2026
  5. Capstone: A Capability-based Foundation for Trustless Secure Memory AccessJason Zhijingcheng Yu, Conrad Watt, Aditya Badole, Trevor E. Carlson 等USENIX Security 2023
黄昏的海面,两侧是细线勾勒的悬崖