🚀 Join our AI Wargame at Black Hat Asia and our Workshop + Wargame at NDC Sydney .

Use After Free

Refers to a memory corruption vulnerability that occurs when a program continues to use a memory location after it has been freed (deallocated or released).

Remediation:

  • When freeing pointers, be sure to set them to NULL once they are freed.

Metadata

  • Severity: medium
  • Slug: use-after-free

CWEs

  • 416: Use After Free

Available Labs

Open Cpp labs in SecDim Play for this vulnerability.

Try it yourself

Find, Hack and Fix Your First Vulnerability

Reading about security bugs is one thing — fixing one is how the skill sticks. Play a free challenge from the wargame, no setup required.