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,951 to 2,000 of 3,817
  1. Cached buffer pointers are not cleared when the corresponding GL binding becomes null, leaving stale driver pointers.

    Seen in 1 report
  2. Cached property-name size is not revalidated after traversing a prototype chain that may include a proxy trap.

    Seen in 1 report
  3. 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
  4. Caller-supplied buffers are not copied and are read after the caller's lifetime ends.

    Seen in 1 report
  5. 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
  6. Capacity times element size is computed in signed 32-bit arithmetic and wraps before the cast.

    Seen in 1 report
  7. Caret movement does not check whether the selection's frame is still alive after a cycle collection frees it.

    Seen in 1 report
  8. 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
  9. Certificate parsing code not validating the contents of an imported certificate.

    Seen in 1 report
  10. Changing an audio stream's sync group only reconfigures the new group, leaving stale pointers in the old group.

    Seen in 1 report
  11. Changing an optional content group's state frees an object that is still referenced after the page switch.

    Seen in 1 report
  12. 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
  13. Chunk count computed as a signed multiplication of two attacker-controlled 16-bit values without an overflow check.

    Seen in 1 report
  14. 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
  15. Cleanup functions recurse without the depth limit that the read path enforces.

    Seen in 1 report
  16. Cleanup runs synchronously inside a callback while methods on the same objects are still on the call stack.

    Seen in 1 report
  17. Clearing a deque adds preserved sizes back without re-inserting their ids.

    Seen in 1 report
  18. Clearing the sessions map is not re-entrancy safe because destroying a session synchronously erases sibling entries.

    Seen in 1 report
  19. Client driver failing to validate data returned by the server.

    Seen in 1 report
  20. Client-supplied SLC triplets were stored in a fixed-size global array without bounds checking.

    Seen in 1 report
  21. Close methods lack the re-entrancy guard used elsewhere, so an observer can delete the tab mid-move.

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

    Seen in 1 report
  23. 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
  24. Code calls attacker-controlled script synchronously and then uses its own object without a weak pointer check.

    Seen in 1 report
  25. 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
  26. 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
  27. 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
  28. 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
  29. Code relies on an undefined destruction order of tuple elements.

    Seen in 1 report
  30. Code used a FrameDestructionObserver object without confirming it still existed.

    Seen in 1 report
  31. Command parameters were copied into fixed-size stack buffers without validating their length.

    Seen in 1 report
  32. Connect-only handle not reset when its connection is freed, so a new connection at the same address is adopted.

    Seen in 1 report
  33. Connection pointers are not cleared when a connection is detached, so stale pointers are used.

    Seen in 1 report
  34. 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
  35. 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
  36. consume() did not reject negative arguments and copy() mishandled an offset larger than the destination length.

    Seen in 1 report
  37. Context disposal tears down a streaming processor without cancelling or joining the validation worker.

    Seen in 1 report
  38. Control Flow Guard does not correctly validate or handle objects in memory, allowing the protection to be bypassed.

    Seen in 1 report
  39. Conversion code trusts size or length values from the input file and reads beyond the buffer without checking them.

    Seen in 1 report
  40. Conversion functions assumed a fixed buffer size instead of checking the actual remaining length before writing converted code points.

    Seen in 1 report
  41. Cookie objects are freed without checking whether they were already removed or freed.

    Seen in 1 report
  42. Copy length computed from attacker-controlled fields and passed to a memory copy without verifying it fits the source buffer.

    Seen in 1 report
  43. Copy length taken from an attacker-controlled count rather than the number of values actually pushed.

    Seen in 1 report
  44. Copy length taken from the source string instead of the destination buffer size.

    Seen in 1 report
  45. 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
  46. Copy validation checks a generic range but not the texture's effective base level.

    Seen in 1 report
  47. Copying data into a fixed-size stack buffer without a bounds check.

    Seen in 1 report
  48. 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
  49. Cyclic stream dependencies are not detected or capped.

    Seen in 1 report
  50. Data deserialised from incoming Binder transactions was not sufficiently validated in native vendor services.

    Seen in 1 report