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.
-
A 64-bit size calculation is stored in a 32-bit signed integer, truncating it and causing an undersized allocation before a loop writes the full channel count.
Seen in 1 report
-
A 64-bit size field was truncated to 32 bits when mapped by a 32-bit process, so bounds checks against the full size were wrong.
-
A 64-bit size is passed to an allocation function that takes a 32-bit size, so large lengths are silently truncated before allocation.
-
A 64-bit size is truncated to 32 bits for buffer allocation but the full size is used for the write.
Seen in 1 report
-
A 64-bit to 32-bit truncation recorded large vertex buffer sizes as zero, disabling the robustness clamp.
Seen in 1 report
-
A background media thread notifies an event source after the owning decoder state machine has been destroyed.
Seen in 1 report
-
A bad pointer or corrupted value reaches the class-variable hash insertion path, so the hash table pointer is invalid.
Seen in 1 report
-
$800 Medium
-
-
A bare Objective-C pointer to the download task is stored without memory protection, and the pause method returns early when already stopped, leaving a dangling pointer.
Seen in 1 report
-
A bare pointer to a dialog delegate is held across a modal call that can run a nested loop and destroy the widget.
Seen in 1 report
-
A bare pointer to the gesture event helper was used across loop iterations without checking whether a synchronous handler had destroyed it.
Seen in 1 report
-
A bare reference to a popup row view is held across a call that can synchronously pump the Windows message loop.
Seen in 1 report
-
A bare window pointer is held on the stack and reused after a synchronous dispatch can destroy the window, and a completion closure captures a raw previous-focused-window pointer.
Seen in 1 report
-
A binary value is trusted to be valid and only checked with a debug assertion, so a short blob reads out of bounds.
Seen in 1 report
-
$3,000 Medium
-
-
A BIND_ACK packet is processed in an unexpected state, so the packet buffer is freed during event handling and then freed again.
Seen in 1 report
-
A bit depth of zero from the file produces a tiny allocation that the processing loop then overruns.
Seen in 1 report
-
A bitwise AND is used instead of OR when setting the low bit of a forwarding pointer, corrupting the out-of-line header word.
Seen in 1 report
-
A bitwise AND was used where OR was intended when tagging a forwarding pointer, so the tag bit was always cleared and the out-of-line data block was misclassified as inline.
Seen in 1 report
-
A blending channel count from the file controlled a copy loop and a signed decrement counter was converted to unsigned.
Seen in 1 report
-
A block count field from a file record is used as a loop counter without validation.
Seen in 1 report
-
A block number read from disk is used as an index into a heap bitmap without a bounds check.
Seen in 1 report
-
A borrowed pointer into a temporary mapping is handed to asynchronous code that outlives the mapping.
-
A boundary check is off by one when handling file-system data.
-
A bounded concatenation copies an attacker-controlled path into a small stack buffer without checking the path length.
-
A bounded string copy into a fixed-size global buffer without checking the length.
Seen in 1 report
-
A bounds check adds an untrusted size to a pointer without guarding against integer overflow.
Seen in 1 report
-
A bounds check in the VM's value move routine is missing or wrong, so a stack operation writes past the allocated value array.
Seen in 1 report
-
A bounds check omits the lower bound, allowing a negative index.
Seen in 1 report
-
A bounds check on the mapped buffer size is missing for VLAN-tagged frames.
-
A bounds check uses pointer addition that can overflow, so a large length value wraps around and passes the check.
Seen in 1 report
-
A bounds check uses the wrong comparison so a value equal to the buffer size is accepted.
Seen in 1 report
-
A bounds check was added for answer records but not for PTR records in the additional section.
Seen in 1 report
-
A bounds error in the floating point string parser wrote beyond the allocated heap buffer.
Seen in 1 report
-
A bounds-checking flaw in the USB handling code allowed an out-of-bounds read.
-
A buffer attribute function collapsed multiple plane descriptors onto the first descriptor but copied per-plane offsets without checking them against its size.
Seen in 1 report
-
A buffer backing a draw call is freed before the driver finishes copying from it, likely a race.
Seen in 1 report
-
A buffer created during context loss kept a zero GL buffer ID and the pixel buffer paths never checked the object was valid.
Seen in 1 report
-
A buffer is allocated from an attacker-controlled length but copied into using sizes derived from unsynchronisation pattern indices without checking the copy fits.
Seen in 1 report
-
A buffer is allocated using one record's size but filled using a different record's size.
Seen in 1 report
-
A buffer is allocated with one size variable but filled using a different length variable.
Seen in 1 report
-
A buffer is swapped for a smaller one mid-read but the stored length is not reset.
Seen in 1 report
-
A buffer or string was used before being fully initialised, so strlen read uninitialised bytes.
-
A buffer overflow in environment variable parsing corrupts the link map structure.
-
A buffer overflow in parsing data received from the Mobile Adapter, specifically email or HTTP responses, allowed control flow hijacking.
Seen in 1 report
-
A buffer overflow in the accessory updater component.
-
A buffer pointer was freed but not reset, so later calls reused and freed it again.
Seen in 1 report
-
A buffer size calculated from a file value without a null check leads to a one-byte allocation.
Seen in 1 report
-
A buffer size calculation error in a client processing server responses is a distinct root cause.
Seen in 1 report
-
A buffer size calculation overflows because user-supplied data is not validated before allocation.
-
A buffer size check used less-than where less-than-or-equal was needed for the null terminator.
Seen in 1 report
-
A buffer size is calculated from an attacker-controlled length field without checking for integer overflow.