Definition
Use-after-free is a memory-corruption bug class where a program continues to use a pointer after the underlying memory has been freed and possibly reallocated. It’s a perennial source of high-severity vulnerabilities in C and C++ codebases because the freed memory’s new owner is attacker-influenced.