Skip to content

In-depth lesson · Memory corruption

Root causes

Every point the Memory corruption reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1,801 to 1,850 of 3,817
  1. An incorrect size calculation or missing bounds check in the encoder's variance calculation writes beyond the allocated buffer.

    Seen in 1 report
  2. An index difference is subtracted from an attacker-controlled sequence length without checking it is large enough, so the unsigned result underflows.

    Seen in 1 report
  3. An index was checked only for being non-negative, not for an upper bound, before indexing an array.

    Seen in 1 report
  4. An initialisation path unconditionally overwrites an existing object while other code still holds raw pointers to its internals.

    Seen in 1 report
  5. An insert function takes ownership and frees the object on validation failure without telling the caller, which keeps a dangling pointer.

    Seen in 1 report
  6. An instance count is hardcoded to 1 during vertex stream allocation and the buffer size is left out of the conversion buffer cache key, so buffers are undersized.

    Seen in 1 report
  7. An instruction is given a load-only alias set even though resolve hooks it triggers can define properties and reallocate slots.

    Seen in 1 report
  8. An int value is assigned to an 8-bit field without a range check, silently truncating values of 256 or more.

    Seen in 1 report
  9. An int64 is cast to an enum without a bounds check and a switch without a default is compiled to a jump table.

    Seen in 1 report
  10. An integer overflow in a bitmap object's reference counter led to a use-after-free.

    Seen in 1 report
  11. An integer overflow in a heap allocation size calculation produces a smaller buffer than required.

    Seen in 1 report
  12. An integer overflow in escape character counting for a regular expression's source.

    Seen in 1 report
  13. An integer overflow in literal run length handling was not validated before being used to move the write pointer.

    Seen in 1 report
  14. An integer overflow in request parsing where input length or count values are not validated before use.

    Seen in 1 report
  15. An integer overflow in the allocation size calculation combined with an unchecked copy leads to a buffer overflow.

    Seen in 1 report
  16. An integer overflow in the beg plus len check when both values are large makes the condition evaluate incorrectly and allows out-of-bounds access.

    Seen in 1 report
  17. An integer overflow in the bounds check when the precision value makes the sum exceed the maximum signed 32-bit integer.

    Seen in 1 report
  18. An integer overflow in the buffer size calculation led to a heap overflow when copying a larger amount of data.

    Seen in 1 report
  19. An integer overflow in the calculation of RTE_offset + RTE_length bypasses a size check and allows a memcpy to write to an arbitrary offset from a heap buffer.

    Seen in 1 report
  20. An integer overflow in the calculation of the number of parameters for an outline primitive bypasses a size check and leads to an out-of-bounds copy.

    Seen in 1 report
  21. An integer overflow in the capacity calculation when expanding the literal buffer led to a smaller allocation than needed.

    Seen in 1 report
  22. An integer overflow in the length and offset tracking of the update routine wrapped a very large input length and defeated the bounds check.

    Seen in 1 report
  23. An integer overflow in the loop condition when the block length was 4 made the loop counter underflow.

    Seen in 1 report
  24. An integer overflow in the PNG parser's output buffer size calculation led to a heap overflow.

    Seen in 1 report
  25. An integer overflow in the size calculation for the comment pointer array caused under-allocation and an out-of-bounds write.

    Seen in 1 report
  26. An integer overflow occurred when calculating a buffer size before allocation.

    Seen in 1 report
  27. An integer overflow or wraparound is not handled safely, letting a privilege check be bypassed.

    Seen in 1 report
  28. An integer overflow or wraparound when processing a server response.

    Seen in 1 report
  29. An integer overflow when adding to a 32-bit load offset produces a negative offset used without a bounds check.

    Seen in 1 report
  30. An integer overflow when FreeType computes the buffer size for an embedded PNG in the sbix table because the image dimensions exceed the int16 range.

    Seen in 1 report
  31. An integer overflow when multiplying the file-supplied string count by the pointer size produces an undersized allocation.

    Seen in 1 report
  32. An integer overflow when summing unpack stream counts across folders leads to an undersized allocation.

    Seen in 1 report
  33. An integer sign extension error in a size comparison let a loop write beyond the allocated buffer.

    Seen in 1 report
  34. An integer underflow in the CDATA length calculation produced a huge unsigned size used in a copy.

    Seen in 1 report
  35. An integer underflow in the legacy parameter parsing function bypassed a length check and allowed an out-of-bounds write.

    Seen in 1 report
  36. An integer underflow in the loop condition passes a huge size to the copy routine.

    Seen in 1 report
  37. An integer underflow occurred when subtracting the stack base from an attacker-controlled stack pointer without checking the ordering.

    Seen in 1 report
  38. An integer underflow when calculating a multipart field length led to a buffer overflow in a memory copy.

    Seen in 1 report
  39. An integer underflow when parsing crafted file data leads to an out-of-bounds write.

    Seen in 1 report
  40. An integer underflow when processing IPv6 packets leads to a buffer overflow in the TCP/IP stack.

    Seen in 1 report
  41. An internal channel is bound twice under different IDs, so two references exist to one object and closing one leaves a dangling pointer.

    Seen in 1 report
  42. An invalid pixelData buffer reference was passed to the D3D11 update call.

    Seen in 1 report
  43. An invocation object had only its first argument initialised before retaining arguments, so the runtime retained uninitialised heap pointers.

    Seen in 1 report
  44. An IO-thread handler reaches UI-thread-only structures and returns a bare pointer without a reference.

    Seen in 1 report
  45. An item allocated from an arena is freed with the general-purpose deallocator when a second allocation fails.

    Seen in 1 report
  46. An iterator into an unordered map was held across a recursive call that could insert again and rehash the map.

    Seen in 1 report
  47. An iterator to the active streams map is held across a call that can synchronously drain the session and erase all streams.

    Seen in 1 report
  48. An LRU cache evicts entries without checking whether an in-flight render pass still holds a reference.

    Seen in 1 report
  49. An object index was used to fetch from the object table without verifying the entry was the expected object type.

    Seen in 1 report
  50. An object is dereferenced without checking it is still valid, giving a use-after-free.

    Seen in 1 report