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-2024-21609 Junos OS: MX Series with SPC3, and SRX Series: If specific IPsec parameters are negotiated iked will crash due to a memory leak — Junos OS 6.5 Medium 2024-04-12
CVE-2024-1023 Io.vertx/vertx-core: memory leak due to the use of netty fastthreadlocal data structures in vertx 6.5 Medium 2024-03-27
CVE-2024-1394 Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads — Red Hat Ansible Automation Platform 2.4 for RHEL 8 7.5 High 2024-03-21
CVE-2023-33086 Improper Release of Memory Before Removing Last Reference in Data Modem — Snapdragon 7.5 High 2024-03-04
CVE-2023-33084 Improper Release of Memory Before Removing Last Reference in Data Modem — Snapdragon 7.5 High 2024-03-04
CVE-2024-0240 Silicon Labs EFR32 Bluetooth stack denial of service when sending notifications to multiple clients — GSDK 6.5 Medium 2024-02-15
CVE-2023-33049 Improper Release of Memory Before Removing Last Reference in Multi-Mode Call Processor — Snapdragon 7.5 High 2024-02-06
CVE-2024-21613 Junos OS and Junos OS Evolved: A link flap causes patroot memory leak which leads to rpd crash — Junos OS 6.5 Medium 2024-01-12
CVE-2024-21611 Junos OS and Junos OS Evolved: In a jflow scenario continuous route churn will cause a memory leak and eventually an rpd crash — Junos OS 7.5 High 2024-01-12
CVE-2024-21599 Junos OS: MX Series: MPC3E memory leak with PTP configuration — Junos OS 6.5 Medium 2024-01-12
CVE-2023-7192 Kernel: refcount leak in ctnetlink_create_conntrack() — Red Hat Enterprise Linux 8.2 Advanced Update Support 5.5 Medium 2024-01-02
CVE-2023-38380 Siemens SIMATIC CP 1242-7 安全漏洞 — SIMATIC CP 1242-7 V2 (incl. SIPLUS variants) 7.5 High 2023-12-12
CVE-2023-6299 Apryse iText Reference Table PdfDocument.java memory leak — iText 4.3 Medium 2023-11-26
CVE-2023-5954 Vault Requests Triggering Policy Checks May Lead To Unbounded Memory Consumption — Vault 5.9 Medium 2023-11-09
CVE-2023-43076 Dell PowerScale OneFS 安全漏洞 — PowerScale OneFS 6.5 Medium 2023-11-02
CVE-2023-5349 Draw while calling getdrawinfo() — rmagick 5.3 Medium 2023-10-30
CVE-2023-44193 Junos OS: MX Series: An FPC crash is observed when CFM is enabled in a VPLS scenario and a specific LDP related command is run — Junos OS 5.5 Medium 2023-10-12
CVE-2023-22392 Junos OS: PTX Series and QFX10000 Series: Received flow-routes which aren't installed as the hardware doesn't support them, lead to an FPC heap memory leak — Junos OS 6.5 Medium 2023-10-12
CVE-2023-40534 BIG-IP HTTP/2 vulnerability — BIG-IP 7.5 High 2023-10-10
CVE-2022-4132 Memory leak on tls connections — jss 5.9 Medium 2023-10-04
CVE-2023-3592 Eclipse Mosquitto 安全漏洞 — Mosquitto 5.8 Medium 2023-10-02
CVE-2023-20251 Cisco Wireless LAN Controller 缓冲区错误漏洞 — Cisco Wireless LAN Controller (WLC) 6.1 Medium 2023-09-27
CVE-2023-5156 Glibc: dos due to memory leak in getaddrinfo.c — Red Hat Enterprise Linux 6 7.5 High 2023-09-25
CVE-2023-4513 Missing Release of Memory after Effective Lifetime in Wireshark — Wireshark 5.3 Medium 2023-08-24
CVE-2023-32247 Session setup memory exhaustion denial-of-service vulnerability — kernel 7.5 High 2023-07-24
CVE-2023-34450 CometBFT PeerState JSON serialization deadlock — cometbft 3.7 Low 2023-07-03
CVE-2023-34451 CometBFT may duplicate transactions in the mempool's data structures — cometbft 8.2 High 2023-07-03
CVE-2023-2683 Connection update while closing connection may lead to denial-of-service — Bluetooth SDK 5.3 Medium 2023-06-15
CVE-2023-2602 libcap 安全漏洞 — libcap 7.5 - 2023-06-06
CVE-2023-2618 OpenCV wechat_qrcode Module decoded_bit_stream_parser.cpp decodeHanziSegment memory leak — wechat_qrcode Module 5.3 Medium 2023-05-10

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