Function-Oriented Programming Attacks on ARM Cortex-M Processors
Open Access
- 15 September 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 13, 161844-161853
Abstract
In recent years, code-reuse attacks have been used to exploit software vulnerabilities and gain control of numerous software programs and embedded devices. Several measures have been put in place to prevent this type of attack, such as Control-Flow Integrity (CFI) systems, and some of these systems have already been integrated into hardware. Nevertheless, Function-Oriented Programming (FOP) attacks, a form of code-reuse that chains functions to carry out malicious actions, continue to persist. In this work, we present the first analysis of the implications and feasibility of FOP attacks on microcontrollers, focusing on ARM Cortex-M processors that support PACBTI, that is, a hardware feature designed for CFI system implementation. During this process, we identified multiple dispatch gadgets in two common Real-time Operating System (RTOS). Since these gadgets reside within core OS functionalities, they are inherently included in a broad range of embedded operating systems. Furthermore, we also present CortexMFopper - a tool specially built to identify FOP gadgets in embedded devices and to raise awareness of this technique.Keywords
Funding Information
- Funda??o para a Ci?ncia e a Tecnologia (2021.08587.BD, 2024.07347.IACDC)
This publication has 8 references indexed in Scilit:
- Security Analysis of Processor Instruction Set Architecture for Enforcing Control-Flow Integrity2019
- Function-Oriented Programming: A New Class of Code Reuse Attack in C Applications2018
- CREDAL2016
- The Performance Cost of Shadow Stacks and Stack Canaries2015
- On the Effectiveness of NX, SSP, RenewSSP, and ASLR against Stack Buffer Overflows2014
- Practical Control Flow Integrity and Randomization for Binary Executables2013
- Jump-oriented programming2011
- The geometry of innocent flesh on the bone2007