Efficient Hardware-Assisted Heap Memory Safety for Embedded RISC-V Systems

In recent years, memory safety issues in embedded environments have garnered significant attention, with spatial and temporal memory violations in heap memory emerging as critical security threats. To address these challenges, this paper proposes an efficient tag-based memory verification system specifically designed for RISC-V in-order processors. The proposed system integrates a Heap Check Cache (HC-Cache), FIFO Buffer, and Store Head Buffer/Clear Head Buffer (SHB/CHB) with a replay mechanism at the hardware level to minimize performance overhead. On the software side, it incorporates extended RISC-V ISA instructions and a modified Newlib C library to automate metadata management and tag generation without requiring additional modifications to user applications. The system was implemented on an FPGA platform using the Xilinx VC707 board. The implementation results indicate a 16.07% increase in LUTs and a 58.25% increase in Flip-Flops, while maintaining minimal overhead for BRAM (0.66%) and LUTRAM (0.99%). Performance evaluations using workloads such as Mibench, Olden, and SPEC2006 demonstrated a significantly lower average performance overhead compared to previous work. Furthermore, verification using the NIST Juliet Test Suite 1.3 revealed that the system successfully detected 100% of heap-related vulnerabilities, including 1,924 heap-based overflows, 803 double-free errors, and 394 use-after-free errors. These results demonstrate that the proposed system provides high security and performance efficiency, even in resource-constrained embedded environments.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3570777
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient Hardware-Assisted Heap Memory Safety for Embedded RISC-V Systems

Yongwoo Kim, Yonghae Kim, Gaeil An, Dongwook Kang et al.
1 links
IEEE Access
Security and Verification in Computing
article

Efficient Hardware-Assisted Heap Memory Safety for Embedded RISC-V Systems

Yongwoo Kim, Yonghae Kim, Gaeil An, Dongwook Kang, Hongil Ju, H. Park
article en

Abstract

In recent years, memory safety issues in embedded environments have garnered significant attention, with spatial and temporal memory violations in heap memory emerging as critical security threats. To address these challenges, this paper proposes an efficient tag-based memory verification system specifically designed for RISC-V in-order processors. The proposed system integrates a Heap Check Cache (HC-Cache), FIFO Buffer, and Store Head Buffer/Clear Head Buffer (SHB/CHB) with a replay mechanism at the hardware level to minimize performance overhead. On the software side, it incorporates extended RISC-V ISA instructions and a modified Newlib C library to automate metadata management and tag generation without requiring additional modifications to user applications. The system was implemented on an FPGA platform using the Xilinx VC707 board. The implementation results indicate a 16.07% increase in LUTs and a 58.25% increase in Flip-Flops, while maintaining minimal overhead for BRAM (0.66%) and LUTRAM (0.99%). Performance evaluations using workloads such as Mibench, Olden, and SPEC2006 demonstrated a significantly lower average performance overhead compared to previous work. Furthermore, verification using the NIST Juliet Test Suite 1.3 revealed that the system successfully detected 100% of heap-related vulnerabilities, including 1,924 heap-based overflows, 803 double-free errors, and 394 use-after-free errors. These results demonstrate that the proposed system provides high security and performance efficiency, even in resource-constrained embedded environments.

IEEE AccessVol. 13
Intel (United States) (US), Korea National University of Education (KR), Electronics and Telecommunications Research Institute (KR), Inha University (KR)
Institute for Information and Communications Technology Promotion
Affordable and clean energy
Openalex Percentile: Top 95%
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.