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 decryptor service does not validate video decoder config dimensions before passing them to the CDM library.
Seen in 1 report
-
The dedicated worker branch lacked duplicate-token validation, so the same host object could be inserted into multiple sets and its destruction callback overwritten.
Seen in 1 report
-
The default reference value returned undefined instead of null for externref and nullexternref, breaking the specification and allowing a fake string with an oversized length.
Seen in 1 report
-
The deferred start-session callback is not cleared when receivers are destroyed during rapid renegotiation, leaving dangling pointers.
Seen in 1 report
-
The deinitialisation handler relies on a debug-only assertion instead of a runtime check or flush of pending data pipe reads.
Seen in 1 report
-
The delegate self-retain was only armed on successful connections, so the failure path relied on a one-turn keep-alive that expired before delayed callbacks.
Seen in 1 report
-
The delegate's channel reference was never updated after the native channel was created, so the cleanup call was a no-op and the channel kept a dangling pointer.
Seen in 1 report
-
The delegate's self-retain is only armed on a successful open, so for incoming or failed connections the wrapper holds the only strong reference and drops it inside the delegate's own callback.
Seen in 1 report
-
The delete function frees a note but does not null the pointer, so edit and view still operate on the freed chunk.
Seen in 1 report
-
The delete method nullifies one pointer but does not clear the holding map and node pointer, so a nested delete reuses stale pointers.
Seen in 1 report
-
The DeltaPerColumn handler computed the last plane as image plane count plus opcode plane count instead of first plane plus count, and never validated that the resulting plane range stayed within the image's planes.
Seen in 1 report
-
The demuxer destructor skips notifying the connector on failed initialisation and a posted task uses a raw pointer without a weak reference.
Seen in 1 report
-
The dense-element removal path writes a hole but does not invalidate the iterator's saved indices or the shape guard, so the JIT fast path loads the hole without a hole check.
Seen in 1 report
-
The deoptimizer does not traverse all Wasm stacks including those used by JSPI, so code with invalidated invariants keeps running.
Seen in 1 report
-
$55,000 High
-
-
The descramble method used the session object without increasing its reference count, so it could be freed concurrently.
-
The descriptor's chroma size is used only for validation and then discarded, so the copy recomputes chroma dimensions from display size and subsampling, which can disagree.
Seen in 1 report
-
The deserialiser checks each segment's bounds but omits the invariant that the path starts immediately after the authority, which resolution relies on.
Seen in 1 report
-
The deserialiser did not check that each frame's module index was the sentinel or within the module list before an unchecked array lookup.
Seen in 1 report
-
The deserialiser used an attacker-controlled count and offset to copy from a raw pointer without checking that offset plus count stayed within the source array length.
Seen in 1 report
-
The deserializer assumes a map stays a fast-properties map after a deprecated map update, but the update can normalise it to a dictionary map.
Seen in 1 report
-
The destination buffer is allocated using one size value while the copy routine is given a different, attacker-influenced size, so the bounds check inside the copy routine does not match the real allocation.
Seen in 1 report
-
The destination buffer is sized by minimum character length rather than the actual multi-byte width.
Seen in 1 report
-
The destination buffer is sized for the requested width while the graphics driver writes a larger amount of pixel data.
Seen in 1 report
-
The destination buffer size comes from file tags and the unpack loop does not check its write index.
Seen in 1 report
-
The destination buffer size is taken from one file field while the decompressed length is taken from another, with no check that they match.
Seen in 1 report
-
The destination buffer size or offset was miscalculated when storing vertex attribute data for instanced rendering.
Seen in 1 report
-
The destination buffer size was computed from output sample rate and channel count without checking it fitted the fixed stack array.
Seen in 1 report
-
The destination buffer was sized for one byte per pixel but each pixel was expanded to three bytes for LCD anti-aliasing.
Seen in 1 report
-
The destination buffer was sized using one structure's length but data was copied using a different length when the element type was a verdict.
Seen in 1 report
-
The destination pointer is incremented inside a loop but decremented by twice as much outside, so repeated outer iterations move it before the buffer.
Seen in 1 report
-
The destination pointer is offset to the visible rectangle origin but the copy size is computed from the full coded size, so the write runs past the allocation.
Seen in 1 report
-
The destination register operand of a shader instruction is not validated.
Seen in 1 report
-
The destroy loop uses an error-propagating macro that exits on the first failure, so later associated images are never disassociated before the storage is deleted.
Seen in 1 report
-
The destroy path skipped clearing the debug callback when the context was already lost, leaving a dangling pointer while shared state kept the context alive.
Seen in 1 report
-
The destructor clears the inquiry delegate but does not keep it alive for one more turn of the main run loop.
Seen in 1 report
-
The destructor dereferences a raw frame tree node pointer freed when the web contents was destroyed during a nested run loop.
Seen in 1 report
-
The destructor destroys the data pipe handle and unmaps shared memory without waiting for pending overlapped I/O, unlike the flush method which has a safety check.
Seen in 1 report
-
The destructor destroys the GTK window before the destroy callback runs, so the callback dereferences a freed dialog pointer.
Seen in 1 report
-
The destructor does not clear the native channel's delegate reference before the delegate is deallocated.
Seen in 1 report
-
The destructor does not invalidate the task safety flag, so pending tasks guarded by it still run after the object is freed.
Seen in 1 report
-
The destructor re-queried the stream for its first track instead of storing the exact track it registered with, so after renegotiation it unregistered from the wrong track.
Seen in 1 report
-
The destructor reads the audio converter member without holding the lock that guards it, so the capture thread can free it between the pointer read and the remove call.
Seen in 1 report
-
The destructor uses a lock-free check of the channel lost state to decide whether to unregister as an observer.
Seen in 1 report
-
The device read-write function used the residual count as the size and a user offset for the address without checking either against the buffer.
Seen in 1 report
-
The device-change callback was bound with an unretained pointer instead of a weak pointer, so it could run after the manager was destroyed.
Seen in 1 report
-
The DHCP client did not validate the length or structure of certain fields in responses.
Seen in 1 report
-
The difference between msb and lsb is computed as a signed 32-bit integer without overflow checking and used as an allocation size.
Seen in 1 report
-
The directory tracking buffer size was computed as a 32-bit product of sector count, sector size and entry size, which could wrap and yield an undersized allocation indexed by attacker-controlled values.
-
The disabled-state update dispatched a change event synchronously and the atomic move did not defer events, so script ran while the move flag was set.
Seen in 1 report
-
The DisableDevice function fails to validate the length of user-supplied data before copying it into a heap buffer.