CWE-680 · Słabość
Integer Overflow to Buffer Overflow
- Abstrakcja
- Złożona
- Status
- Szkic
- Dodano
- 11 kwietnia 2008
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.
Skutki
Integrity, Availability, Confidentiality
Modify Memory; DoS: Crash, Exit, or Restart; Execute Unauthorized Code or Commands
Przykłady podatności
- CVE-2021-43537 Chain: in a web browser, an unsigned 64-bit integer is forcibly cast to a 32-bit integer (CWE-681) and potentially leading to an integer overflow (CWE-190). If an integer overflow occurs, this can cause heap memory corruption (CWE-122)
- CVE-2017-1000121 chain: unchecked message size metadata allows integer overflow (CWE-190) leading to buffer overflow (CWE-119).
Zaczyna się od
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Memory-Unsafe, C, C++
Źródła
Wpis z katalogu CWE 4.20.