Attackers use heap spraying to flood a program's memory heap with numerous copies of malicious code, increasing the probability that a dangling pointer from a Use-After-Free vulnerability will land on and execute their payload, often bypassing Address Space Layout Randomization (ASLR).