CMASan: Custom Memory Allocator-aware Address Sanitizer

  • Junwha Hong
  • , Wonil Jang
  • , Mijung Kim
  • , Lei Yu
  • , Yonghwi Kwon
  • , Yuseok Jeon*
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Custom Memory Allocator (CMA) replaces the standard memory allocator for various purposes, such as improving memory efficiency or enhancing security. However, memory objects allocated by CMA are vulnerable to memory bugs similar to those allocated by the standard memory allocator. Unfortunately, existing memory bug detection approaches, including Address Sanitizer (ASan), do not work properly with these CMAs because existing approaches are mainly designed for the standard memory allocator. This paper presents CMASan, the first CMA-aware address sanitizer designed to effectively detect memory bugs on CMA objects that ASan misses without requiring expert knowledge, manual code modifications, or changing the unique internal logic of CMAs. According to our evaluation, CMASan successfully identifies 19 previously unknown CMA memory bugs undetected by ASan, including some undetected for 9 years. Compared to ASan, CMASan incurs only an additional 9.63% overhead.

Original languageEnglish
Title of host publicationProceedings - 46th IEEE Symposium on Security and Privacy, SP 2025
EditorsMarina Blanton, William Enck, Cristina Nita-Rotaru
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages740-757
Number of pages18
ISBN (Electronic)9798331522360
DOIs
Publication statusPublished - 2025
Externally publishedYes
Event46th IEEE Symposium on Security and Privacy, SP 2025 - San Francisco, United States
Duration: 2025 May 122025 May 15

Publication series

NameProceedings - IEEE Symposium on Security and Privacy
ISSN (Print)1081-6011

Conference

Conference46th IEEE Symposium on Security and Privacy, SP 2025
Country/TerritoryUnited States
CitySan Francisco
Period25/5/1225/5/15

Bibliographical note

Publisher Copyright:
© 2025 IEEE.

ASJC Scopus subject areas

  • Software
  • Safety, Risk, Reliability and Quality
  • Computer Networks and Communications

Fingerprint

Dive into the research topics of 'CMASan: Custom Memory Allocator-aware Address Sanitizer'. Together they form a unique fingerprint.

Cite this