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.
-
The allocator's rounding step adds to the total size without an overflow check, so a near-maximum length wraps to a small allocation while the copy uses the original length.
Seen in 1 report
-
The alpha plane's stride and dimensions are discarded and the luma plane's values used instead, with no validation of alpha dimensions in the call chain.
Seen in 1 report
-
The Alt-Svc parser copied a user-controlled date string into a fixed-size stack buffer without first checking that the string's length was within the buffer's capacity.
Seen in 1 report
-
The AMSI context is heap-allocated with a fixed magic value, and a failed scan is treated as not malicious.
Seen in 1 report
-
The apiuser parameter is handled without properly initialising memory before it is used.
Seen in 1 report
-
The App object parser trusted a size or offset from the input and read beyond the allocated buffer.
-
The app.response method does not validate the length or bounds of user-supplied data before reading it.
Seen in 1 report
-
The application does not handle a large number of data sources when loading the page.
Seen in 1 report
-
The application does not validate a pointer to an annotation object after it has been freed.
Seen in 1 report
-
The application frees an object but continues to reference it while processing the document.
-
The argument stack was not extended before writing the result, so the write landed past the allocated block.
Seen in 1 report
-
The ARM64 simulator's load/store handling does not validate the computed address before reading, so a crafted WebAssembly module can make it read from an unmapped address.
Seen in 1 report
-
The ARMv7 memcpy used signed branch instructions when comparing the size parameter instead of unsigned equivalents.
Seen in 1 report
-
The array byte size was computed as a 32-bit multiplication of element count and stride, so it wrapped and no longer matched the stored element count.
Seen in 1 report
-
The array growth calculation multiplies the allocation count by the pointer size without checking for integer overflow.
Seen in 1 report
-
The array iterator implementation did not properly validate the type of object it was handling, leading to a type confusion.
Seen in 1 report
-
The array length replacement produces a single-value node that the SPIR-V path treats as a matrix constant, reading one value per column.
Seen in 1 report
-
$16,000 Critical
-
-
The array offset was only reset on the success path, so an exception unwound past the reset and left a stale offset.
-
The array subtype check returns true when mutability differs instead of enforcing invariance.
Seen in 1 report
-
The Array.includes implementation uses a strict less-than check against the maximum unsigned 32-bit value instead of less-than-or-equal, taking a slow path that allocates excessively.
Seen in 1 report
-
The ArrayBuffer given to script was built over memory owned by the encoded frame, and the destructor ignored a failed detach, so the native owner freed the backing store anyway.
-
The assembler did not mark certain element stores as initialising, so store-store elimination could delete stores and leave uninitialised memory visible to the garbage collector.
Seen in 1 report
-
The assignment code generator returns instead of breaking for a method call on the left-hand side, so the value register is not pushed.
Seen in 1 report
-
The atomic move flag suppressed normal subframe teardown while script during the move left a stale frame pointer and zero subframe count.
Seen in 1 report
-
The attacker-controlled opcode data size was used as the length for memory copies into fixed-size heap and stack buffers without validation.
Seen in 1 report
-
The attacker-controlled token length is passed as the copy limit instead of the destination buffer size.
-
The attribute setter calls its internal setter before attaching the new attribute, and that call can re-enter, leaving two attribute nodes sharing one owner element.
Seen in 1 report
-
The audio data array size was not checked against channel count times frame count before being passed to a raw-pointer interleaved copy.
Seen in 1 report
-
$36,000 High
-
-
The authentication tag length was not validated before reading it.
Seen in 1 report
-
The authentication trailer pointer is calculated from client-supplied frag_len and auth_len without validating it stays within the packet buffer.
Seen in 1 report
-
The authentication trailer pointer is calculated without bounds checking, so it can point before the start of the packet buffer.
Seen in 1 report
-
The Authorization header is base64-decoded into a fixed-size heap buffer without checking the decoded length.
Seen in 1 report
-
The autocomplete controller held a reference to an input element that was removed and garbage-collected during event handling.
Seen in 1 report
-
The autogeneration scripts mapping internal formats to storage formats and load functions were out of sync, so buffer size and write size disagreed.
Seen in 1 report
-
The backend applied the texture offset directly to subsampled chroma planes without dividing by the subsampling factor.
Seen in 1 report
-
The backend read the old buffer size before the GL layer updated it, and a recycled buffer kept a stale dirty flag.
Seen in 1 report
-
The background colour index was used to index fixed-size palette arrays with no bounds check.
Seen in 1 report
-
The background linking task captured raw references to the context's capabilities, and context destruction did not wait for unbound linking programs.
Seen in 1 report
-
The backing factory's support check returned true without reading the requested size, and no earlier IPC layer enforced a maximum dimension.
Seen in 1 report
-
The base vertex parameter is declared unsigned instead of signed in the Metal command encoder, so negative values are zero-extended.
Seen in 1 report
-
The base64 decoding function had no output size limit and wrote past the stack buffer.
Seen in 1 report
-
The baseline compiler emitted array.fill with no pre-write barrier, so overwriting existing reference slots never informed the incremental GC of the old value.
Seen in 1 report
-
The baseline compiler generates code that jumps to an invalid address for this instruction combination.
Seen in 1 report
-
The BCPEncode processing function incremented the write pointer beyond the buffer limit when an escaped character was written at the end of the buffer.
Seen in 1 report
-
The bidding signals interface does not check that priority vector values are finite, so a not-a-number value breaks the strict weak ordering assumed by sorting.
Seen in 1 report
-
The binary-output check only inspects a limited leading portion of the response, so padding pushes binary content past the inspected window.
Seen in 1 report
-
The binding conversion returns a cached wrapper without checking whether the underlying buffer is shared, and the debug-only check is disabled in release builds.
Seen in 1 report
-
The binding object was garbage collected but its raw Mojo receiver was not unbound, so IPC messages could still be dispatched to it.
Seen in 1 report
-
The bindings generator disabled backing-store retention for a direct-call method, so a valueOf callback could detach typed arrays mid-call.
Seen in 1 report
-
The bindings generator disables detachment checks for span arguments, assuming script cannot run during argument conversion.
Seen in 1 report