# Learn about the impact of stack buffer overflows

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/)
- [Introduction: "Smashing the stack"](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/introduction/)
- [Docker Setup](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/setup/)
- [Frame Layout](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/frame-layout/)
- [Stack Buffer Overflow](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/buffer-overflow/)
- [Redirect control flow](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/redirect-control-flow-1/)
- [Answers to exercises](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/exercise-answers/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/exploiting-stack-buffer-overflow-aarch64/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Advanced |
| Reading time: | 2 hrs |
| Last updated: | 13 Aug 2026 |

|  |  |
| --- | --- |
| Author: | Kristof Beyls , Arm |
| Arm IP: | [Neoverse](https://support.arm.com/?tab=compute-ip&Product%20Type=Infrastructure%20Processors) [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) |
| Tags: | [Performance and Architecture](https://learn.arm.com/tag/performance-and-architecture/) [Linux](https://learn.arm.com/tag/linux) [Clang](https://learn.arm.com/tag/clang) [C](https://learn.arm.com/tag/c) [Assembly](https://learn.arm.com/tag/assembly) [Runbook](https://learn.arm.com/tag/runbook) |

### Who is this for?
This is an advanced topic for software developers interested in understanding how memory vulnerability-based exploits work on AArch64 and how to defend against them.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Analyze the stack frame layout to derive which field in user input overwrites the return address stored on the stack.
- Build a basic end-to-end exploit by changing the return address to an attacker-controlled value.

### Prerequisites
Before starting, you'll need the following prerequisites:
- An Arm computer running linux with [Docker](https://learn.arm.com/install-guides/docker/) installed.
- Some familiarity with reading and writing basic C code and AArch64 assembly code.
- Some familiarity with running linux command line commands.
- Some familiarity with using a gdb debugger.

### Summary
You’ll examine stack buffer overflows on AArch64 using small C programs in a Docker-based Linux environment. First, you’ll configure Clang and GDB, disable address space layout randomization for reproducible stacks, and inspect stack-frame layout. Then, you’ll craft input that overwrites a saved return address, observe redirected control flow, and see how ASLR affects the experiment.
