480
[REF-150]Johannes Ullrich. "Top 25 Series - Rank 17 - Integer Overflow Or Wraparound". 2010
March 8. SANS Software Security Institute. < http://software-security.sans.org/blog/2010/03/18/
top-25-series-rank-17-integer-overflow-or-wraparound >.
[REF-62]Mark Dowd, John McDonald and Justin Schuh. "The Art of Software Security
Assessment". 1st Edition. 2006. Addison Wesley.
CWE-191: Integer Underflow (Wrap or Wraparound)
Weakness ID : 191
Structure : Simple
Abstraction : Base
Description
The product subtracts one value from another, such that the result is less than the minimum
allowable integer value, which produces a value that is not equal to the correct result.
Extended Description
This can happen in signed and unsigned cases.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 682 Incorrect Calculation 1499
Relevant to the view "Weaknesses for Simplified Mapping of Published
Vulnerabilities" (CWE-1003)
Nature Type ID Name Page
ChildOf 682 Incorrect Calculation 1499
Relevant to the view "Software Development" (CWE-699)
Nature Type ID Name Page
MemberOf 189 Numeric Errors 2312
Applicable Platforms
Language : C (Prevalence = Undetermined)
Language : C++ (Prevalence = Undetermined)
Language : Java (Prevalence = Undetermined)
Language : C# (Prevalence = Undetermined)
Alternate Terms
Integer underflow : "Integer underflow" is sometimes used to identify signedness errors in which
an originally positive number becomes negative as a result of subtraction. However, there are
cases of bad subtraction in which unsigned integers are involved, so it's not always a signedness
issue. "Integer underflow" is occasionally used to describe array index errors in which the index is
negative.
Common Consequences
CWE Version 4.14
CWE-191: Integer Underflow (Wrap or Wraparound)
CWE-191: Integer Underflow (Wrap or Wraparound)