Instead of reclaiming with a victim object, attack the allocator itself. Corrupting a free object's next pointer makes SLUB hand out memory at an address you choose. Modern kernels obfuscate that pointer (SLAB_FREELIST_HARDENED) and randomize free lists, so you need leaks and careful heap grooming.
What you will learn
- SLUB layout: slabs, per-CPU freelists, partial lists, the freelist pointer offset
- Freelist poisoning on plain and hardened (XOR-obfuscated) freelists
- Deterministic heap shaping with tiny caches (kmalloc-16/32) and isolated caches
- Overflowing into adjacent objects in variable-size caches
- Reverse engineering an unfamiliar module to find the real primitive
Prerequisites
Module 04.
References
Challenges
30-Day Scoreboard:
This scoreboard reflects solves for challenges in this module after the module launched in this dojo.
| Rank | Hacker | Badges | Score |