Integer Overflow
Also called integer wraparound.
Arithmetic that exceeds an integer's range and wraps to a wrong value.
What it is
A bug where an arithmetic operation produces a result too large (or too small) for the integer type, causing it to wrap around. The unexpected value often undermines a size or bounds calculation made later.
Why it matters
Integer overflows rarely crash on their own but frequently set up buffer overflows by producing a too-small allocation. They are a classic root cause that auditors trace back from a downstream memory-corruption symptom.
In practice
Multiplying a user-controlled count by an element size overflows to a tiny number, so a small buffer is allocated and then written far past its end.
What to look for
- Size calculations that multiply or add input values.
- Allocations that come out smaller than the data copied.
- Signed and unsigned mix ups in comparisons.
Common mistake
Checking the result after it wraps. Check before the arithmetic happens.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Risk Scoring
Score a vulnerability with CVSS v3.1, or an incident across five dimensions, and see the reasoning behind each number.
- Map and Score
Map real procedures to ATT&CK techniques, then pick the CVSS v3.1 metrics for real vulnerabilities.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Nessus Commercial
A vulnerability scanner that checks hosts for known flaws and missing patches.
-
Qualys VMDR Commercial
A cloud platform that scans assets and ranks vulnerabilities for patching.
-
OpenVAS Open source
An open source vulnerability scanner with a large set of checks.
-
Nuclei Open source
Runs community templates that test for specific, newly published flaws.
Read next
- Buffer Overflow: Writing past the end of a buffer to corrupt adjacent memory.
- Off-by-One Error: A boundary mistake of one element that corrupts adjacent memory.
- Heap Overflow: Overflowing a heap allocation to corrupt adjacent chunks or metadata.