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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-401 (在移除最后引用时对内存的释放不恰当(内存泄露)) — Vulnerability Class 292

292 vulnerabilities classified as CWE-401 (在移除最后引用时对内存的释放不恰当(内存泄露)). AI Chinese analysis included.

CWE-401 represents a memory management weakness where software fails to release allocated memory after its effective lifetime, leading to resource exhaustion. This defect typically manifests as a denial-of-service condition rather than direct code execution, as the continuous accumulation of unreleased memory gradually depletes system resources. Attackers exploit this by triggering repeated allocations, causing the application or host to crash when memory limits are reached. Developers prevent this by implementing rigorous memory lifecycle management, ensuring every allocation has a corresponding deallocation call. Utilizing automated static analysis tools helps identify leaks during development, while adopting garbage-collected languages or smart pointers in C++ can significantly reduce the risk. Regular memory profiling during testing further ensures that allocated resources are properly returned to the system, maintaining application stability and preventing resource starvation.

MITRE CWE Description
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
Common Consequences (2)
Availability DoS: Crash, Exit, or Restart, DoS: Instability, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Most memory leaks result in general product reliability problems, but if an attacker can intentionally trigger a memory leak, the attacker might be able to launch a denial of service attack (by crashing or hanging the program) or take advantage of other unexpected program behavior resulting from a l…
Other Reduce Performance
Mitigations (3)
Implementation Choose a language or tool that provides automatic memory management, or makes manual memory management less error-prone. For example, glibc in Linux provides protection against free of invalid pointers. When using Xcode to target OS X or iOS, enable automatic reference counting (ARC) [REF-391]. To help correctly and consistently manage memory when programming in C++, consider using a smart pointer…
Architecture and Design Use an abstraction library to abstract away risky APIs. Not a complete solution.
Architecture and Design, Build and Compilation Consider using the Boehm-Demers-Weiser garbage collector (bdwgc), which can help avoid leaks.
Effectiveness: Moderate
Examples (1)
The following C function leaks a block of allocated memory if the call to read() does not return the expected number of bytes:
char* getBlock(int fd) { char* buf = (char*) malloc(BLOCK_SIZE); if (!buf) { return NULL; } if (read(fd, buf, BLOCK_SIZE) != BLOCK_SIZE) { return NULL; } return buf; }
Bad · C
CVE ID Title CVSS Severity Published
CVE-2025-43816 Liferay Portal和Liferay DXP 安全漏洞 — Portal 7.5AI High AI 2025-09-25
CVE-2025-8277 Libssh: memory exhaustion via repeated key exchange in libssh 3.1 Low 2025-09-09
CVE-2025-9165 LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak — LibTIFF 2.5 Low 2025-08-19
CVE-2025-20254 Cisco Secure Firewall Adaptive Security Appliance和Cisco Secure Firewall Threat Defense 安全漏洞 — Cisco Adaptive Security Appliance (ASA) Software 5.8 Medium 2025-08-14
CVE-2025-20252 Cisco Secure Firewall Management Center和Cisco Secure Firewall Adaptive Security Appliance 安全漏洞 — Cisco Adaptive Security Appliance (ASA) Software 5.8 Medium 2025-08-14
CVE-2025-20239 Cisco多款产品 安全漏洞 — IOS 8.6 High 2025-08-14
CVE-2025-20225 Cisco多款产品 安全漏洞 — IOS 5.8 Medium 2025-08-14
CVE-2025-20224 Cisco Secure Firewall Adaptive Security Appliance和Cisco Secure Firewall Threat Defense 安全漏洞 — Cisco Adaptive Security Appliance (ASA) Software 5.8 Medium 2025-08-14
CVE-2025-20135 Cisco Adaptive Security Appliance and Firepower Threat Defense Software DHCP Denial of Service Vulnerability — Cisco Adaptive Security Appliance (ASA) Software 4.3 Medium 2025-08-14
CVE-2025-20133 Cisco Secure Firewall Adaptive Security Appliance and Secure Firewall Threat Defense Software Remote Access SSL VPN Authentication Targeted Denial of Service Vulnerability — Cisco Adaptive Security Appliance (ASA) Software 8.6 High 2025-08-14
CVE-2025-27562 communication_dsoftbus has a missing release of memory vulnerability — OpenHarmony 3.3 Low 2025-08-11
CVE-2025-24844 communication_dsoftbus has a missing release of memory vulnerability — OpenHarmony 3.3 Low 2025-08-11
CVE-2025-24925 applications_settings has a missing release of memory vulnerability — OpenHarmony 3.3 Low 2025-08-11
CVE-2025-8225 GNU Binutils DWARF Section dwarf.c process_debug_info memory leak — Binutils 3.3 Low 2025-07-27
CVE-2025-53537 LibHTP's memory leak with lzma can lead to resource starvation — libhtp 7.5 High 2025-07-23
CVE-2025-46686 Redis 安全漏洞 — Redis 3.5 Low 2025-07-23
CVE-2025-52986 Junos OS and Junos OS Evolved: When RIB sharding is configured each time a show command is executed RPD memory leaks — Junos OS 5.5 Medium 2025-07-11
CVE-2025-53020 Apache HTTP Server: HTTP/2 DoS by Memory Increase — Apache HTTP Server 9.1 - 2025-07-10
CVE-2025-7068 HDF5 H5FL.c H5FL__malloc memory leak — HDF5 3.3 Low 2025-07-04
CVE-2025-6498 HTACG tidy-html5 alloc.c defaultAlloc memory leak — tidy-html5 3.3 Low 2025-06-23
CVE-2025-29828 Windows Schannel Remote Code Execution Vulnerability — Windows 11 version 22H2 8.1 High 2025-06-10
CVE-2025-5324 TechPowerUp GPU-Z 0x8000645C IOCTL GPU-Z.sys sub_140001880 memory leak — GPU-Z 3.3 Low 2025-05-29
CVE-2025-47935 Multer vulnerable to Denial of Service via memory leaks from unclosed streams — multer 7.5 High 2025-05-19
CVE-2025-47279 undici Denial of Service attack via bad certificate data — undici 3.1 Low 2025-05-15
CVE-2025-22886 distributeddatamgr_udmf has a memory leak vulnerability — OpenHarmony 3.3 Low 2025-05-06
CVE-2025-1992 IBM Db2 denial of service — Db2 for Linux, UNIX and Windows 5.3 Medium 2025-05-05
CVE-2025-46420 Libsoup: memory leak on soup_header_parse_quality_list() via soup-headers.c 6.5 Medium 2025-04-24
CVE-2025-30658 Junos OS: SRX Series: On devices with Anti-Virus enabled, malicious server responses will cause memory to leak ultimately causing forwarding to stop — Junos OS 7.5 High 2025-04-09
CVE-2025-30647 Junos OS: MX Series: Subscriber login/logout activity will lead to a memory leak — Junos OS 6.5 Medium 2025-04-09
CVE-2025-21595 Junos OS and Junos OS Evolved: In an EVPN-VXLAN scenario specific ARP or NDP packets cause FPC to crash — Junos OS 6.5 Medium 2025-04-09

Vulnerabilities classified as CWE-401 (在移除最后引用时对内存的释放不恰当(内存泄露)) represent 292 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.