Umbra Wiki weakness weakness/CWE-664
Back to wiki

CWE-664 — Improper Control of a Resource Through its Lifetime

provenance: imported · CWE: CWE-664

CWE-664: Improper Control of a Resource Through its Lifetime

MITRE CWE weakness

Kind Weakness
Abstraction Pillar
Status Draft
Likelihood of exploit

Description

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

Resources often have explicit instructions on how to be created, used and destroyed. When code does not follow these instructions, it can lead to unexpected behaviors and potentially exploitable states. Even without explicit instructions, various principles are expected to be adhered to, such as "Do not use an object until after its creation is complete," or "do not use an object after it has been slated for destruction."

Common consequences

  • Other: Other

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/664.html
  • CWE list: https://cwe.mitre.org/data/index.html