CWE-190: Integer Overflow or Wraparound
9 real-world CVEs classified as CWE-190: Integer Overflow or Wraparound. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2023-32434high 7.82023
Operation Triangulation: XNU memory-entry integer overflow
A wrapping sum in mach_make_memory_entry_internal accepts an enormous child memory entry as if it fit inside its parent, enabling out-of-range mappings from a privileged memory region.
- CVE-2023-21716critical 9.82023
Microsoft Word RTF font-table integer overflow
More than 32,760 RTF font records drive signed 16-bit parser state through a wrapped address calculation, turning the next font-table store into an out-of-bounds heap write.
- CVE-2021-30860high 7.82021
FORCEDENTRY: JBIG2 integer overflow in Apple CoreGraphics
A crafted JBIG2 stream makes a 32-bit symbol count wrap to a small value, so an undersized heap buffer is overrun with the full run of attacker-referenced bitmap pointers.
- CVE-2021-33909high 7.82021
Sequoia: size_t-to-int truncation in the Linux kernel seq_file path helper
A path buffer size held as a size_t is passed into an int length parameter; a buffer over 2GB narrows to a negative int, defeats a bounds guard, and drives a fixed out-of-bounds write below the kernel buffer.
- CVE-2020-16040medium 6.52020
Chrome V8: Word32 truncation receives an unsound Signed32 promise
TurboFan's SimplifiedLowering phase marked an additive result as Signed32 even when it deliberately relied on Word32 truncation instead of checking signed overflow, allowing later optimization to trust a range the runtime value could violate.
- CVE-2020-0796critical 10.02020
SMBGhost: Windows SMBv3 compression integer overflow
An unchecked 32-bit addition in the SMB 3.1.1 compression path can allocate a wrapped-small buffer before decompression writes the attacker-declared output into it.
- CVE-2019-11477high 7.52019
SACK Panic TCP segment-count overflow
Crafted TCP SACK processing coalesced more than 65,535 tiny segments into a socket buffer, wrapping a 16-bit count and reaching a kernel panic assertion.
- CVE-2017-0144high 8.12017
Windows SMBv1 FEA-list integer truncation pool overflow (EternalBlue, CVE-2017-0144)
In SMBv1's OS/2 FEA-list conversion, a 32-bit list size is tracked in a 16-bit field, so a size just over 0xFFFF truncates and the non-paged-pool buffer is allocated too small for the data copied into it. EternalBlue, an Equation Group tool leaked by The Shadow Brokers, weaponized this and powered WannaCry and NotPetya, the most consequential SMB exploit in history.
- CVE-2015-1538critical 10.02015
Stagefright: libstagefright sample-table entry-count integer overflow
A media sample-table atom carries a 32-bit entry count; a nearby size check and the array allocation both multiply that count by the entry size, so a huge count wraps 32-bit arithmetic and a tiny buffer is allocated, then filled far past its end.