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-25057 third_party_NuttX has a memory leak vulnerability — OpenHarmony 3.3 Low 2025-04-07
CVE-2025-3198 GNU Binutils objdump bucomm.c display_info memory leak — Binutils 3.3 Low 2025-04-04
CVE-2024-6875 Infinispan: infinispan: rest compare api has buffer leak 6.5 Medium 2025-03-28
CVE-2025-29910 CryptoLib's crypto_handle_incrementing_nontransmitted_counter Function has Memory Leak — CryptoLib 7.5 - 2025-03-17
CVE-2024-9135 On affected platforms running Arista EOS with BGP Link State configured, BGP peer flap can cause the BGP agent to leak memory. This may result in BGP routing processing being terminated and route flapping. — EOS 5.3 Medium 2025-03-04
CVE-2025-20011 Communication Dsoftbus has a memory leak vulnerability — OpenHarmony 3.3 Low 2025-03-04
CVE-2025-1816 FFmpeg IAMF File iamf_parse.c audio_element_obu memory leak — FFmpeg 4.3 Medium 2025-03-02
CVE-2025-1634 Io.quarkus:quarkus-resteasy: memory leak in quarkus resteasy classic when client requests timeout 7.5 High 2025-02-26
CVE-2025-25199 BCryptGenerateSymmetricKey memory leak — go-crypto-winnative 7.5 High 2025-02-12
CVE-2025-1152 GNU Binutils ld xstrdup.c xstrdup memory leak — Binutils 3.1 Low 2025-02-10
CVE-2025-1151 GNU Binutils ld xmemdup.c xmemdup memory leak — Binutils 3.1 Low 2025-02-10
CVE-2025-1150 GNU Binutils ld libbfd.c bfd_malloc memory leak — Binutils 3.1 Low 2025-02-10
CVE-2025-1149 GNU Binutils ld xmalloc.c xstrdup memory leak — Binutils 3.1 Low 2025-02-10
CVE-2025-1148 GNU Binutils ld ldelfgen.c link_order_scan memory leak — Binutils 3.1 Low 2025-02-10
CVE-2025-21091 BIG-IP SNMP vulnerability — BIG-IP 7.5 High 2025-02-05
CVE-2025-21599 Junos OS Evolved: Receipt of specifically malformed IPv6 packets causes kernel memory exhaustion leading to Denial of Service — Junos OS Evolved 7.5 High 2025-01-09
CVE-2024-53984 Nanopb does not release memory on error return when using PB_DECODE_DELIMITED — nanopb 4.3 Medium 2024-12-02
CVE-2024-47493 Junos OS: MX Series: Trio-based FPCs: Continuous physical Interface flaps causes local FPC to crash — Junos OS 6.5 Medium 2024-10-11
CVE-2024-8376 Memory leak — Mosquitto 9.1 - 2024-10-11
CVE-2024-43696 Liteos_a has an Memory Leak vulnerability — OpenHarmony 3.3 Low 2024-10-08
CVE-2024-20304 Cisco IOS XR Software Packet Memory Exhaustion Vulnerability — Cisco IOS XR Software 8.6 High 2024-09-11
CVE-2024-7884 Memory leak when calling a canister method via `ic_cdk::call` — ic-cdk 7.5 High 2024-09-05
CVE-2024-41172 Apache CXF: Unrestricted memory consumption in CXF HTTP clients — Apache CXF 7.5 - 2024-07-19
CVE-2024-39550 Junos OS: MX Series with SPC3 line card: Port flaps causes rtlogd memory leak leading to Denial of Service — Junos OS 6.5 Medium 2024-07-11
CVE-2024-39549 Junos OS and Junos OS Evolved: Receipt of malformed BGP path attributes leads to a memory leak — Junos OS 7.5 High 2024-07-11
CVE-2024-39539 Junos OS: MX Series: Continuous subscriber logins will lead to a memory leak and eventually an FPC crash — Junos OS 5.3 Medium 2024-07-11
CVE-2024-39536 Junos OS and Junos OS Evolved: Flaps of BFD sessions with authentication cause a ppmd memory leak — Junos OS 5.3 Medium 2024-07-11
CVE-2024-3653 Undertow: learningpushhandler can lead to remote memory dos attacks 5.3 Medium 2024-07-08
CVE-2024-5294 D-Link DIR-3040 prog.cgi websSecurityHandler Memory Leak Denial-of-Service Vulnerability — DIR-3040 6.5AI Medium AI 2024-05-23
CVE-2024-4435 BTreeMap memory leak when deallocating nodes with overflows — ic-stable-structures 5.9 Medium 2024-05-21

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