Improper Resource Shutdown or Release (CWE-404)
CWE-404, Improper Resource Shutdown or Release, is the MITRE CWE entry for weaknesses in which the product does not release or incorrectly releases a resource before it is made available for re-use. The database tracks 6 CVE records mapped to CWE-404, and 6 of them are in the CISA Known Exploited Vulnerabilities catalog.
Updated
About CWE-404
MITRE lists these common consequences: DoS: Resource Consumption (Other), Varies by Context, Read Application Data, affecting availability, confidentiality.
- MITRE name
- Improper Resource Shutdown or Release
- Abstraction
- Class: a very abstract weakness, typically independent of language or technology
- Status
- Draft
Mitigations
- Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
- 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.
- Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
- When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.
Detection
MITRE lists these detection methods: Automated Static Analysis (high), Automated Dynamic Analysis (moderate), Manual Dynamic Analysis.
CWE-404 in the KEV Catalog
as of 2026-11-22- 6 CISA KEV entries name Improper Resource Shutdown or Release (CWE-404) in their CVE record, tied for 42nd among the 196 weaknesses named in the catalog.
- Microsoft has the most CWE-404 entries in the CISA KEV catalog (6).
Related Attack Patterns
7 CAPEC patternsCAPEC-125FloodingMeta · Severity Medium · Likelihood High
Loading…
CAPEC-130Excessive AllocationMeta · Severity Medium · Likelihood Medium
Loading…
CAPEC-131Resource Leak ExposureMeta · Severity Medium · Likelihood Medium
Loading…
CAPEC-666BlueSmackingStandard · Severity Medium · Likelihood Medium
Loading…
CAPEC-494TCP FragmentationStandard
Loading…
CAPEC-495UDP FragmentationStandard
Loading…
CAPEC-496ICMP FragmentationStandard
Loading…
CWE-404 Vulnerabilities
6 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2018-8639KEV Microsoft Windows Win32k Improper Resource Shutdown or Release Vulnerability | Microsoft Windows Win32k Improper Resource Shutdown or Release Vulnerability | Microsoft | 8.4 | 22.3% | KEV | 2018-12-12 |
| CVE-2018-8611KEV Microsoft Windows Kernel Privilege Escalation Vulnerability | Microsoft Windows Kernel Privilege Escalation Vulnerability | Microsoft | 7.8 | 4.2% | KEV | 2018-12-12 |
| CVE-2018-8405KEV Microsoft DirectX Graphics Kernel Privilege Escalation Vulnerability | Microsoft DirectX Graphics Kernel Privilege Escalation Vulnerability | Microsoft | 7.8 | 3.4% | KEV | 2018-08-15 |
| CVE-2018-8406KEV Microsoft DirectX Graphics Kernel Privilege Escalation Vulnerability | Microsoft DirectX Graphics Kernel Privilege Escalation Vulnerability | Microsoft | 7.8 | 3.4% | KEV | 2018-08-15 |
| CVE-2018-8120KEV Microsoft Win32k Privilege Escalation Vulnerability | Microsoft Win32k Privilege Escalation Vulnerability | Microsoft | 7.0 | 73.3% | KEV | 2018-05-09 |
| CVE-2018-8453KEV Microsoft Win32k Privilege Escalation Vulnerability | Microsoft Win32k Privilege Escalation Vulnerability | Microsoft | 7.8 | 70.0% | KEV | 2018-10-10 |
Frequently Asked Questions
What is CWE-404?→
CWE-404 (Improper Resource Shutdown or Release) is a MITRE CWE entry. The product does not release or incorrectly releases a resource before it is made available for re-use.
How many exploited vulnerabilities are classified as CWE-404?→
This database lists 6 CVE records mapped to CWE-404 by their CVE Numbering Authority. 6 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 5 to known ransomware campaigns. Examples include CVE-2018-8639, CVE-2018-8611, CVE-2018-8405.
Weakness description, consequences, and mitigations from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.