SJMalloc: the security-conscious, fast, thread-safe and memory-efficient heap allocator
Stephan Bauroth

TL;DR
SJMalloc is a high-performance, secure heap allocator that stores metadata out-of-band, improving security and performance with minimal memory overhead, and is compatible as a drop-in replacement for standard allocators.
Contribution
We introduce SJMalloc, a novel heap allocator that enhances security and performance by storing metadata separately, addressing performance barriers of hardened allocators.
Findings
~6% performance improvement over GLibc allocator
Only ~5% additional memory usage
Successfully passes GLibc malloc testsuite
Abstract
Heap-based exploits that leverage memory management errors continue to pose a significant threat to application security. The root cause of these vulnerabilities are the memory management errors within the applications, however various hardened allocator designs have been proposed as mitigation. A common feature of these designs is the strategic decision to store heap metadata separately from the application data in use, thereby reducing the risk of metadata corruption leading to security breaches. Despite their potential benefits, hardened allocators have not been widely adopted in real-world applications. The primary barrier to their adoption is the performance overheads they introduce. These overheads can negatively impact the efficiency and speed of applications, which is a critical consideration for developers and system administrators. Having learned from previous implementations,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNetwork Packet Processing and Optimization · Algorithms and Data Compression · Advanced Malware Detection Techniques
