CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime

VariantIncomplete

The product does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed.

View on MITRE
Back to CWE Lookup

Extended Description

When a file descriptor or handle is not released after use (typically by explicitly closing it), attackers can cause a denial of service by consuming all available file descriptors/handles, or otherwise preventing other system processes from obtaining their own file descriptors/handles.

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime?+

CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product does not release a file descriptor or handle after its effective lifetime has ended, i.e., after the file descriptor/handle is no longer needed. When a file descriptor or handle is not released after use (typically by explicitly closing it), attackers can cause a denial of service by consuming all available file descriptors/handles, or otherwise preventing other system processes from obtaining their own file descriptors/handles.

What are the security consequences of Missing Release of File Descriptor or Handle after Effective Lifetime?+

If exploited, CWE-775 (Missing Release of File Descriptor or Handle after Effective Lifetime) it can compromise Availability, leading to outcomes such as DoS: Resource Consumption (Other).

What are real-world examples of Missing Release of File Descriptor or Handle after Effective Lifetime?+

MITRE documents real CVEs mapped to CWE-775, including CVE-2007-0897. 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-775 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

CWE-775: Missing Release of File Descriptor or Handle after Effective Lifetime | CWE Lookup | InventiveHQ