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.
-
An incorrect size calculation or missing bounds check in the encoder's variance calculation writes beyond the allocated buffer.
Seen in 1 report
-
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
-
An index was checked only for being non-negative, not for an upper bound, before indexing an array.
Seen in 1 report
-
$7,500 Critical
-
-
An initialisation path unconditionally overwrites an existing object while other code still holds raw pointers to its internals.
Seen in 1 report
-
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
-
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
-
An instruction is given a load-only alias set even though resolve hooks it triggers can define properties and reallocate slots.
-
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
-
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
-
An integer overflow in a bitmap object's reference counter led to a use-after-free.
-
An integer overflow in a heap allocation size calculation produces a smaller buffer than required.
Seen in 1 report
-
An integer overflow in escape character counting for a regular expression's source.
Seen in 1 report
-
$7,000 High
-
-
An integer overflow in literal run length handling was not validated before being used to move the write pointer.
Seen in 1 report
-
An integer overflow in request parsing where input length or count values are not validated before use.
Seen in 1 report
-
An integer overflow in the allocation size calculation combined with an unchecked copy leads to a buffer overflow.
-
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
-
An integer overflow in the bounds check when the precision value makes the sum exceed the maximum signed 32-bit integer.
-
An integer overflow in the buffer size calculation led to a heap overflow when copying a larger amount of data.
-
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.
-
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
-
An integer overflow in the capacity calculation when expanding the literal buffer led to a smaller allocation than needed.
Seen in 1 report
-
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
-
An integer overflow in the loop condition when the block length was 4 made the loop counter underflow.
-
An integer overflow in the PNG parser's output buffer size calculation led to a heap overflow.
-
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
-
An integer overflow occurred when calculating a buffer size before allocation.
Seen in 1 report
-
An integer overflow or wraparound is not handled safely, letting a privilege check be bypassed.
Seen in 1 report
-
An integer overflow or wraparound when processing a server response.
Seen in 1 report
-
An integer overflow when adding to a 32-bit load offset produces a negative offset used without a bounds check.
Seen in 1 report
-
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
-
An integer overflow when multiplying the file-supplied string count by the pointer size produces an undersized allocation.
Seen in 1 report
-
An integer overflow when summing unpack stream counts across folders leads to an undersized allocation.
Seen in 1 report
-
An integer sign extension error in a size comparison let a loop write beyond the allocated buffer.
Seen in 1 report
-
An integer underflow in the CDATA length calculation produced a huge unsigned size used in a copy.
Seen in 1 report
-
An integer underflow in the legacy parameter parsing function bypassed a length check and allowed an out-of-bounds write.
-
An integer underflow in the loop condition passes a huge size to the copy routine.
Seen in 1 report
-
An integer underflow occurred when subtracting the stack base from an attacker-controlled stack pointer without checking the ordering.
Seen in 1 report
-
An integer underflow when calculating a multipart field length led to a buffer overflow in a memory copy.
Seen in 1 report
-
An integer underflow when parsing crafted file data leads to an out-of-bounds write.
-
An integer underflow when processing IPv6 packets leads to a buffer overflow in the TCP/IP stack.
-
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
-
An invalid pixelData buffer reference was passed to the D3D11 update call.
Seen in 1 report
-
An invocation object had only its first argument initialised before retaining arguments, so the runtime retained uninitialised heap pointers.
Seen in 1 report
-
An IO-thread handler reaches UI-thread-only structures and returns a bare pointer without a reference.
Seen in 1 report
-
An item allocated from an arena is freed with the general-purpose deallocator when a second allocation fails.
Seen in 1 report
-
An iterator into an unordered map was held across a recursive call that could insert again and rehash the map.
Seen in 1 report
-
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
-
An LRU cache evicts entries without checking whether an in-flight render pass still holds a reference.
Seen in 1 report
-
An object index was used to fetch from the object table without verifying the entry was the expected object type.
Seen in 1 report
-
An object is dereferenced without checking it is still valid, giving a use-after-free.