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,101 to 1,150 of 3,817
  1. A file-supplied count is trusted without an upper bound, so a loop walks past the allocation.

    Seen in 1 report
  2. A filedesc object is used without checking it still exists.

    Seen in 1 report
  3. A filename length is derived from the input itself, so an unbounded copy overflows a global buffer.

    Seen in 1 report
  4. A fill call could synchronously destroy the form manager, and the code then kept using its members.

    Seen in 1 report
  5. A final JNI pointer field was never cleared after the native object was deleted, leaving a stale reference for queued events.

    Seen in 1 report
  6. A fix bounds each leaf operand but not intermediate results, so a later addition still diverges from the expected value.

    Seen in 1 report
  7. A fixed 52-byte status buffer is filled by a parsing call that does not limit the status message length.

    Seen in 1 report
  8. A fixed array is indexed with an unvalidated clipboard type value supplied by the content process.

    Seen in 1 report
  9. A fixed-size array is allocated for event descriptions but the loop uses an attacker-controlled count without checking it against the array size.

    Seen in 1 report
  10. A fixed-size array is filled by incrementing an index without bounds checking.

    Seen in 1 report
  11. A fixed-size array is indexed with a value taken from the input that can exceed its length.

    Seen in 1 report
  12. A fixed-size buffer was allocated for 32 nested Relay-forward messages but the nested counter was never checked against that limit.

    Seen in 1 report
  13. A fixed-size stack array is indexed by a loop whose bound is only checked by a debug assertion compiled out in release builds.

    Seen in 1 report
  14. A fixed-size stack buffer for number-to-string conversion is too small for the formatted output of certain matrix values.

    Seen in 1 report
  15. A fixed-size stack buffer holds expanded output, but certain input characters expand to multiple bytes, so a long enough input overflows it.

    Seen in 1 report
  16. A fixed-size stack buffer was filled with a non-terminating copy and later measured with a string length call, and a boundary check failed when the packet had no terminator.

    Seen in 1 report
  17. A fixed-width size counter wrapped around, shrinking the buffer while the copy still used the original byte count.

    Seen in 1 report
  18. A flaw in handling optional chaining and assignment lets an internal sentinel value escape and be misinterpreted.

    Seen in 1 report
  19. A flaw in read-only boot ROM allows unsigned code execution in recovery mode and cannot be patched.

    Seen in 1 report
  20. A flaw in the garbage collector's marking logic allows an invalid object pointer to be dereferenced.

    Seen in 1 report
  21. A flaw in the JIT compiler's linear scan register allocation leads to memory corruption when processing certain JavaScript code.

    Seen in 1 report
  22. A flaw in the loop peeling optimisation introduced by a specific commit leads to an out-of-bounds read.

    Seen in 1 report
  23. A flaw in the regexp compiler's memory handling frees a buffer more than once.

    Seen in 1 report
  24. A float is boxed with a raw setter instead of being canonicalised, so a crafted NaN forges a script value.

    Seen in 1 report
  25. A floating-point value from the bounding box was truncated to a signed 32-bit integer, producing a negative value that wrapped a loop counter and wrote out of bounds.

    Seen in 1 report
  26. A font name from the PDF is copied into a fixed stack buffer without a length check.

    Seen in 1 report
  27. A font object is freed during font handling but reused when graphics state is restored.

    Seen in 1 report
  28. A form field object is freed during event handling but its memory is reused without proper checks.

    Seen in 1 report
  29. A form field object was freed by a Calculate action and then used again without checking it still existed.

    Seen in 1 report
  30. A form handler copied a POST parameter into a fixed-size buffer without checking its length.

    Seen in 1 report
  31. A form-related object is freed but later used without checking that it still exists.

    Seen in 1 report
  32. A formatted floating-point value is written into a fixed-size buffer with sprintf and no length check.

    Seen in 1 report
  33. A four-byte sequence-number scratch write in the authencesn AEAD path lands in the page cache of a spliced-in file instead of staying inside the kernel buffer.

    Seen in 1 report
  34. A frame is deleted while a reference to it is still used during popup teardown.

    Seen in 1 report
  35. A frame is freed during restyle or recreation while a stale reference is still used when capturing layout history state.

    Seen in 1 report
  36. A frame or text run is used after the layout state has been invalidated by rapid text changes, scrolling and worker activity.

    Seen in 1 report
  37. A frame property lookup reads past the end of the frame's property array because the placeholder frame property is missing or the array is stale.

    Seen in 1 report
  38. A FrameLoader object was dereferenced without checking it still existed.

    Seen in 1 report
  39. A freed annotation object is used without validation after JavaScript destroys it.

    Seen in 1 report
  40. A freed anon_vma was reclaimed with attacker data, letting a trylock call write to an attacker-chosen address.

    Seen in 1 report
  41. A freed object was still referenced during pointer updating in the mark-compact collector.

    Seen in 1 report
  42. A freed salt buffer pointer was not cleared, so the error-handling path freed it a second time.

    Seen in 1 report
  43. A freed structure field is not set to null, leaving a dangling pointer that can be reused.

    Seen in 1 report
  44. A fullscreen drop call can spin a nested message loop, and the web contents pointer is used afterwards without a weak pointer guard.

    Seen in 1 report
  45. A function call synchronously triggers scheduler actions that destroy objects still referenced by raw pointers in priority queues.

    Seen in 1 report
  46. A function called during frame handling can trigger garbage collection that frees an object still in use.

    Seen in 1 report
  47. A function relied only on debug assertions instead of runtime bounds checks like its sibling function.

    Seen in 1 report
  48. A function returns the intended size of the superframe index rather than the number of bytes actually written, so a full buffer yields a non-zero count for data never stored.

    Seen in 1 report
  49. A function that can run a nested event loop is called without checking for destruction before accessing members afterwards.

    Seen in 1 report
  50. A function that synchronously runs page script frees the object, then a member of the freed object is dereferenced.

    Seen in 1 report