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 3,801 to 3,817 of 3,817
  1. Validation checked that each buffer fitted in the shared heap but not that the copy length was no larger than the destination.

    Seen in 1 report
  2. Validation checks only public usage while the view inherits internal usage flags.

    Seen in 1 report
  3. Validation compared two attacker-controlled size fields against each other instead of against the physical record boundary.

    Seen in 1 report
  4. Validation did not enforce an overflow-safe logical extent for variation delta sets on 32-bit builds.

    Seen in 1 report
  5. Validation metadata is de-duplicated per unique bundle while the replay counter increments for every indirect draw, so repeated bundles index beyond the side table.

    Seen in 1 report
  6. Validation state was lost across incremental decode resumes and the luma height was used for chroma plane slices.

    Seen in 1 report
  7. Validation uses the upload format while the row pitch calculation uses the internal format.

    Seen in 1 report
  8. Varint decoding loops write each byte into a fixed-size stack buffer without checking the buffer length.

    Seen in 1 report
  9. Waiting on a file handle that remains signalled from a previous operation returns early before I/O cancellation completes, leaving a stack-allocated structure stale.

    Seen in 1 report
  10. Whitespace-only text nodes that bypassed dictionary interning were later assumed to be dictionary-backed and aliased directly.

    Seen in 1 report
  11. Width and height from the bitmap header are multiplied without an overflow check, so a small buffer is allocated and then overrun.

    Seen in 1 report
  12. Width is multiplied by height without checking for signed 32-bit overflow before the result is used as a row width.

    Seen in 1 report
  13. Width multiplied by four in a 32-bit calculation without overflow check, wrapping the allocation to a small value.

    Seen in 1 report
  14. Width times bytes per pixel is computed without overflow checking, so a small buffer is allocated while the width is used unchecked in the write loop.

    Seen in 1 report
  15. Width, pitch and height are multiplied without checking for integer overflow, so an oversized image yields a tiny allocation.

    Seen in 1 report
  16. Window size values received from a proxy are not checked or limited, allowing integer overflow or excessive allocation.

    Seen in 1 report
  17. Windows GDI mishandles objects in memory when processing specially crafted objects.

    Seen in 1 report