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.
-
Cached buffer pointers are not cleared when the corresponding GL binding becomes null, leaving stale driver pointers.
Seen in 1 report
-
$11,000 High
-
-
Cached property-name size is not revalidated after traversing a prototype chain that may include a proxy trap.
-
Cached render pass descriptor dimensions are not reset when the default width or height is zero, so stale large dimensions persist.
Seen in 1 report
-
Caller-supplied buffers are not copied and are read after the caller's lifetime ends.
Seen in 1 report
-
Callers do not use a weak pointer to track the lifetime of the navigation context object, so they dereference a dangling raw pointer after observer notifications may have destroyed it.
Seen in 1 report
-
Capacity times element size is computed in signed 32-bit arithmetic and wraps before the cast.
Seen in 1 report
-
Caret movement does not check whether the selection's frame is still alive after a cycle collection frees it.
Seen in 1 report
-
Catch block offsets are stored in a 28-bit field without validating the offset fits, so large bytecode offsets are silently truncated.
Seen in 1 report
-
Certificate parsing code not validating the contents of an imported certificate.
Seen in 1 report
-
Changing an audio stream's sync group only reconfigures the new group, leaving stale pointers in the old group.
Seen in 1 report
-
Changing an optional content group's state frees an object that is still referenced after the page switch.
Seen in 1 report
-
Chromium's format feature check requires only sampled-image support while ANGLE's also requires linear filtering, so a fallback to a wider format is bound to a smaller allocation.
Seen in 1 report
-
Chunk count computed as a signed multiplication of two attacker-controlled 16-bit values without an overflow check.
Seen in 1 report
-
Class members were declared in an order that destroyed the callback proxy before the stream, so a background thread reached freed memory.
Seen in 1 report
-
Cleanup functions recurse without the depth limit that the read path enforces.
Seen in 1 report
-
Cleanup runs synchronously inside a callback while methods on the same objects are still on the call stack.
Seen in 1 report
-
Clearing a deque adds preserved sizes back without re-inserting their ids.
Seen in 1 report
-
Clearing the sessions map is not re-entrancy safe because destroying a session synchronously erases sibling entries.
Seen in 1 report
-
Client driver failing to validate data returned by the server.
-
Client-supplied SLC triplets were stored in a fixed-size global array without bounds checking.
-
Close methods lack the re-entrancy guard used elsewhere, so an observer can delete the tab mid-move.
Seen in 1 report
-
Closing the TLS layer frees the transfer buffer and restores only the top-level receive callbacks, leaving the BDAT lower-layer callbacks pointing at a function that writes into the freed buffer.
-
Code called a function that could synchronously re-enter and destroy the object, then kept using its own pointer without a liveness check.
Seen in 1 report
-
Code calls attacker-controlled script synchronously and then uses its own object without a weak pointer check.
Seen in 1 report
-
$1,000 High
-
-
Code calls into script-triggering lifecycle work and then dereferences this without checking the object still exists, so a nested loop can free it mid-call.
Seen in 1 report
-
Code calls SetCurrentStep and then accesses controller members without a weak pointer guard, though the call can synchronously destroy the controller.
Seen in 1 report
-
Code does not check whether an object was destroyed during a synchronous call that can spin a nested message loop, leaving a dangling pointer.
Seen in 1 report
-
Code re-read a property from an argument object instead of using the value it had already captured, letting a prototype getter substitute a different object.
Seen in 1 report
-
Code relies on an undefined destruction order of tuple elements.
Seen in 1 report
-
Code used a FrameDestructionObserver object without confirming it still existed.
Seen in 1 report
-
Command parameters were copied into fixed-size stack buffers without validating their length.
-
Connect-only handle not reset when its connection is freed, so a new connection at the same address is adopted.
Seen in 1 report
-
Connection pointers are not cleared when a connection is detached, so stale pointers are used.
Seen in 1 report
-
Constructor validation checks only the top-level type for opaqueness, and the sampler rewrite pass does not update constructor node types.
Seen in 1 report
-
Constructors ignored the return value of Assign, so on allocation failure the destination never took a reference and the source release freed the object.
Seen in 1 report
-
consume() did not reject negative arguments and copy() mishandled an offset larger than the destination length.
Seen in 1 report
-
Context disposal tears down a streaming processor without cancelling or joining the validation worker.
Seen in 1 report
-
$1,000 High
-
-
Control Flow Guard does not correctly validate or handle objects in memory, allowing the protection to be bypassed.
Seen in 1 report
-
Conversion code trusts size or length values from the input file and reads beyond the buffer without checking them.
-
Conversion functions assumed a fixed buffer size instead of checking the actual remaining length before writing converted code points.
Seen in 1 report
-
$1,500 Critical
-
-
Cookie objects are freed without checking whether they were already removed or freed.
-
Copy length computed from attacker-controlled fields and passed to a memory copy without verifying it fits the source buffer.
-
Copy length taken from an attacker-controlled count rather than the number of values actually pushed.
Seen in 1 report
-
Copy length taken from the source string instead of the destination buffer size.
Seen in 1 report
-
$1,500 High
-
-
Copy loops in facility name decompression do not check writes against the allocated buffer size, while clone count and string data come from the file.
Seen in 1 report
-
Copy validation checks a generic range but not the texture's effective base level.
Seen in 1 report
-
Copying data into a fixed-size stack buffer without a bounds check.
Seen in 1 report
-
Cross-thread binding checks only inspect top-level callback parameters and do not recurse into nested bound callbacks, letting a same-thread handle cross the thread boundary.
Seen in 1 report
-
Cyclic stream dependencies are not detected or capped.
Seen in 1 report
-
Data deserialised from incoming Binder transactions was not sufficiently validated in native vendor services.