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 cycle collector frees an element while an intersection observer still holds a reference, so a later call reads the freed object.
Seen in 1 report
-
A dangling pointer is used when the page info bubble is destroyed.
Seen in 1 report
-
$2,000 Medium
-
-
A dataset search result is cast to a sequence type without verifying the actual object type.
-
A debug-only assertion checked the chunk length against the buffer size, so release builds had no bounds check before the copy.
Seen in 1 report
-
A debug-only assertion that the pending input queue is empty is compiled out in release builds, and the queue is not cleared before reconfiguring.
Seen in 1 report
-
A debug-only check that is removed in release builds allows re-initialisation, and the failure path does not clear a dangling pointer in the geometry change handler.
Seen in 1 report
-
A debug-only equality check is compiled out in release builds, so an attacker-controlled frame count is not validated against the destination buffer.
Seen in 1 report
-
A debug-only type assertion let a non-string-backed token reach a string accessor in release builds.
Seen in 1 report
-
A declarative tool pointer was stored as an untraced raw pointer and a lifecycle edge case skipped unregistering it, so iteration dereferenced freed memory.
Seen in 1 report
-
$10,000 High
-
-
A decode loop repeated bounds checks only on the first iteration, letting the output pointer advance past the buffer.
Seen in 1 report
-
$7,500 Critical
-
-
A decoded query string is copied into a fixed global buffer and then extra strings are appended without checking the total length.
Seen in 1 report
-
A decompression routine did not verify the output buffer had room before writing inflated data.
Seen in 1 report
-
A default constructor allocates a backing store that is not traced during garbage collection, leading to a double-free when the bucket is reused.
Seen in 1 report
-
A deferred lambda captured a member by reference and ran after the global lock was released, so another thread could destroy the object first.
Seen in 1 report
-
A deferred tail-call lambda captures a member by reference, but the parent object can be destroyed by another thread before the lambda runs.
Seen in 1 report
-
A delegate callback can synchronously destroy the dispatcher, and member fields are used afterwards without a check.
Seen in 1 report
-
A delegate destructor synchronously re-enters the parent controller after the visibility controller member has already been destroyed, due to member declaration order.
Seen in 1 report
-
A deleted texture stayed in the active texture cache and was synced on a later draw call.
Seen in 1 report
-
A deprecated lazy accessor stored a raw pointer to a stack-local object as V8 callback data, and a microtask checkpoint during context recycling could invoke it after the object went out of scope.
Seen in 1 report
-
A destination address is computed from a raster size and position without checking it lies within the allocation.
Seen in 1 report
-
A destination field is not null-terminated because a longer string is copied into a smaller buffer.
Seen in 1 report
-
A destructor does not detach an ArrayBuffer created over native memory, leaving JavaScript pointing at freed memory.
Seen in 1 report
-
A destructor unregisters a callback from a shared registry on one thread while another may be invoking it.
Seen in 1 report
-
A device is removed from one map but not another, leaving a stale entry.
Seen in 1 report
-
A digest context finish function returns success without setting the output pointer when no content was seen, and the caller does not check.
Seen in 1 report
-
A DNS response field is copied into a fixed-size heap buffer without a bounds check, allowing a one-byte overwrite.
Seen in 1 report
-
A DNS value from an XML cache was passed to a formatted string copy into a fixed 1024-byte stack buffer with no length check.
Seen in 1 report
-
A document type node is released by the cycle collector while a reference is still held.
Seen in 1 report
-
Critical
-
-
A DOM API that can run page JavaScript synchronously is called without re-checking that objects are still alive.
Seen in 1 report
-
A DOMNodeRemoved event fired before insertion finished, and the listener freed the node being inserted.
Seen in 1 report
-
A double free when handling a crafted RTF file.
Seen in 1 report
-
A double free when parsing fails after an alternation, integer overflows in compiled pattern size, and overflow of internal IDs with many repeats.
Seen in 1 report
-
A double from web content was cast directly to a signed integer and then to an unsigned 64-bit integer without checking it was non-negative and in range.
Seen in 1 report
-
A driver copies to a user-supplied destination without validating the destination buffer size.
Seen in 1 report
-
A driver exposed IOCTL handlers without access control and passed user arguments straight to a memory copy.
-
A drop callback runs synchronously and can destroy the client, but the caller does not re-check liveness.
Seen in 1 report
-
A dword from the file is used unchecked as a loop repeat count for repeated copies.
Seen in 1 report
-
A dynamic array was initialised with the size of the wrong structure type, so a later copy overflowed the destination.
Seen in 1 report
-
A failed attribute lookup leaves the identifier at zero, so the value buffer is freed on the error path and again by the caller.
Seen in 1 report
-
A failed buffer allocation did not roll back the buffer pointer and allocation offset, and the failure was reported as a recoverable error rather than context loss.
Seen in 1 report
-
A failed memory allocation was not checked and a write followed through a null pointer with an attacker-controlled offset.
Seen in 1 report
-
A failed probe frees the context without nulling the pointer, and teardown frees it again.
Seen in 1 report
-
A failed reallocation leaves the framebuffer completeness cache stale.
Seen in 1 report
-
A failed reallocation returns a null pointer that is not handled before the attribute array is used.
-
A fallback buffer was allocated once and never resized during dynamic resolution changes, so a stale small buffer was used for a larger frame.
Seen in 1 report
-
A field in the signature object is not initialised before being used as the this pointer.
Seen in 1 report
-
A field removal method treated an empty string as a request to remove all fields and free their memory, which was then reused.
Seen in 1 report
-
A file stream is closed and freed early in parsing and then closed again later.
Seen in 1 report
-
A file-controlled signal length is used without validation, so adding one wraps to zero and a tiny buffer is allocated.
-
A file-provided size value was used in a memory copy without validating it against the destination buffer size.
Seen in 1 report