Weakness · High
CWE-416: Use After Free
What it is
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- Severity (our rating)
- High
- Likelihood of exploit
- High
- Introduced during
- Implementation
- Exploited in the wild
- 93 known exploited CVEs
What an attacker can do
- Modify Memory (Integrity)
- DoS: Crash, Exit, or Restart (Availability)
- Execute Unauthorized Code or Commands (Integrity, Confidentiality, Availability)
How to prevent it
Architecture and Design
- Choose a language that provides automatic memory management.
Implementation
- When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
How to find it
- Fuzzing. Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.
- Automated Static Analysis. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- Automated Dynamic Analysis. Use tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++.
Exploited in the wild: 93 CVEs
Vulnerabilities caused by CWE-416 that attackers have used, from CISA's Known Exploited Vulnerabilities catalog, newest first.
- CVE-2026-68820Microsoft Windows Ancillary Function Driver for WinSock Use-After-Free Vulnerability · added August 11, 2026
- CVE-2010-0249Microsoft Internet Explorer Use-After-Free Vulnerability · added May 20, 2026
- CVE-2020-9715Adobe Acrobat Use-After-Free Vulnerability · added April 13, 2026
- CVE-2026-5281Google Dawn Use-After-Free Vulnerability · added April 1, 2026
- CVE-2023-43000Apple Multiple products Use-After-Free Vulnerability · added March 5, 2026
- CVE-2023-41974Apple iOS and iPadOS Use-After-Free Vulnerability · added March 5, 2026
- CVE-2026-2441Google Chromium CSS Use-After-Free Vulnerability · added February 17, 2026
- CVE-2025-43529Apple Multiple Products Use-After-Free WebKit Vulnerability · added December 15, 2025
- CVE-2025-62221Microsoft Windows Use After Free Vulnerability · added December 9, 2025
- CVE-2025-27038Qualcomm Multiple Chipsets Use-After-Free Vulnerability · added June 3, 2025
- CVE-2025-32709Microsoft Windows Ancillary Function Driver for WinSock Use-After-Free Vulnerability · added May 13, 2025
- CVE-2025-32701Microsoft Windows Common Log File System (CLFS) Driver Use-After-Free Vulnerability · added May 13, 2025
- CVE-2025-30400Microsoft Windows DWM Core Library Use-After-Free Vulnerability · added May 13, 2025
- CVE-2025-29824 ransomwareMicrosoft Windows Common Log File System (CLFS) Driver Use-After-Free Vulnerability · added April 8, 2025
- CVE-2025-24983Microsoft Windows Win32k Use-After-Free Vulnerability · added March 11, 2025
- CVE-2025-24085Apple Multiple Products Use-After-Free Vulnerability · added January 29, 2025
- CVE-2025-21335Microsoft Windows Hyper-V NT Kernel Integration VSP Use-After-Free Vulnerability · added January 14, 2025
- CVE-2025-21334Microsoft Windows Hyper-V NT Kernel Integration VSP Use-After-Free Vulnerability · added January 14, 2025
- CVE-2024-9680 ransomwareMozilla Firefox Use-After-Free Vulnerability · added October 15, 2024
- CVE-2024-43047Qualcomm Multiple Chipsets Use-After-Free Vulnerability · added October 8, 2024
- CVE-2024-38193Microsoft Windows Ancillary Function Driver for WinSock Privilege Escalation Vulnerability · added August 13, 2024
- CVE-2024-38107Microsoft Windows Power Dependency Coordinator Privilege Escalation Vulnerability · added August 13, 2024
- CVE-2024-36971Android Kernel Remote Code Execution Vulnerability · added August 7, 2024
- CVE-2012-4792Microsoft Internet Explorer Use-After-Free Vulnerability · added July 23, 2024
- CVE-2022-2586Linux Kernel Use-After-Free Vulnerability · added June 26, 2024
- CVE-2024-4610Arm Mali GPU Kernel Driver Use-After-Free Vulnerability · added June 12, 2024
- CVE-2024-1086 ransomwareLinux Kernel Use-After-Free Vulnerability · added May 30, 2024
- CVE-2024-4671Google Chromium Visuals Use-After-Free Vulnerability · added May 13, 2024
- CVE-2023-33063Qualcomm Multiple Chipsets Use-After-Free Vulnerability · added December 5, 2023
- CVE-2022-22071Qualcomm Multiple Chipsets Use-After-Free Vulnerability · added December 5, 2023
- CVE-2023-21608Adobe Acrobat and Reader Use-After-Free Vulnerability · added October 10, 2023
- CVE-2023-4211Arm Mali GPU Kernel Driver Use-After-Free Vulnerability · added October 3, 2023
- CVE-2023-36802Microsoft Streaming Service Proxy Privilege Escalation Vulnerability · added September 12, 2023
- CVE-2021-29256Arm Mali GPU Kernel Driver Use-After-Free Vulnerability · added July 7, 2023
- CVE-2021-25394Samsung Mobile Devices Race Condition Vulnerability · added June 29, 2023
- CVE-2016-9079Mozilla Firefox, Firefox ESR, and Thunderbird Use-After-Free Vulnerability · added June 22, 2023
- CVE-2023-32373Apple Multiple Products WebKit Use-After-Free Vulnerability · added May 22, 2023
- CVE-2023-29336Microsoft Win32K Privilege Escalation Vulnerability · added May 9, 2023
- CVE-2019-8526Apple macOS Use-After-Free Vulnerability · added April 17, 2023
- CVE-2023-28205Apple Multiple Products WebKit Use-After-Free Vulnerability · added April 10, 2023
- CVE-2023-0266Linux Kernel Use-After-Free Vulnerability · added March 30, 2023
- CVE-2022-38181Arm Mali GPU Kernel Driver Use-After-Free Vulnerability · added March 30, 2023
- CVE-2022-3038Google Chromium Network Service Use-After-Free Vulnerability · added March 30, 2023
- CVE-2023-21674Microsoft Windows Advanced Local Procedure Call (ALPC) Privilege Escalation Vulnerability · added January 10, 2023
- CVE-2021-25370Samsung Mobile Devices Memory Corruption Vulnerability · added November 8, 2022
- CVE-2019-8605Apple Multiple Products Use-After-Free Vulnerability · added June 27, 2022
- CVE-2016-0984Adobe Flash Player and AIR Use-After-Free Vulnerability · added May 25, 2022
- CVE-2021-1048Android Kernel Use-After-Free Vulnerability · added May 23, 2022
- CVE-2021-0920Android Kernel Race Condition Vulnerability · added May 23, 2022
- CVE-2019-13720Google Chrome WebAudio Use-After-Free Vulnerability · added May 23, 2022
- CVE-2019-5786Google Chrome Blink Use-After-Free Vulnerability · added May 23, 2022
- CVE-2014-0322Microsoft Internet Explorer Use-After-Free Vulnerability · added May 4, 2022
- CVE-2015-5123Adobe Flash Player Use-After-Free Vulnerability · added April 13, 2022
- CVE-2015-5122Adobe Flash Player Use-After-Free Vulnerability · added April 13, 2022
- CVE-2015-0313Adobe Flash Player Use-After-Free Vulnerability · added April 13, 2022
- CVE-2021-31166Microsoft HTTP Protocol Stack Remote Code Execution Vulnerability · added April 6, 2022
- CVE-2021-34486Microsoft Windows Event Tracing Privilege Escalation Vulnerability · added March 28, 2022
- CVE-2013-2551 ransomwareMicrosoft Internet Explorer Use-After-Free Vulnerability · added March 28, 2022
- CVE-2016-7892Adobe Flash Player Use-After-Free Vulnerability · added March 25, 2022
- CVE-2022-26486Mozilla Firefox Use-After-Free Vulnerability · added March 7, 2022
- CVE-2022-26485Mozilla Firefox Use-After-Free Vulnerability · added March 7, 2022
- CVE-2017-0261Microsoft Office Use-After-Free Vulnerability · added March 3, 2022
- CVE-2016-7855Adobe Flash Player Use-After-Free Vulnerability · added March 3, 2022
- CVE-2022-0609Google Chromium Animation Use-After-Free Vulnerability · added February 15, 2022
- CVE-2018-15982 ransomwareAdobe Flash Player Use-After-Free Vulnerability · added February 15, 2022
- CVE-2022-22620Apple iOS, iPadOS, and macOS Webkit Use-After-Free Vulnerability · added February 11, 2022
- CVE-2017-0263Microsoft Win32k Privilege Escalation Vulnerability · added February 10, 2022
- CVE-2014-1776Microsoft Internet Explorer Memory Corruption Vulnerability · added January 28, 2022
- CVE-2020-6572Google Chrome Media Use-After-Free Vulnerability · added January 10, 2022
- CVE-2021-4102Google Chromium V8 Use-After-Free Vulnerability · added December 15, 2021
- CVE-2021-40449 ransomwareMicrosoft Windows Win32k Privilege Escalation Vulnerability · added November 17, 2021
- CVE-2021-37975Google Chromium V8 Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-37973Google Chromium Portals Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-30858Apple iOS, iPadOS, macOS Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-30762Apple iOS WebKit Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-30661Apple Multiple Products WebKit Storage Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-30633Google Chromium Indexed DB API Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-30554Google Chromium WebGL Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-28663Arm Mali Graphics Processing Unit (GPU) Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-28550Adobe Acrobat and Reader Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-26411 ransomwareMicrosoft Internet Explorer Memory Corruption Vulnerability · added November 3, 2021
- CVE-2021-21206Google Chromium Blink Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-21193Google Chromium Blink Use-After-Free Vulnerability · added November 3, 2021
- CVE-2021-1905Qualcomm Multiple Chipsets Use-After-Free Vulnerability · added November 3, 2021
- CVE-2020-16017Google Chrome Use-After-Free Vulnerability · added November 3, 2021
- CVE-2020-6819Mozilla Firefox And Thunderbird Use-After-Free Vulnerability · added November 3, 2021
- CVE-2020-3992 ransomwareVMware ESXi OpenSLP Use-After-Free Vulnerability · added November 3, 2021
- CVE-2020-0674Microsoft Internet Explorer Scripting Engine Memory Corruption Vulnerability · added November 3, 2021
- CVE-2019-2215Android Kernel Use-After-Free Vulnerability · added November 3, 2021
- CVE-2019-1429Microsoft Internet Explorer Scripting Engine Memory Corruption Vulnerability · added November 3, 2021
- CVE-2019-0708 ransomwareMicrosoft Remote Desktop Services Remote Code Execution Vulnerability · added November 3, 2021
- CVE-2019-0211Apache HTTP Server Privilege Escalation Vulnerability · added November 3, 2021
- CVE-2018-4878 ransomwareAdobe Flash Player Use-After-Free Vulnerability · added November 3, 2021
H2 Security
Found it in your code?
We review where it appears, fix it with your team, and check it was not already used against you.
Talk to our teamT Academy
Stop writing it in the first place
Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.
Start freeSource: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.