CWE-664Improper Control of a Resource Through its Lifetime

PUBLISHEDweakness record
released 2008-04-11 · last modified 2025-12-11

Metadata

CWE ID:
CWE-664
摘要:
Pillar
结构:
Simple
状态:
Draft
发布日期:
2008-04-11
更新日期:
2025-12-11

名称

Improper Control of a Resource Through its Lifetime

描述

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."

常见后果

范围:
Other
影响:
Other