CWE-826: Premature Release of Resource During Expected Lifetime

BaseIncomplete

The product releases a resource that is still intended to be used by itself or another actor.

View on MITRE
Back to CWE Lookup

Extended Description

This weakness focuses on errors in which the product should not release a resource, but performs the release anyway. This is different than a weakness in which the product releases a resource at the appropriate time, but it maintains a reference to the resource, which it later accesses. For this weakness, the resource should still be valid upon the subsequent access. When a product releases a resource that is still being used, it is possible that operations will still be taken on this resource, which may have been repurposed in the meantime, leading to issues similar to CWE-825. Consequences may include denial of service, information exposure, or code execution.

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-826: Premature Release of Resource During Expected Lifetime?+

CWE-826: Premature Release of Resource During Expected Lifetime is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product releases a resource that is still intended to be used by itself or another actor. This weakness focuses on errors in which the product should not release a resource, but performs the release anyway. This is different than a weakness in which the product releases a resource at the appropriate time, but it maintains a reference to the resource, which it later accesses. For this weakness, the resource should still be valid upon the subsequent access. When a product releases a resource that is still being used, it is possible that operations will still be taken on this resource, which may have been repurposed in the meantime, leading to issues similar to CWE-825. Consequences may include denial of service, information exposure, or code execution.

What are the security consequences of Premature Release of Resource During Expected Lifetime?+

If exploited, CWE-826 (Premature Release of Resource During Expected Lifetime) it can compromise Confidentiality, Availability and Integrity, leading to outcomes such as Read Application Data, Read Memory, DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands, Modify Application Data and Modify Memory.

What are real-world examples of Premature Release of Resource During Expected Lifetime?+

MITRE documents real CVEs mapped to CWE-826, including CVE-2009-3547. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-826 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More