GuaNary: Efficient Buffer Overflow Detection In Virtualized Clouds Using Intel EPT-based Sub-Page Write Protection Support

STELLA BITCHEBE, YVES KONE, Pierre Olivier, Jalil Boukhobza, DAVID BROMBERG, Daniel Hagimont, Alain Tchana

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

19 Downloads (Pure)

Abstract

Write buffer overflow is a widespread and prevalent memory safety violation in C/C++, reported as the top vulnerability in 2022 and 2023. Secure memory allocators are generally used to protect systems against attacks that may exploit buffer overflows. Existing allocators mainly rely on two types of countermeasures to prevent or detect write overflows: canaries and guard pages, each with pros and cons in terms of detection latency and memory footprint.
For virtualized cloud applications, this paper follows the Out of Hypervisor (OoH) trend and introduces GuaNary, a safety guard against write overflows, allowing synchronous detection at a low memory footprint cost. OoH is a new virtualization research axis introduced in 2022 advocating the exposure of hardware features for virtualization to the guest OS so that its processes can take advantage of them. Based on the OoH principle, GuaNary leverages Intel Sub-Page write Permission (SPP), a recent hardware virtualization feature that allows to write-protect guest memory at the granularity of 128B (namely, sub-page) instead of 4KB. We implement a software stack, LeanGuard, which promotes the utilization of SPP from inside virtual machines by new secure allocators that use GuaNary. Our evaluation shows that for the same number of protected buffers, LeanGuard consumes 8.3× less memory than SlimGuard, a recent state-of-the-art secure allocator. Further, for the same memory consumption, LeanGuard allows protecting 25× more buffers than SlimGuard.

CCS Concepts: • Security and privacy → Virtualization and security; • Computer systems organization → Cloud computing.
Additional Key Words and Phrases: Buffer overflow detection, Secure heap memory allocator, Virtualized
Clouds, Intel SPP
Original languageEnglish
Title of host publicationACM SIGMETRICS 2024, Venice, Italy
Pages1-26
Volume7
Edition3
DOIs
Publication statusPublished - 12 Dec 2023

Fingerprint

Dive into the research topics of 'GuaNary: Efficient Buffer Overflow Detection In Virtualized Clouds Using Intel EPT-based Sub-Page Write Protection Support'. Together they form a unique fingerprint.

Cite this