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.
-
File-backed pages spliced into a receive queue before the socket switches mode are decrypted in place, so the keystream writes into the page cache.
Seen in 1 report
-
Firmware update component copied an FTP URL path into a fixed-length stack buffer without validating its length.
-
Fixed stack buffer sizes assume fewer points and verbs per clipped piece than a piece spanning both clip edges needs.
Seen in 1 report
-
Fixed-size copies use the destination size instead of the actual source length.
Seen in 1 report
-
Form key and value strings are copied into fixed-size stack buffers using the calculated length rather than the buffer size.
-
Format event handler frees a text field object but a stale reference is kept and reused.
Seen in 1 report
-
Frame and channel counts are converted to a 32-bit buffer size without bounds validation or safe arithmetic.
Seen in 1 report
-
Freed pointers were not set to NULL, so they still referenced freed chunks that could be reused.
Seen in 1 report
-
Freeing an IPv4 options object with kfree() instead of kfree_rcu(), so reclamation did not wait for readers inside an RCU read-side critical section.
Seen in 1 report
-
Front-end validation bounds the destination level against global limits rather than the texture's allocated levels, and the backend relies on a debug-only assertion.
Seen in 1 report
-
Front-end validation only rejected structs containing samplers for assignment and initialisation, so equality operators slipped through.
Seen in 1 report
-
Frontend validation read window dimensions into 32-bit integers without limiting their product, so downstream 64-bit arithmetic overflowed.
Seen in 1 report
-
$43,000 Critical
-
-
Getters are marked pure even though they flush layout and can run script.
-
GLB parser copies data into a heap buffer without checking length.
-
GLES3 context objects were freed without synchronising with concurrent GL state-change calls.
Seen in 1 report
-
$32,000 Critical
-
-
Global context freed on shutdown while other objects can still be used.
Seen in 1 report
-
Glyph positioning keeps a pointer to a text run that a style-change reflow clears mid-layout, so it reads freed memory.
Seen in 1 report
-
GPU-side validation for slice does not restrict the input rank to be non-scalar, so a rank-0 input reaches the backend.
Seen in 1 report
-
Grouped convolution validation checked input channels against groups but not output channels, and the reference kernel used truncated integer division for filters per group.
Seen in 1 report
-
Guest memory isolation fails under nested virtualisation on AMD processors.
-
Guest-supplied data is used in a buffer size calculation without a length check, allowing an integer overflow.
-
Hand-written inline assembly clobber lists omit a non-volatile register, breaking the calling convention.
Seen in 1 report
-
Handler uses an object without first confirming it still exists.
-
Handlers called the dialog close and then dereferenced the request pointer without checking whether the controller itself was synchronously destroyed.
Seen in 1 report
-
Handlers were only detached from the context on destruction, not on garbage collection, so they could still reach a collected context.
Seen in 1 report
-
Handling of break inside a lambda leaves the stack pointer in a bad position so the break opcode reads before the stack buffer.
Seen in 1 report
-
$800 Info
-
-
Handshake or protocol messages are not validated for order or timing, leading to a memory access error.
Seen in 1 report
-
Header parser copied an unbounded header string into a fixed-size stack buffer without checking its length.
Seen in 1 report
-
Header removal happens after a callback that can run synchronously and destroy the object owning the headers, leaving a dangling reference.
Seen in 1 report
-
Heap buffer overflow in packet processing code where the write length is not checked against the allocation.
Seen in 1 report
-
Heap buffer overflow in the NTFS or ReFS driver when parsing a crafted filesystem image.
-
Heap buffer overflow in the push notification component, with no specific coding mistake described.
Seen in 1 report
-
Heap buffer overflow when processing a crafted file.
Seen in 1 report
-
Heap corruption in the IOBase readline implementation.
Seen in 1 report
-
Heap corruption in the table-reading function when processing a malformed font file.
Seen in 1 report
-
Heap overflow in the ink-to-text conversion code.
Seen in 1 report
-
Heap overflow when parsing a crafted media file.
Seen in 1 report
-
HEVC decoder fails to validate an object's existence before using it when parsing MKV files.
-
Hitting the recursion limit leaves the process in an irregular state, and the caught exception lets execution continue into an invalid pointer dereference.
Seen in 1 report
-
HSTS sharing was implemented without mutexes or thread locks.
Seen in 1 report
-
HTTP request handling writing data into a buffer smaller than the data size.
-
Huffman code lengths were not validated before indexing a fixed 64-byte count array.
Seen in 1 report
-
Image dimensions are not validated before memory is allocated for conversion.
Seen in 1 report
-
Implicit conversion of a size_t length to a signed int made the remaining length negative and caused an oversized copy into a one-byte stack buffer.
Seen in 1 report
-
$1,500 High
-
-
Improper bound checking when Windows Address Book processed vcard files led to memory corruption.
Seen in 1 report
-
Improper handling of memory objects when processing JavaScript, leading to an out-of-bounds write.
-
Improper handling of objects in memory allows a protected file to be overwritten or modified.
Seen in 1 report
-
Improper handling of objects in memory in media processing.
Seen in 1 report
-
Improper handling of objects in memory in the database engine.
-
Improper handling of objects in memory in Windows Error Reporting led to privilege escalation.
Seen in 1 report