CSE 466 - Fall 2026

Dynamic Allocator Misuse

The glibc heap consists of many components distinct parts that balance performance and security. In this introduction to the heap, the thread caching layer, tcache will be targeted for exploitation. tcache is a fast thread-specific caching layer that is often the first point of interaction for programs working with dynamic memory allocations.

40 challenges

Dynamic Allocator Misuse Resources

Dynamic Allocator Misuse: What is the Heap?

Dynamic Allocator Misuse: Dangers

Dynamic Allocator Misuse: tcache

Use After Free

CHALLENGE 01

Freebie (Easy)

— solves

Exploit a use-after-free vulnerability to get the flag.

CHALLENGE 02

Freebie (Hard)

— solves

Exploit a use-after-free vulnerability to get the flag.

CHALLENGE 03

Freebin Feint (Easy)

— solves

Create and exploit a use-after-free vulnerability to get the flag.

CHALLENGE 04

Freebin Feint (Hard)

— solves

Create and exploit a use-after-free vulnerability to get the flag.

CHALLENGE 05

Free Flag Fumble (Easy)

— solves

Create and exploit a use-after-free vulnerability to get the flag when multiple allocations occur.

CHALLENGE 06

Free Flag Fumble (Hard)

— solves

Create and exploit a use-after-free vulnerability to get the flag when multiple allocations occur.

Metadata Mischief Resources

Dynamic Allocator Misuse: Chunks and Metadata

Dynamic Allocator Misuse: Metadata Corruption

Metadata Mischief

CHALLENGE 07

Fickle Free (Easy)

— solves

Corrupt the TCACHE entry_struct value to get the flag when multiple allocations occur.

CHALLENGE 08

Fickle Free (Hard)

— solves

Corrupt the TCACHE entry_struct value to get the flag when multiple allocations occur.

CHALLENGE 09

Malloc Mirage (Easy)

— solves

Apply the TCACHE metadata in an unintended manner to set a value.

CHALLENGE 10

Malloc Mirage (Hard)

— solves

Apply the TCACHE metadata in an unintended manner to set a value.

CHALLENGE 11

Seeking Secrets (Easy)

— solves

Corrupt the TCACHE entry_struct to read unintended memory.

CHALLENGE 12

Seeking Secrets (Hard)

— solves

Corrupt the TCACHE entry_struct to read unintended memory.

CHALLENGE 13

Seeking Substantial Secrets (Easy)

— solves

Corrupt the TCACHE entry_struct to read unintended memory.

CHALLENGE 14

Seeking Substantial Secrets (Hard)

— solves

Corrupt the TCACHE entry_struct to read unintended memory.

CHALLENGE 15

Seeking Spanless Secrets (Easy)

— solves

Leverage TCACHE exploits to pass a validation check.

CHALLENGE 16

Seeking Spanless Secrets (Hard)

— solves

Leverage TCACHE exploits to pass a validation check.

CHALLENGE 17

Seeking Smuggled Secrets (Easy)

— solves

Leverage TCACHE exploits to pass a validation check.

CHALLENGE 18

Seeking Smuggled Secrets (Hard)

— solves

Leverage TCACHE exploits to pass a validation check.

Heap Hijinx

CHALLENGE 19

Sus Sequence (Easy)

— solves

Leverage TCACHE exploits to gain control flow.

CHALLENGE 20

Sus Sequence (Hard)

— solves

Leverage TCACHE exploits to gain control flow.

CHALLENGE 21

Echo Emanations (Easy)

— solves

Leverage TCACHE exploits to gain control flow.

CHALLENGE 22

Echo Emanations (Hard)

— solves

Leverage TCACHE exploits to gain control flow.

CHALLENGE 23

Stack Spoofing (Easy)

— solves

Leverage TCACHE exploits to cause malloc() to return a stack pointer.

CHALLENGE 24

Stack Spoofing (Hard)

— solves

Leverage TCACHE exploits to cause malloc() to return a stack pointer.

CHALLENGE 25

Stack Summoning (Easy)

— solves

Leverage calling free() on a stack pointer to read secret data.

CHALLENGE 26

Stack Summoning (Hard)

— solves

Leverage calling free() on a stack pointer to read secret data.

CHALLENGE 27

Enterprising Echo (Easy)

— solves

Leverage TCACHE exploits to obtain the flag.

CHALLENGE 28

Enterprising Echo (Hard)

— solves

Leverage TCACHE exploits to obtain the flag.

CHALLENGE 29

Ephemeral Echo (Easy)

— solves

Leverage TCACHE exploits to obtain the flag.

CHALLENGE 30

Ephemeral Echo (Hard)

— solves

Leverage TCACHE exploits to obtain the flag.

Subverting Safe-Linking Resources

Dynamic Allocator Misuse: Safe-Linking

Subverting Safe-Linking Challenges

CHALLENGE 31

Seeking Safe Secrets (Easy)

— solves

Revisit a prior challenge, now with TCACHE safe-linking.

CHALLENGE 32

Seeking Safe Secrets (Hard)

— solves

Revisit a prior challenge, now with TCACHE safe-linking.

CHALLENGE 33

Sus Sequence Safety (Easy)

— solves

Revisit a prior challenge, now with TCACHE safe-linking.

CHALLENGE 34

Sus Sequence Safety (Hard)

— solves

Revisit a prior challenge, now with TCACHE safe-linking.

CHALLENGE 35

Safely Stack Summoning (Easy)

— solves

Revisit a prior challenge, now with TCACHE safe-linking.

CHALLENGE 36

Safely Stack Summoning (Hard)

— solves

Revisit a prior challenge, now with TCACHE safe-linking.

Exploitation

CHALLENGE 37

Overlapping Odyssey (Easy)

— solves

Leverage overlapping allocations to obtain the flag.

CHALLENGE 38

Overlapping Odyssey (Hard)

— solves

Leverage overlapping allocations to obtain the flag.

CHALLENGE 39

Tcache Terror (Easy)

— solves

16 bytes and a dream.

CHALLENGE 40

Tcache Terror (Hard)

— solves

16 bytes and a dream.