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.
-
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
-
Validation checks only public usage while the view inherits internal usage flags.
Seen in 1 report
-
Validation compared two attacker-controlled size fields against each other instead of against the physical record boundary.
Seen in 1 report
-
Validation did not enforce an overflow-safe logical extent for variation delta sets on 32-bit builds.
Seen in 1 report
-
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
-
Validation state was lost across incremental decode resumes and the luma height was used for chroma plane slices.
Seen in 1 report
-
Validation uses the upload format while the row pitch calculation uses the internal format.
Seen in 1 report
-
Varint decoding loops write each byte into a fixed-size stack buffer without checking the buffer length.
Seen in 1 report
-
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
-
Whitespace-only text nodes that bypassed dictionary interning were later assumed to be dictionary-backed and aliased directly.
Seen in 1 report
-
Width and height from the bitmap header are multiplied without an overflow check, so a small buffer is allocated and then overrun.
-
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
-
Width multiplied by four in a 32-bit calculation without overflow check, wrapping the allocation to a small value.
Seen in 1 report
-
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
-
Width, pitch and height are multiplied without checking for integer overflow, so an oversized image yields a tiny allocation.
Seen in 1 report
-
Window size values received from a proxy are not checked or limited, allowing integer overflow or excessive allocation.
Seen in 1 report
-
Windows GDI mishandles objects in memory when processing specially crafted objects.
Seen in 1 report