CWE - 190 : Integer Overflow or Wraparound
CWE Definition
|
http://cwe.mitre.org/data/definitions/190.html
|
Number of vulnerabilities:
|
1777
|
Description
|
The software performs a calculation that can produce an integer
overflow or wraparound, when the logic assumes that the resulting value will
always be larger than the original value. This can introduce other weaknesses
when the calculation is used for resource management or execution
control.An integer overflow or wraparound occurs when an integer value is
incremented to a value that is too large to store in the associated
representation. When this occurs, the value may wrap to become a very small
or negative number. While this may be intended behavior in circumstances
that rely on wrapping, it can have security consequences if the wrap is
unexpected. This is especially the case if the integer overflow can be
triggered using user-supplied inputs. This becomes security-critical when
the result is used to control looping, make a security decision, or
determine the offset or size in behaviors such as memory allocation,
copying, concatenation, etc. |
Background Details
|
|
Other Notes
|
|
|
|
Warning! CWE definitions are provided as a quick reference. They are
not complete and may not be up to date!
You must visit
http://cwe.mitre.org/ for a complete list of CWE entries
and for more details.