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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-404 (不恰当的资源关闭或释放) — Vulnerability Class 377

377 vulnerabilities classified as CWE-404 (不恰当的资源关闭或释放). AI Chinese analysis included.

CWE-404 represents a critical resource management weakness where software fails to properly release or incorrectly frees allocated resources, such as memory, file handles, or network connections, before they are reused. This flaw typically leads to resource exhaustion, causing application crashes, denial of service, or system instability as available resources dwindle. Attackers often exploit this by triggering repeated allocations without corresponding releases, effectively starving the system of necessary assets. To mitigate this risk, developers must implement rigorous lifecycle management, ensuring every allocated resource has a corresponding release mechanism. This involves using structured cleanup routines, leveraging language-specific garbage collection or smart pointers, and accounting for all execution paths, including error conditions and timeouts, to guarantee resources are consistently returned to the pool for safe reuse.

MITRE CWE Description
The product does not release or incorrectly releases a resource before it is made available for re-use. When a resource is created or allocated, the developer is responsible for properly releasing the resource as well as accounting for all potential paths of expiration or invalidation, such as a set period of time or revocation.
Common Consequences (2)
Availability, Other DoS: Resource Consumption (Other), Varies by Context
Most unreleased resource issues result in general software reliability problems, but if an attacker can intentionally trigger a resource leak, the attacker might be able to launch a denial of service attack by depleting the resource pool.
Confidentiality Read Application Data
When a resource containing sensitive information is not correctly shutdown, it may expose the sensitive data in a subsequent allocation.
Mitigations (4)
Requirements Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Implementation It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Implementation Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Implementation When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.
Examples (2)
The following method never closes the new file handle. Given enough time, the Finalize() method for BufferReader should eventually call Close(), but there is no guarantee as to how long this action will take. In fact, there is no guarantee that Finalize() will ever be invoked. In a busy environment, the Operating System could use up all of the available file handles before the Close() function is …
private void processFile(string fName) { BufferReader fil = new BufferReader(new FileReader(fName)); String line; while ((line = fil.ReadLine()) != null) { processLine(line); } }
Bad · Java
private void processFile(string fName) { BufferReader fil = new BufferReader(new FileReader(fName)); String line; while ((line = fil.ReadLine()) != null) { processLine(line); } fil.Close(); }
Good · Java
This code attempts to open a connection to a database and catches any exceptions that may occur.
try { Connection con = DriverManager.getConnection(some_connection_string); } catch ( Exception e ) { log( e ); }
Bad · Java
CVE ID Title CVSS Severity Published
CVE-2024-5095 Victor Zsviot Camera MQTT Packet denial of service — Zsviot Camera 6.5 Medium 2024-05-19
CVE-2024-4791 Contemporary Control System BASrouter BACnet BASRT-B Application Protocol Data Unit denial of service — BASrouter BACnet BASRT-B 7.5 High 2024-05-12
CVE-2024-4292 Contemporary Controls BASrouter BACnet BASRT-B Device-Communication-Control Service denial of service — BASrouter BACnet BASRT-B 6.5 Medium 2024-04-27
CVE-2024-2760 Bkav Home v7816, build 2403161130 - Kernel Memory Leak — Bkav Home 5.5 Medium 2024-04-23
CVE-2024-3764 Tuya SDK MQTT Packet denial of service — SDK 2.7 Low 2024-04-14
CVE-2024-2995 NUUO Camera deletefile.php denial of service — Camera 5.4 Medium 2024-03-27
CVE-2024-28252 CoreWCF NetFraming based services can leave connections open when they should be closed — CoreWCF 7.5 High 2024-03-15
CVE-2024-2180 Zemana AntiLogger v2.74.204.664 - Kernel Memory Leak — AntiLogger 5.5 Medium 2024-03-15
CVE-2024-2363 AOL AIM Triton Invite denial of service — AIM Triton 5.3 Medium 2024-03-10
CVE-2018-25098 blockmason credit-protocol UCAC CreditProtocol.sol executeUcacTx denial of service — credit-protocol 4.3 Medium 2024-02-04
CVE-2024-1199 CodeAstro Employee Task Management System attendance-info.php denial of service — Employee Task Management System 5.4 Medium 2024-02-03
CVE-2024-1195 iTop VPN IOCTL ITopVpnCallbackProcess.sys denial of service — VPN 5.5 Medium 2024-02-02
CVE-2024-1194 Armcode AlienIP Locate Host denial of service — AlienIP 3.3 Low 2024-02-02
CVE-2024-1193 Navicat MySQL Conecction denial of service — Navicat 3.3 Low 2024-02-02
CVE-2024-1192 South River WebDrive New Secure WebDAV denial of service — WebDrive 3.3 Low 2024-02-02
CVE-2024-1191 Hyper CdCatalog HCF File denial of service — CdCatalog 3.3 Low 2024-02-02
CVE-2024-1190 Global Scape CuteFTP denial of service — CuteFTP 3.3 Low 2024-02-02
CVE-2024-1189 AMPPS Encryption Passphrase denial of service — AMPPS 5.3 Medium 2024-02-02
CVE-2024-1188 Rizone Soft Notepad3 Encryption Passphrase denial of service — Notepad3 3.3 Low 2024-02-02
CVE-2024-1187 Munsoft Easy Outlook Express Recovery Registration Key denial of service — Easy Outlook Express Recovery 3.3 Low 2024-02-02
CVE-2024-1186 Munsoft Easy Archive Recovery Registration Key denial of service — Easy Archive Recovery 3.3 Low 2024-02-02
CVE-2024-1185 Nsasoft NBMonitor Network Bandwidth Monitor Registration denial of service — NBMonitor Network Bandwidth Monitor 3.3 Low 2024-02-02
CVE-2024-1184 Nsasoft Network Sleuth Registration denial of service — Network Sleuth 3.3 Low 2024-02-02
CVE-2024-1017 Gabriels FTP Server denial of service — FTP Server 5.3 Medium 2024-01-29
CVE-2024-1016 Solar FTP Server PASV Command denial of service — FTP Server 5.3 Medium 2024-01-29
CVE-2024-0889 Kmint21 Golden FTP Server PASV Command denial of service — Golden FTP Server 5.3 Medium 2024-01-25
CVE-2024-0888 BORGChat Service Port 7551 denial of service — BORGChat 5.3 Medium 2024-01-25
CVE-2024-0887 Mafiatic Blue Server Connection denial of service — Blue Server 5.3 Medium 2024-01-25
CVE-2024-0886 Poikosoft EZ CD Audio Converter Activation denial of service — EZ CD Audio Converter 3.3 Low 2024-01-25
CVE-2024-0885 SpyCamLizard HTTP GET Request denial of service — SpyCamLizard 5.3 Medium 2024-01-25

Vulnerabilities classified as CWE-404 (不恰当的资源关闭或释放) represent 377 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.