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

admin 2022年1月5日21:03:56评论44 views字数 3167阅读10分33秒阅读模式

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.
CVE-2003-0291 router does not clear information from DHCP packets that have been previously used
CVE-2005-1406 Products do not fully clear memory buffers when less data is stored into the buffer than previous.
CVE-2005-1858 Products do not fully clear memory buffers when less data is stored into the buffer than previous.
CVE-2005-3180 Products do not fully clear memory buffers when less data is stored into the buffer than previous.
CVE-2005-3276 Product does not clear a data structure before writing to part of it, yielding information leak of previously used memory.
CVE-2002-2077 Memory not properly cleared before reuse.


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


特别标注: 本站(CN-SEC.COM)所有文章仅供技术研究,若将其信息做其他用途,由用户承担全部法律及连带责任,本站不承担任何法律及连带责任,请遵守中华人民共和国安全法.
  • 我的微信
  • 微信扫一扫
  • weinxin
  • 我的微信公众号
  • 微信扫一扫
  • weinxin
  • 本文由 发表于 2022年1月5日21:03:56
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                  CWE-226 在释放前未清除敏感信息


匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: