CWE-226 在释放前未清除敏感信息

Sensitive Information Uncleared Before Release

结构: Simple

Abstraction: Base

状态: Draft

被利用可能性: unkown

基本描述

The software does not fully clear previously used information in a data structure, file, or other resource, before making that resource available to a party in another control sphere.

扩展描述

This typically results from new data that is not as long as the old data, which leaves portions of the old data still available. Equivalent errors can occur in other situations where the length of data is variable but the associated data structure is not. If memory is not cleared after use, it may allow unintended actors to read the data when the memory is reallocated.

相关缺陷

  • cwe_Nature: ChildOf cwe_CWE_ID: 459 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 200 cwe_View_ID: 1000

  • cwe_Nature: ChildOf cwe_CWE_ID: 200 cwe_View_ID: 699 cwe_Ordinal: Primary

  • cwe_Nature: CanAlsoBe cwe_CWE_ID: 212 cwe_View_ID: 1000

适用平台

Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
Confidentiality Read Application Data

分析过的案例

标识 说明 链接
CVE-2003-0001 Ethernet NIC drivers do not pad frames with null bytes, leading to infoleak from malformed packets. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0001
CVE-2003-0291 router does not clear information from DHCP packets that have been previously used https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0291
CVE-2005-1406 Products do not fully clear memory buffers when less data is stored into the buffer than previous. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-1406
CVE-2005-1858 Products do not fully clear memory buffers when less data is stored into the buffer than previous. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-1858
CVE-2005-3180 Products do not fully clear memory buffers when less data is stored into the buffer than previous. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3180
CVE-2005-3276 Product does not clear a data structure before writing to part of it, yielding information leak of previously used memory. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3276
CVE-2002-2077 Memory not properly cleared before reuse. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-2077

Notes

Relationship There is a close association between CWE-226 and CWE-212. The difference is partially that of perspective. CWE-226 is geared towards the final stage of the resource lifecycle, in which the resource is deleted, eliminated, expired, or otherwise released for reuse. Technically, this involves a transfer to a different control sphere, in which the original contents of the resource are no longer relevant. CWE-212, however, is intended for sensitive data in resources that are intentionally shared with others, so they are still active. This distinction is useful from the perspective of the CWE research view (CWE-1000). Maintenance This entry needs modification to clarify the differences with CWE-212. The description also combines two problems that are distinct from the CWE research perspective - the inadvertent transfer of information to another sphere, and improper initialization/shutdown. Some of the associated taxonomy mappings reflect these different uses. Research Gap Currently frequently found for network packets, but it can also exist in local memory allocation, files, etc.

分类映射

映射的分类名 ImNode ID Fit Mapped Node Name
PLOVER Sensitive Information Uncleared Before Use
CERT C Secure Coding MEM03-C Clear sensitive information stored in reusable resources returned for reuse
Software Fault Patterns SFP23 Exposed Data