CWE-191 — Integer Underflow (Wrap or Wraparound)
CWE-191: Integer Underflow (Wrap or Wraparound)
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Draft |
| Likelihood of exploit | — |
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.
This can happen in signed and unsigned cases.
Common consequences
- Availability: DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Instability
- Integrity: Modify Memory
- Confidentiality, Availability, Access Control: Execute Unauthorized Code or Commands, Bypass Protection Mechanism
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/191.html
- CWE list: https://cwe.mitre.org/data/index.html