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 1,051 to 1,100 of 3,817
  1. 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
  2. A dangling pointer is used when the page info bubble is destroyed.

    Seen in 1 report
  3. A dataset search result is cast to a sequence type without verifying the actual object type.

    Seen in 1 report
  4. 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
  5. 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
  6. 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
  7. 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
  8. A debug-only type assertion let a non-string-backed token reach a string accessor in release builds.

    Seen in 1 report
  9. 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. A decode loop repeated bounds checks only on the first iteration, letting the output pointer advance past the buffer.

    Seen in 1 report
  11. 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
  12. A decompression routine did not verify the output buffer had room before writing inflated data.

    Seen in 1 report
  13. 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
  14. 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
  15. 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
  16. A delegate callback can synchronously destroy the dispatcher, and member fields are used afterwards without a check.

    Seen in 1 report
  17. 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
  18. A deleted texture stayed in the active texture cache and was synced on a later draw call.

    Seen in 1 report
  19. 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
  20. A destination address is computed from a raster size and position without checking it lies within the allocation.

    Seen in 1 report
  21. A destination field is not null-terminated because a longer string is copied into a smaller buffer.

    Seen in 1 report
  22. A destructor does not detach an ArrayBuffer created over native memory, leaving JavaScript pointing at freed memory.

    Seen in 1 report
  23. A destructor unregisters a callback from a shared registry on one thread while another may be invoking it.

    Seen in 1 report
  24. A device is removed from one map but not another, leaving a stale entry.

    Seen in 1 report
  25. 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
  26. 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
  27. 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
  28. A document type node is released by the cycle collector while a reference is still held.

    Seen in 1 report
  29. A DOM API that can run page JavaScript synchronously is called without re-checking that objects are still alive.

    Seen in 1 report
  30. A DOMNodeRemoved event fired before insertion finished, and the listener freed the node being inserted.

    Seen in 1 report
  31. A double free when handling a crafted RTF file.

    Seen in 1 report
  32. 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
  33. 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
  34. A driver copies to a user-supplied destination without validating the destination buffer size.

    Seen in 1 report
  35. A driver exposed IOCTL handlers without access control and passed user arguments straight to a memory copy.

    Seen in 1 report
  36. A drop callback runs synchronously and can destroy the client, but the caller does not re-check liveness.

    Seen in 1 report
  37. A dword from the file is used unchecked as a loop repeat count for repeated copies.

    Seen in 1 report
  38. A dynamic array was initialised with the size of the wrong structure type, so a later copy overflowed the destination.

    Seen in 1 report
  39. 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
  40. 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
  41. A failed memory allocation was not checked and a write followed through a null pointer with an attacker-controlled offset.

    Seen in 1 report
  42. A failed probe frees the context without nulling the pointer, and teardown frees it again.

    Seen in 1 report
  43. A failed reallocation leaves the framebuffer completeness cache stale.

    Seen in 1 report
  44. A failed reallocation returns a null pointer that is not handled before the attribute array is used.

    Seen in 1 report
  45. 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
  46. A field in the signature object is not initialised before being used as the this pointer.

    Seen in 1 report
  47. 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
  48. A file stream is closed and freed early in parsing and then closed again later.

    Seen in 1 report
  49. A file-controlled signal length is used without validation, so adding one wraps to zero and a tiny buffer is allocated.

    Seen in 1 report
  50. A file-provided size value was used in a memory copy without validating it against the destination buffer size.

    Seen in 1 report