What is CWE-416?
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.
CWE-416 is a variant-level weakness in MITRE’s Common Weakness Enumeration, with a MITRE likelihood of exploit of High. Applicable platforms: Language: Memory-Unsafe; Language: C; Language: C++.
Source: MITRE CWE (CWE-416 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Integrity — Modify Memory. The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
- Availability — DoS: Crash, Exit, or Restart. If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.
- Integrity, Confidentiality, Availability — Execute Unauthorized Code or Commands. If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap data. If one of these function pointers is overwritten with an address to valid shellcode, execution of arbitrary code can be achieved.
Source: MITRE CWE, common consequences.
How CWE-416 is exploited in the wild
Threadlinqs maps 354 CVEs to CWE-416, published between 2010-01-15 and 2026-11-05. 29 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild, and 6 are tied to ransomware campaigns. By CVSS v3 severity the set splits into 76 critical, 244 high, 23 medium, 2 low. The highest EPSS score in the set is 99.9% (CVE-2019-0708), the modelled probability of exploitation in the next 30 days. 159 tracked threats reference CWE-416 directly or through a CVE it covers; the most recent is “Multi-vendor vulnerability roundup: Node2Shell Brotli RCE (CVE-2026-111497, actively exploited, CISA KEV), WatchGuard CVE-2026-98432 (CVSS 9.8) and AuthPoint Gateway flaws, Cisco UCS Central CVE-2026-76506, SonicWall GMS CVE-2026-109593/109594 unpatched (EOL)” (2026-11-06). Affected products concentrate in Google (174), Microsoft (83), Mozilla (31), among 45 vendors in total.
Vulnerabilities (CVEs)
Showing 40 of 354 CVEs mapped to CWE-416, CISA KEV first, then by CVSS score.
- CVE-2019-0708 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2019-05-16
- CVE-2026-109618 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2026-10-21
- CVE-2024-9680 — CISA KEV · CVSS 9.8 critical · EPSS 23.1% · published 2024-10-09
- CVE-2026-34621 — CISA KEV · CVSS 9.8 critical · EPSS 2.1% · published 2026-04-13
- CVE-2021-37973 — CISA KEV · CVSS 9.6 critical · EPSS 11.7% · published 2021-10-08
- CVE-2024-4671 — CISA KEV · CVSS 9.6 critical · EPSS 8.3% · published 2024-05-09
- CVE-2010-0249 — CISA KEV · CVSS 8.8 high · EPSS 91.9% · published 2010-01-15
- CVE-2010-0806 — CISA KEV · CVSS 8.8 high · EPSS 82.2% · published 2010-03-10
- CVE-2026-2441 — CISA KEV · CVSS 8.8 high · EPSS 55.1% · published 2026-02-13
- CVE-2022-38181 — CISA KEV · CVSS 8.8 high · EPSS 18.4% · published 2022-10-25
- CVE-2023-32373 — CISA KEV · CVSS 8.8 high · EPSS 12.1% · published 2023-06-23
- CVE-2025-43529 — CISA KEV · CVSS 8.8 high · EPSS 8.7% · published 2025-12-17
- CVE-2023-43000 — CISA KEV · CVSS 8.8 high · EPSS 4.0% · published 2025-11-05
- CVE-2026-5281 — CISA KEV · CVSS 8.8 high · EPSS 0.7% · published 2026-04-01
- CVE-2026-109619 — CISA KEV · CVSS 8.1 high · EPSS 99.9% · published 2026-10-21
- CVE-2020-9715 — CISA KEV · CVSS 7.8 high · EPSS 48.5% · published 2020-08-19
- CVE-2024-1086 — CISA KEV · CVSS 7.8 high · EPSS 28.0% · published 2024-01-31
- CVE-2023-36802 — CISA KEV · CVSS 7.8 high · EPSS 27.9% · published 2023-09-12
- CVE-2025-29824 — CISA KEV · CVSS 7.8 high · EPSS 13.9% · published 2025-04-08
- CVE-2025-62221 — CISA KEV · CVSS 7.8 high · EPSS 2.5% · published 2025-12-09
- CVE-2023-41974 — CISA KEV · CVSS 7.8 high · EPSS 1.9% · published 2024-01-10
- CVE-2021-1048 — CISA KEV · CVSS 7.8 high · EPSS 1.0% · published 2021-12-15
- CVE-2024-4610 — CISA KEV · CVSS 7.8 high · EPSS 0.7% · published 2024-06-07
- CVE-2024-43047 — CISA KEV · CVSS 7.8 high · EPSS 0.6% · published 2024-10-07
- CVE-2025-27038 — CISA KEV · CVSS 7.5 high · EPSS 1.0% · published 2025-06-03
- CVE-2025-48543 — CISA KEV · CVSS 7.5 high · EPSS 0.5% · published 2025-09-04
- CVE-2025-24983 — CISA KEV · CVSS 7 high · EPSS 1.3% · published 2025-03-11
- CVE-2026-68820 — CISA KEV · CVSS 7 high · EPSS 0.3% · published 2026-08-11
- CVE-2022-2586 — CISA KEV · CVSS 5.3 medium · EPSS 10.4% · published 2024-01-08
- CVE-2025-49844 — CVSS 10 critical · EPSS 82.2% · published 2025-10-03
- CVE-2026-57092 — CVSS 9.9 critical · published 2026-07-14
- CVE-2020-28951 — CVSS 9.8 critical · EPSS 1.7% · published 2020-11-19
- CVE-2026-62815 — CVSS 9.8 critical · EPSS 0.9% · published 2026-08-11
- CVE-2026-62893 — CVSS 9.8 critical · EPSS 0.9% · published 2026-08-11
- CVE-2026-69525 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
- CVE-2026-69579 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
- CVE-2026-69595 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
- CVE-2026-69730 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
- CVE-2026-72979 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
- CVE-2026-72983 — CVSS 9.8 critical · EPSS 0.9% · published 2026-09-08
Affected vendors
- Google — 174 CVEs
- Microsoft — 83 CVEs
- Mozilla — 31 CVEs
- Linux — 14 CVEs
- Apple — 8 CVEs
- F5 — 4 CVEs
- Apache Software Foundation — 3 CVEs
- Arm — 3 CVEs
- redis — 3 CVEs
- zephyrproject — 3 CVEs
- Brave — 2 CVEs
- Debian — 2 CVEs
Threat activity
159 tracked threats cite CWE-416; the 25 most recent are listed.
- Multi-vendor vulnerability roundup: Node2Shell Brotli RCE (CVE-2026-111497, actively exploited, CISA KEV), WatchGuard CVE-2026-98432 (CVSS 9.8) and AuthPoint Gateway flaws, Cisco UCS Central CVE-2026-76506, SonicWall GMS CVE-2026-109593/109594 unpatched (EOL)CRITICAL
- OpenAI GPT-6 Cyber Identifies 81 Previously Unknown High-Severity Firefox Vulnerabilities (Mozilla MFSA2026-118, Firefox 159)HIGH
- Multiple Vulnerabilities in Microsoft Edge (prior to 157.0.4341.42) - 27 Chromium CVEs - HK GovCERT A26-11-10HIGH
- Multiple Vulnerabilities in Fortigate NGFW Before V7.4.1 on Siemens RUGGEDCOM APE1808 Devices (SSA-366067)CRITICAL
- Critical Citrix XenServer Vulnerability (CVE-2026-98432, CVE-2026-102703) Could Let Attackers Take Over Virtualization Hosts Without AuthenticationCRITICAL
- APT29 Watering-Hole Campaign Against Mongolian Government Sites Using iOS WebKit and Chrome Android Exploits (CVE-2023-41993, CVE-2024-5274, CVE-2024-4671)HIGH
- Android November 2026 Security Bulletin: Over 200 Vulnerabilities Patched, Including Critical Framework RCE (CVE-2026-58868)CRITICAL
- Microsoft Analysis: 78% of Exploited Vulnerabilities Enable System Takeover and Privilege EscalationMEDIUM
- APT29 (Midnight Blizzard) watering holes target iOS and Android devices with n-day exploit chains (DarkSword, AndroSnitch)HIGH
- Advanced (Targeted) Ransomware Attacks - SI-CERT Analysis (CVE-2020-0688, BlueKeep RDP)HIGH
- Google Chrome 157 Security Update Fixes 213 Bugs Including 7 Critical Vulnerabilities (CVE-2026-121156, CVE-2026-121247, CVE-2026-121229, CVE-2026-121246, CVE-2026-121035, CVE-2026-121203, CVE-2026-121126)CRITICAL
- CVE-2026-31695: 5-Year-Old Linux Kernel virt_wifi Use-After-Free Allows Unprivileged Local RootHIGH
- NCSC Warns of AI-Enabled Ransomware Threat to UK Critical National Infrastructure by 2028 (PHP2Shell CVE-2026-109618/109619 cited)HIGH
- CVE-2023-36802 mskssrv.sys Type Confusion LPE - Public Exploitation Write-up (StarLabs)HIGH
- CVE-2024-30085 Windows cldflt.sys Heap Overflow - Public Exploitation Techniques (PreviousMode and PPL Bypass Editions)HIGH
- Pixel 10 0-click exploit chain: Dolby UDC CVE-2025-54957 plus VPU driver mmap flaw (Project Zero)HIGH
- PHP2Shell (CVE-2026-109618/CVE-2026-109619) + Fragnesia (CVE-2026-46300) Chain Roots 25 Servers, Breaches U.S. Government-Affiliated NetworkCRITICAL
- Cybersecurity Black Week: LiteLLM 1.107.0 PyPI/Docker supply-chain compromise, PHP2Shell (CVE-2026-109618/109619), Node2Shell (CVE-2026-111497), GitLab CVE-2026-110264, KSMBD flaws and eMudhra emSign intermediate CA key compromiseCRITICAL
- Adobe, Veeam, Juniper Networks Patch Critical Vulnerabilities (Campaign Classic APSB26-162, Connect APSB26-182, Veeam B365 8.6 / B&R 13.1.2, Juniper Session Smart Router JSA112183)CRITICAL
- CVE-2026-98432 - Linux Kernel IPv4 TCP SYN Race Condition / Use-After-Free (inet_opt / ireq_opt) Enabling Remote Kernel Memory Corruption and Reported Root Command ExecutionCRITICAL
- Warp Panda exploits VMware ESX CVE-2026-41709; PHP2Shell (CVE-2026-109618/109619) chained with Fragnesia (CVE-2026-46300) to root firewallsCRITICAL
- ThreatsDay Bulletin: Fortinet Critical Firewall Updates (Details Embargoed), Gotenberg RCE CVE-2026-42589 Under Active Exploitation, PHP2Shell ScanningCRITICAL
- Anthropic Unreleased AI Model Chains Flaws Into Working Chrome, Safari, Android, Windows and Linux Exploits (CVE-2026-33096, CVE-2026-98432)HIGH
- Google Chrome 156 Security Update Fixes 52 Flaws Including Four Critical (CVE-2026-118306, CVE-2026-118331, CVE-2026-118348, CVE-2026-118344)CRITICAL
- Eclypsium InfraTrust Pulse (Oct 2026): Actively Exploited Flaws Across Network Infrastructure Appliances (NetScaler CVE-2026-88771, Ivanti CVE-2026-104935, Check Point CVE-2026-93616, Cisco, Arista VeloCloud, FortiMail, F5 BIG-IP APM, PAN-OS, PHP2Shell, Linux Copy Fail)CRITICAL
Mitigations
- Architecture and Design / Language Selection: Choose a language that provides automatic memory management.
- Implementation / Attack Surface Reduction: 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.
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Fuzzing (effectiveness: High): 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 (effectiveness: High): 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 (effectiveness: Moderate): 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++ [REF-1518].
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.