Skip to content

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.

Back to the lesson 2,801 to 2,850 of 3,817
  1. The decryptor service does not validate video decoder config dimensions before passing them to the CDM library.

    Seen in 1 report
  2. 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
  3. 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
  4. The deferred start-session callback is not cleared when receivers are destroyed during rapid renegotiation, leaving dangling pointers.

    Seen in 1 report
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. The deoptimizer does not traverse all Wasm stacks including those used by JSPI, so code with invalidated invariants keeps running.

    Seen in 1 report
  15. The descramble method used the session object without increasing its reference count, so it could be freed concurrently.

    Seen in 1 report
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. The destination buffer is sized by minimum character length rather than the actual multi-byte width.

    Seen in 1 report
  23. The destination buffer is sized for the requested width while the graphics driver writes a larger amount of pixel data.

    Seen in 1 report
  24. The destination buffer size comes from file tags and the unpack loop does not check its write index.

    Seen in 1 report
  25. 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
  26. The destination buffer size or offset was miscalculated when storing vertex attribute data for instanced rendering.

    Seen in 1 report
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. The destination register operand of a shader instruction is not validated.

    Seen in 1 report
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. The destructor destroys the GTK window before the destroy callback runs, so the callback dereferences a freed dialog pointer.

    Seen in 1 report
  39. The destructor does not clear the native channel's delegate reference before the delegate is deallocated.

    Seen in 1 report
  40. 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
  41. 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
  42. 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
  43. The destructor uses a lock-free check of the channel lost state to decide whether to unregister as an observer.

    Seen in 1 report
  44. 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
  45. 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
  46. The DHCP client did not validate the length or structure of certain fields in responses.

    Seen in 1 report
  47. 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
  48. 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.

    Seen in 1 report
  49. 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
  50. The DisableDevice function fails to validate the length of user-supplied data before copying it into a heap buffer.

    Seen in 1 report