HeapSafe: Securing Unprotected Heaps in RISC-V

Asmit De, Swaroop Ghosh

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

3 Scopus citations

Abstract

RISC-V is a promising open-source architecture primarily targeted for embedded systems. Programs compiled using the RISC-V toolchain can run bare-metal on the system, and, as such, can be vulnerable to several memory corruption vulnerabilities. In this work, we present HeapSafe, a lightweight hardware assisted heap-buffer protection scheme to mitigate heap overflow and use-after-free vulnerabilities in a RISC-V SoC. The proposed scheme tags pointers associated with heap buffers with metadata indices and enforces tag propagation for commonly used pointer operations. The HeapSafe hardware is decoupled from the core and is designed as a configurable coprocessor and is responsible for validating the heap buffer accesses. Benchmark results show a 1.5X performance overhead and 1.59% area overhead, while being 22% faster than a software protection. We further implemented a HeapSafe-nb, an asynchronous validation design, which improves performance by 27% over the synchronous HeapSafe.

Original languageEnglish (US)
Title of host publicationProceedings - 2022 35th International Conference on VLSI Design, VLSID 2022 - held concurrently with 2022 21st International Conference on Embedded Systems, ES 2022
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages120-125
Number of pages6
ISBN (Electronic)9781665485050
DOIs
StatePublished - 2022
Event35th International Conference on VLSI Design, VLSID 2022 - held concurrently with 2022 21st International Conference on Embedded Systems, ES 2022 - Virtual, Online, India
Duration: Feb 26 2022Mar 2 2022

Publication series

NameProceedings - 2022 35th International Conference on VLSI Design, VLSID 2022 - held concurrently with 2022 21st International Conference on Embedded Systems, ES 2022

Conference

Conference35th International Conference on VLSI Design, VLSID 2022 - held concurrently with 2022 21st International Conference on Embedded Systems, ES 2022
Country/TerritoryIndia
CityVirtual, Online
Period2/26/223/2/22

All Science Journal Classification (ASJC) codes

  • Computer Networks and Communications
  • Hardware and Architecture
  • Signal Processing
  • Electrical and Electronic Engineering

Fingerprint

Dive into the research topics of 'HeapSafe: Securing Unprotected Heaps in RISC-V'. Together they form a unique fingerprint.

Cite this