Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-416 (释放后使用) — Vulnerability Class 2435

2435 vulnerabilities classified as CWE-416 (释放后使用). AI Chinese analysis included.

CWE-416, Use After Free, is a critical memory safety weakness occurring when a program continues to reference a memory location after it has been deallocated. Attackers typically exploit this vulnerability by freeing an object and then rapidly reallocating that same memory block with attacker-controlled data. Because the original pointer still points to the now-invalid address, the application may inadvertently execute malicious code or corrupt memory structures, often leading to arbitrary code execution or denial of service. To prevent this, developers must rigorously manage memory lifecycles by nullifying pointers immediately after freeing them, ensuring no dangling references remain. Utilizing modern programming languages with automatic garbage collection or employing static analysis tools to detect invalid memory accesses further mitigates the risk, ensuring that freed memory is never accessed again during the program’s execution.

MITRE CWE Description
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.
Common Consequences (4)
IntegrityModify Memory
The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
AvailabilityDoS: 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.
ConfidentialityRead Memory
Read operations on freed memory can sometimes leak sensitive information instead of causing a crash
Integrity, Confidentiality, AvailabilityExecute 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 …
Mitigations (2)
Architecture and DesignChoose a language that provides automatic memory management.
ImplementationWhen 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.
Effectiveness: Defense in Depth
Examples (2)
The following example demonstrates the weakness.
#include <stdio.h> #include <unistd.h> #define BUFSIZER1 512 #define BUFSIZER2 ((BUFSIZER1/2) - 8) int main(int argc, char **argv) { char *buf1R1; char *buf2R1; char *buf2R2; char *buf3R2; buf1R1 = (char *) malloc(BUFSIZER1); buf2R1 = (char *) malloc(BUFSIZER1); free(buf2R1); buf2R2 = (char *) malloc(BUFSIZER2); buf3R2 = (char *) malloc(BUFSIZER2); strncpy(buf2R1, argv[1], BUFSIZER1-1); free(buf1R1); free(buf2R2); free(buf3R2); }
Bad · C
The following code illustrates a use after free error:
char* ptr = (char*)malloc (SIZE); if (err) { abrt = 1; free(ptr); } ... if (abrt) { logError("operation aborted before commit", ptr); }
Bad · C
CVE IDTitleCVSSSeverityPublished
CVE-2025-62203 Microsoft Excel Remote Code Execution Vulnerability — Microsoft 365 Apps for Enterprise 7.8 High2025-11-11
CVE-2025-60717 Windows Broadcast DVR User Service Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.0 High2025-11-11
CVE-2025-60716 DirectX Graphics Kernel Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.0 High2025-11-11
CVE-2025-59515 Windows Broadcast DVR User Service Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.0 High2025-11-11
CVE-2025-62216 Microsoft Office Remote Code Execution Vulnerability — Microsoft 365 Apps for Enterprise 7.8 High2025-11-11
CVE-2025-62199 Microsoft Office Remote Code Execution Vulnerability — Microsoft 365 Apps for Enterprise 7.8 High2025-11-11
CVE-2025-60707 Multimedia Class Scheduler Service (MMCSS) Driver Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.8 High2025-11-11
CVE-2025-61818 InCopy | Use After Free (CWE-416) — InCopy 7.8 High2025-11-11
CVE-2025-61817 InCopy | Use After Free (CWE-416) — InCopy 7.8 High2025-11-11
CVE-2025-61815 InDesign Desktop | Use After Free (CWE-416) — InDesign Desktop 7.8 High2025-11-11
CVE-2025-61814 InDesign Desktop | Use After Free (CWE-416) — InDesign Desktop 7.8 High2025-11-11
CVE-2025-64183 OpenEXR has use after free in PyObject_StealAttrString — openexr 9.1 -2025-11-10
CVE-2025-12438 Microsoft Edge 安全漏洞 — Chrome 8.8 -2025-11-10
CVE-2025-12437 Microsoft Edge 安全漏洞 — Chrome 8.8 -2025-11-10
CVE-2025-11460 Google Chrome 安全漏洞 — Chrome 8.8AIHighAI2025-11-06
CVE-2025-11756 Google Chrome 安全漏洞 — Chrome 8.8AIHighAI2025-11-06
CVE-2025-11219 Google Chrome 安全漏洞 — Chrome 8.8AIHighAI2025-11-06
CVE-2025-20745 MediaTek Chipsets 安全漏洞 — MT2718, MT6989, MT6991, MT8370, MT8390, MT8395, MT8676, MT8678, MT87920 6.7AIMediumAI2025-11-04
CVE-2025-20744 mediatek Chipsets 安全漏洞 — MT6899, MT6991, MT8793 6.7AIMediumAI2025-11-04
CVE-2025-20743 mediatek Chipsets 安全漏洞 — MT2718, MT6761, MT6765, MT6768, MT6781, MT6853, MT6877, MT6886, MT6893, MT6897, MT6899, MT6983, MT6989, MT6991, MT8113, MT8163, MT8168, MT8169, MT8183, MT8186, MT8188, MT8195, MT8196, MT8321, MT8365, MT8385, MT8390, MT8391, MT8512, MT8516, MT8519, MT8676, MT8678, MT8695, MT8696, MT8698, MT8755, MT8766, MT8768, MT8771, MT8775, MT8781, MT8786, MT8788E, MT8791T, MT8792, MT8793, MT8796, MT8797, MT8798, MT8873, MT8883, MT8893 6.7AIMediumAI2025-11-04
CVE-2025-62229 Xorg: xmayland: use-after-free in xpresentnotify structure creation — Xwayland 7.3 High2025-10-30
CVE-2025-62230 Xorg: xwayland: use-after-free in xkb client resource removal — Xwayland 7.3 High2025-10-30
CVE-2025-11465 Ashlar-Vellum Cobalt CO File Parsing Use-After-Free Remote Code Execution Vulnerability — Cobalt 7.8AIHighAI2025-10-29
CVE-2025-62788 Wazuh Vulnerable to Heap Use After Free in w_copy_event_for_log — wazuh 9.1AICriticalAI2025-10-29
CVE-2025-53814 GCC Productions Fade In 资源管理错误漏洞 — Fade In 7.8 High2025-10-28
CVE-2025-12205 Kamailio Configuration File cfg.lex sr_push_yy_state use after free — Kamailio 5.3 Medium2025-10-27
CVE-2025-12105 Libsoup: heap use-after-free in libsoup message queue handling during http/2 read completion — libsoup 7.5 High2025-10-23
CVE-2025-11979 Use-after-free in the MongoDB server query planner may lead to crash or undefined behavior — Server 5.3 Medium2025-10-20
CVE-2025-11677 Use After Free in libwebsockets WebSocket server — libwebsockets 7.5 -2025-10-20
CVE-2025-62504 Envoy Lua filter use-after-free when oversized rewritten response body causes crash — envoy 6.5 Medium2025-10-16

Vulnerabilities classified as CWE-416 (释放后使用) represent 2435 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.