Every program that runs on your computer lives in memory, and memory has addresses — numbers that say where each byte of code or data sits. For decades, attackers exploited a simple fact: on a given operating system, your program would always load in the same place.
A classic attack like a buffer overflow works by overwriting a return address and jumping to attacker-controlled code. To pull this off, the attacker needs to know where that code lands. If the address never changes, they can learn it once and use it forever.
ASLR — Address Space Layout Randomization — breaks that assumption. Every time a program starts, the operating system places the code segment, the stack, the heap, and shared libraries at randomly chosen locations. The attacker who memorized the right address now faces an empty guess. First deployed by Linux's PaX patch team around 2001 and later adopted by every major OS, ASLR is today a baseline defense on every device you own.
Comments
Loading comments...