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,351 to 1,400 of 3,817
  1. A missing or incorrect length check allowed a write beyond the allocated buffer.

    Seen in 1 report
  2. A missing or incorrect length check before copying into a fixed-size stack buffer.

    Seen in 1 report
  3. A missing or incorrect length check when handling graphics data overruns a heap buffer.

    Seen in 1 report
  4. A missing or incorrect null check when resolving a local reference in a paint server URL.

    Seen in 1 report
  5. A missing or incorrect write barrier in AnyRef handling lets garbage collection read a poisoned location.

    Seen in 1 report
  6. A missing or incorrectly ordered lock around the connection-in-use check allows a connection to be selected for reuse before it is marked as in use.

    Seen in 1 report
  7. A missing or insufficient bounds check before writing to a memory buffer while parsing an archive.

    Seen in 1 report
  8. A missing pair of parentheses stores a comparison result instead of the parsed chunk size, so size validation is ineffective.

    Seen in 1 report
  9. A missing refcount decrement and a global compatibility flag that is never reset allow unsafe memory operations.

    Seen in 1 report
  10. A missing return after a size check let execution continue and copy the wrong size into a fixed buffer.

    Seen in 1 report
  11. A missing return after invoking the failure callback lets the loop continue over a vector whose memory the callback freed.

    Seen in 1 report
  12. A missing return after rejecting an invalid call let execution fall through into a loop writing past the encodings vector.

    Seen in 1 report
  13. A missing return after the bad message shutdown call lets execution continue and dereference an invalid iterator.

    Seen in 1 report
  14. A missing type check in a font helper lets a document's error handler resume at a privileged operator with attacker-chosen operands.

    Seen in 1 report
  15. A missing upper-bound check for left-to-right text combined with an integer underflow from non-monotonic font cluster indices, and a debug-only bounds check disabled in release.

    Seen in 1 report
  16. A missing validation check during CharString Directory processing led to a write through a null-based pointer.

    Seen in 1 report
  17. A missing weak pointer check after a call that can spin a nested message loop and delete the object.

    Seen in 1 report
  18. A missing weak pointer guard after the step change, which can synchronously destroy the controller.

    Seen in 1 report
  19. A missing weak-pointer guard after a delegate call that can spin a nested message loop and destroy the object, a pattern already fixed in the sibling enter-fullscreen method.

    Seen in 1 report
  20. A missing YUV override, a passthrough decoder that forwarded internal formats unchecked, and a backend that detected YUV only via a non-zero external format.

    Seen in 1 report
  21. A Mojo callback is invoked after the provider object has been destroyed.

    Seen in 1 report
  22. A multiplication could still produce infinity after the check, and casting the logarithm to an integer was undefined, giving a negative buffer size.

    Seen in 1 report
  23. A mutex shared by two paths was only taken by one of them, so it gave no real exclusion.

    Seen in 1 report
  24. A narrowing conversion from an unsigned size to a signed integer without bounds checking truncates the buffer size.

    Seen in 1 report
  25. A negotiated size is updated without reallocating the buffers that were sized for the previous value.

    Seen in 1 report
  26. A nested observer update resets the is-updating flag, so the destructor check passes and the object is freed while the outer observer loop still runs.

    Seen in 1 report
  27. A nested serialization error is ignored, letting the outer routine continue with a pointer freed when the nested serialization failed.

    Seen in 1 report
  28. A network buffer class copies incoming data without checking it fits the allocated buffer.

    Seen in 1 report
  29. A network-supplied length is cast to a signed int and compared against a maximum without rejecting negative values, so a negative length later becomes a huge size.

    Seen in 1 report
  30. A new header node is linked before a 16-bit counter is incremented and checked, so the counter wraps while the list keeps growing.

    Seen in 1 report
  31. A nicklist entry was freed during iteration and then accessed again.

    Seen in 1 report
  32. A no-op free callback is passed to a decoder whose buffer is not persistent.

    Seen in 1 report
  33. A no-op free callback was registered and the encoded image buffer was not retained, leaving tile data references dangling.

    Seen in 1 report
  34. A non-atomic reference count is shared across threads.

    Seen in 1 report
  35. A non-JSObject prototype was treated as having no validity cell, so later map changes did not invalidate the cached handler.

    Seen in 1 report
  36. A non-owning wrapper around shared memory is passed into an asynchronous socket write, so the buffer can outlive the mapping when the pipe is reset.

    Seen in 1 report
  37. A non-thread-safe flat map was read on the GPU main thread and written on the GPU IO thread without locking.

    Seen in 1 report
  38. A non-thread-safe service is called from worker threads during URI parsing, causing a race.

    Seen in 1 report
  39. A NON_PACKED flag change caused incorrect handling of arrays with holes during tracing.

    Seen in 1 report
  40. A null byte was written one past the end of the buffer when the alias length was set to the manifest length minus fourteen.

    Seen in 1 report
  41. A null pointer dereference assumed unexploitable could be leveraged to bypass kernel protections.

    Seen in 1 report
  42. A null pointer dereference in stream context defaults.

    Seen in 1 report
  43. A null pointer dereference reachable from a sandboxed context.

    Seen in 1 report
  44. A null pointer is dereferenced during file-system parsing.

    Seen in 1 report
  45. A numeric input was passed straight to buffer allocation without type validation, and old runtimes returned uninitialised memory.

    Seen in 1 report
  46. A numeric truncation error occurs when handling protocol values.

    Seen in 1 report
  47. A numeric truncation on user-supplied data leads to an out-of-bounds write before the allocated buffer.

    Seen in 1 report
  48. A page buffer was freed but left referenced in the parent PDF object, so exception cleanup wrote a null byte out of bounds.

    Seen in 1 report
  49. A page object with Kids and Count was treated as a pages object, so the declared count did not match the real objects.

    Seen in 1 report
  50. A parsed element is treated as the wrong type, leading to type confusion.

    Seen in 1 report