arXiv:2610.11525cs.DBOct 2026

Manuscript Offprint

arXiv:2610.11525

Should Your Database Systems Use Hardware-Assisted Memory Safety Extensions in Production?

Ilya Meignan--Masson, Martin Fink, Masanori Misono, Dimitrios Stavrakakis, Pramod Bhatotia

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Database systems are predominantly developed in unsafe languages (e.g., C/C++) to meet the performance requirements through low-level memory management, yet this reliance renders them prone to systemic memory-safety issues that compromise reliability, consistency, security, and durability. Through an extensive bug analysis of prominent database systems, we show that these memory-safety issues persist in production environments despite advancements in database testing tools. While emerging hardware-assisted extensions, such as Arm's Memory Tagging Extension (MTE) and CHERI, offer a promising mitigation path for memory safety, their practical applicability and performance overhead within the specialized constraints of database systems remain largely unexplored.

In this paper, we evaluate these modern hardware extensions through the lens of what we define as the database trilemma: the fundamental trade-off between safety, performance, and portability, to determine their viability for production-grade database systems. We provide the first side-by-side comparison of MTE and CHERI across a database workload suite. Our bottom-up study spans microarchitecture, the compiler/runtime/OS stack, core data structures (ART, B+Tree, hash table, skip list, linked list, and queue), and full database systems (Redis, LevelDB, SQLite, MySQL, DuckDB, and LadyBugDB) to characterize their performance, safety guarantees, and ease of adoption.

We find that while hardware extensions can offer near-deterministic protection, they introduce non-uniform performance taxes: MTE provides high portability with modest overheads ( ≈\approx10%), while CHERI delivers superior safety guarantees with higher performance penalties (20–60%) and significant porting effort. Our study equips database systems architects with an actionable guide towards building the next generation of reliable, secure databases using hardware-assisted safety mechanisms. 1^{1}

Pramod Bhatotia

Technical University of Munich

Germany

Figure

Figure 1: Overheads of ASan, RSan, MTE, and CHERI on LevelDB.

CCS Concepts

• Information systems → Data structures; Database management system engines; • Software and its engineering → Memory management; Software safety.

ACM Reference Format:

Ilya Meignan--Masson, Martin Fink, Masanori Misono, Dimitrios Stavrakakis, and Pramod Bhatotia. 2026. Should Your Database Systems Use Hardware-Assisted Memory Safety Extensions in Production?. Proc. ACM Manag. Data 4, 6 (SIGMOD), Article 378 (December 2026), 22 pages. https://doi.org/10.1145/3856373

Artifact Availability: The artifacts are available at https://github.com/TUM-DSE/memsafedb.

References (47)