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,651 to 1,700 of 3,817
  1. A parser instantiated classes named in attacker-controlled input, and a Parcelable wrapper allowed arbitrary class names and JSON.

    Seen in 1 report
  2. A surface was published into an allocation group before its own bookkeeping was committed, and a re-entrant callback made the later erase calls silent no-ops.

    Seen in 1 report
  3. A switch over an attacker-controlled value has no default case and no trailing return, so out-of-range values fall off the end of a non-void function.

    Seen in 1 report
  4. A sync-controlled key was looked up with key-value coding instead of a plain dictionary lookup, letting the key be interpreted as a selector.

    Seen in 1 report
  5. A target is added to a list of raw pointers but not removed when the cleanup path deletes it, so the policy destructor deletes it again.

    Seen in 1 report
  6. A task is posted to the thread pool with raw pointers to the isolate and backing store, with no way to cancel it or keep the objects alive.

    Seen in 1 report
  7. A task was queued with a reference to a handler whose context could be destroyed before the task executed.

    Seen in 1 report
  8. A temporal index field from the GPU process is deserialised and used without range validation before indexing a fixed-size array.

    Seen in 1 report
  9. A temporary filename buffer is freed each time a channel info tag is seen, but it is only allocated once.

    Seen in 1 report
  10. A temporary stream object was freed during document destruction but a virtual method was called on it later.

    Seen in 1 report
  11. A temporary string used in error logging is destroyed before the logging function finishes reading it.

    Seen in 1 report
  12. A thread-affine garbage collection handle was wrapped in a callback passed to a background thread, and the compile-time check missed it.

    Seen in 1 report
  13. A time-of-check to time-of-use length mismatch between size estimation and iteration snapshots.

    Seen in 1 report
  14. A timer callback held a raw pointer without keeping the object alive.

    Seen in 1 report
  15. A timer iterated a list of refresh drivers without holding a strong reference, so an error path freed a driver mid-iteration.

    Seen in 1 report
  16. A timer started during pre-finalisation creates a weak handle that is not cleared and later fires on freed memory.

    Seen in 1 report
  17. A token is copied into a fixed-size buffer without leaving space for a subsequent string concatenation.

    Seen in 1 report
  18. A trace length is validated against the wrong maximum for the source buffer.

    Seen in 1 report
  19. A trailing percent sign in the format string was not handled, so the code skipped the null terminator and read past the buffer.

    Seen in 1 report
  20. A transform helper assumes 16 floats are present while the layer can supply a zero-length array.

    Seen in 1 report
  21. A tree transformation pass drops an outer variable declaration while keeping references to it when a variable is shadowed inside switch blocks, and AST validation is disabled on some backends.

    Seen in 1 report
  22. A type confusion during display list hit testing.

    Seen in 1 report
  23. A type confusion in StructuredQuery.dll when parsing a crafted LeafCondition element in a LNK file.

    Seen in 1 report
  24. A type mismatch in the copy: the source range is computed in bytes but the destination is typed, so too many elements are written.

    Seen in 1 report
  25. A type or size field in the file is trusted so data is interpreted as the wrong structure.

    Seen in 1 report
  26. A typo turned an equality assertion into an assignment, so a size check always passed.

    Seen in 1 report
  27. A typographic error compares against one identifier but subtracts another that is zero, causing an infinite loop that increments an element level counter without bounds checking.

    Seen in 1 report
  28. A Unicode string was not null-terminated when converted, so a loop counting bytes until two null bytes read out of bounds.

    Seen in 1 report
  29. A uniform block binding change does not mark the binding dirty, so the backend takes an offset-only fast path against a stale descriptor.

    Seen in 1 report
  30. A unique pointer releases an object while a pointer to it is still retained and later dereferenced.

    Seen in 1 report
  31. A URI comparison succeeds when both values are null, returning the live stylesheet document instead of an empty result.

    Seen in 1 report
  32. A URL length calculation adds a fixed offset but the copy length comes from a search that can run past the URL into the scopes field.

    Seen in 1 report
  33. A use after free during link state updates.

    Seen in 1 report
  34. A use after free during participant canonicalisation.

    Seen in 1 report
  35. A use after free during the refresh driver tick.

    Seen in 1 report
  36. A use after free during window opening.

    Seen in 1 report
  37. A use after free in early push handling overwrote memory from the pushing request's pool.

    Seen in 1 report
  38. A use after free in the screen capture path when interacting with the desktop portal on Wayland KDE.

    Seen in 1 report
  39. A use after free on the socket thread.

    Seen in 1 report
  40. A use after free when setting a child document on an accessibility proxy.

    Seen in 1 report
  41. A use count stored in a saturating 8-bit integer capped at 255, making an ownership check return true incorrectly.

    Seen in 1 report
  42. A use-after-free in handling long warning messages within select options led to memory corruption.

    Seen in 1 report
  43. A use-after-free in how the spreadsheet application handles a crafted file.

    Seen in 1 report
  44. A use-after-free in record handling where a race condition lets memory be reused after it is freed.

    Seen in 1 report
  45. A use-after-free in the document library when processing DOC files.

    Seen in 1 report
  46. A use-after-free memory corruption in the desktop window manager core library.

    Seen in 1 report
  47. A use-after-free memory management error triggered during a race condition.

    Seen in 1 report
  48. A use-after-free on out-of-band socket data leads to a double free.

    Seen in 1 report
  49. A use-after-free or uninitialised memory issue in the runtime's object handling.

    Seen in 1 report
  50. A use-after-free that can be triggered by winning a race condition.

    Seen in 1 report