CWE-664: Improper Control of a Resource Through its Lifetime
CWE版本: 4.18
更新日期: 2025-09-09
弱点描述
The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.
常见后果
影响范围: Other
技术影响: Other
潜在缓解措施
阶段: Testing
描述: Use Static analysis tools to check for unreleased resources.
观察示例
参考: CVE-2018-1000613
Cryptography API uses unsafe reflection when deserializing a private key
参考: CVE-2019-19911
Chain: Python library does not limit the resources used to process images that specify a very large number of bands (CWE-1284), leading to excessive memory consumption (CWE-789) or an integer overflow (CWE-190).
引入模式
| 阶段 | 说明 |
|---|---|
| Implementation | - |
适用平台
编程语言
技术
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| CERT C Secure Coding | FIO39-C | Do not alternately input and output from a stream without an intervening flush or positioning call | CWE More Abstract |
关键信息
CWE ID: CWE-664
抽象级别: Pillar
结构: Simple
状态: Draft