CWE-911 引用计数的更新不恰当

admin 2021年12月4日16:22:10评论69 views字数 3694阅读12分18秒阅读模式

CWE-911 引用计数的更新不恰当

Improper Update of Reference Count

结构: Simple

Abstraction: Variant

状态: Incomplete

被利用可能性: Medium

基本描述

The software uses a reference count to manage a resource, but it does not update or incorrectly updates the reference count.

扩展描述

Reference counts can be used when tracking how many objects contain a reference to a particular resource, such as in memory management or garbage collection. When the reference count reaches zero, the resource can be de-allocated or reused because there are no more objects that use it. If the reference count accidentally reaches zero, then the resource might be released too soon, even though it is still in use. If all objects no longer use the resource, but the reference count is not zero, then the resource might not ever be released.

相关缺陷

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

  • cwe_Nature: CanPrecede cwe_CWE_ID: 672 cwe_View_ID: 1000

  • cwe_Nature: CanPrecede cwe_CWE_ID: 772 cwe_View_ID: 1000

适用平台

Language: [{'cwe_Name': 'C', 'cwe_Prevalence': 'Sometimes'}, {'cwe_Name': 'C++', 'cwe_Prevalence': 'Sometimes'}, {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}]

分析过的案例

标识 说明 链接
CVE-2002-0574 chain: reference count is not decremented, leading to memory leak in OS by sending ICMP packets. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0574
CVE-2004-0114 Reference count for shared memory not decremented when a function fails, potentially allowing unprivileged users to read kernel memory. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0114
CVE-2006-3741 chain: improper reference count tracking leads to file descriptor consumption https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3741
CVE-2007-1383 chain: integer overflow in reference counter causes the same variable to be destroyed twice. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1383
CVE-2007-1700 Incorrect reference count calculation leads to improper object destruction and code execution. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1700
CVE-2008-2136 chain: incorrect update of reference count leads to memory leak. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2136
CVE-2008-2785 chain/composite: use of incorrect data type for a reference counter allows an overflow of the counter, leading to a free of memory that is still in use. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2785
CVE-2008-5410 Improper reference counting leads to failure of cryptographic operations. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5410
CVE-2009-1709 chain: improper reference counting in a garbage collection routine leads to use-after-free https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1709
CVE-2009-3553 chain: reference count not correctly maintained when client disconnects during a large operation, leading to a use-after-free. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3553
CVE-2009-3624 Reference count not always incremented, leading to crash or code execution. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3624
CVE-2010-0176 improper reference counting leads to expired pointer dereference. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0176
CVE-2010-0623 OS kernel increments reference count twice but only decrements once, leading to resource consumption and crash. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0623
CVE-2010-2549 OS kernel driver allows code execution https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-2549
CVE-2010-4593 improper reference counting leads to exhaustion of IP addresses https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4593
CVE-2011-0695 Race condition causes reference counter to be decremented prematurely, leading to the destruction of still-active object and an invalid pointer dereference. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0695
CVE-2012-4787 improper reference counting leads to use-after-free https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-4787

引用

文章来源于互联网:scap中文网

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月4日16:22:10
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-911 引用计数的更新不恰当https://cn-sec.com/archives/613379.html

发表评论

匿名网友 填写信息