Overwriting the Exception Handling Cache
summary
Technique overwrites libgcc’s cached pointer to the eh_frame/LSDA and redirects unwinding to attacker-controlled DWARF bytecode, which runs in a stack‑based VM that DWARF VM is Turing-complete. Exploit requires a memory leak plus a write primitive (partial or 4‑byte overwrite); demos use a fake program header + fake tables to build a “bring‑your‑own‑linker” and spawn a shell. Tooling: Katana tool edits DWARF; practical limits include a 64‑word DWARF VM stack and version-specific offsets, but the demos work. overwrite EH cache pointer
AI-written summary · about
chapters (18)
- 0:00Intro
- 0:18Motivation
- 2:19A Bit of Theory
- 8:17Software Exploitation
- 10:03Exploiting Additional Computation
- 11:45nix Exception Handling
- 14:00ELF layout of process space
- 14:57Linux Exception Handling
- 16:35Size Limitations
- 16:58eh frame
- 19:23Dwarf Instructions
- 22:43Dwarf Programming
- 23:27Dwarf Expressions
- 31:12Exception Handling Flow
- 32:20Proving (assembly)
- 39:57Caching
- 43:50Other possibilities
- 47:03THE END! Really!?
