CWE-664

Pillar Abstraction Level
Pillar — Highest-level weakness category
Class — Abstract, language-independent
Base — Specific enough to detect
Variant — Tied to specific technology
Compound — Requires multiple weaknesses
Draft MITRE CWE Status
Stable — Fully reviewed and complete
Draft — Under development, may change
Incomplete — Partially defined by MITRE
Deprecated — No longer recommended
Obsolete — Replaced by another CWE
Improper Control of a Resource Through its Lifetime

Description

The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.

Top Monitored CVEs

Consequences

Other — Varies by Context

When code does not follow the instructions for resource management, it can lead to unexpected behaviors and potentially exploitable states.

Detection

Automated Static Analysis

Use Static analysis tools to check for unreleased resources.