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 2,501 to 2,550 of 3,817
  1. The allocator's rounding step adds to the total size without an overflow check, so a near-maximum length wraps to a small allocation while the copy uses the original length.

    Seen in 1 report
  2. The alpha plane's stride and dimensions are discarded and the luma plane's values used instead, with no validation of alpha dimensions in the call chain.

    Seen in 1 report
  3. The Alt-Svc parser copied a user-controlled date string into a fixed-size stack buffer without first checking that the string's length was within the buffer's capacity.

    Seen in 1 report
  4. The AMSI context is heap-allocated with a fixed magic value, and a failed scan is treated as not malicious.

    Seen in 1 report
  5. The apiuser parameter is handled without properly initialising memory before it is used.

    Seen in 1 report
  6. The App object parser trusted a size or offset from the input and read beyond the allocated buffer.

    Seen in 1 report
  7. The app.response method does not validate the length or bounds of user-supplied data before reading it.

    Seen in 1 report
  8. The application does not handle a large number of data sources when loading the page.

    Seen in 1 report
  9. The application does not validate a pointer to an annotation object after it has been freed.

    Seen in 1 report
  10. The application frees an object but continues to reference it while processing the document.

    Seen in 1 report
  11. The argument stack was not extended before writing the result, so the write landed past the allocated block.

    Seen in 1 report
  12. The ARM64 simulator's load/store handling does not validate the computed address before reading, so a crafted WebAssembly module can make it read from an unmapped address.

    Seen in 1 report
  13. The ARMv7 memcpy used signed branch instructions when comparing the size parameter instead of unsigned equivalents.

    Seen in 1 report
  14. The array byte size was computed as a 32-bit multiplication of element count and stride, so it wrapped and no longer matched the stored element count.

    Seen in 1 report
  15. The array growth calculation multiplies the allocation count by the pointer size without checking for integer overflow.

    Seen in 1 report
  16. The array iterator implementation did not properly validate the type of object it was handling, leading to a type confusion.

    Seen in 1 report
  17. The array length replacement produces a single-value node that the SPIR-V path treats as a matrix constant, reading one value per column.

    Seen in 1 report
  18. The array offset was only reset on the success path, so an exception unwound past the reset and left a stale offset.

    Seen in 1 report
  19. The array subtype check returns true when mutability differs instead of enforcing invariance.

    Seen in 1 report
  20. The Array.includes implementation uses a strict less-than check against the maximum unsigned 32-bit value instead of less-than-or-equal, taking a slow path that allocates excessively.

    Seen in 1 report
  21. The ArrayBuffer given to script was built over memory owned by the encoded frame, and the destructor ignored a failed detach, so the native owner freed the backing store anyway.

    Seen in 1 report
  22. The assembler did not mark certain element stores as initialising, so store-store elimination could delete stores and leave uninitialised memory visible to the garbage collector.

    Seen in 1 report
  23. The assignment code generator returns instead of breaking for a method call on the left-hand side, so the value register is not pushed.

    Seen in 1 report
  24. The atomic move flag suppressed normal subframe teardown while script during the move left a stale frame pointer and zero subframe count.

    Seen in 1 report
  25. The attacker-controlled opcode data size was used as the length for memory copies into fixed-size heap and stack buffers without validation.

    Seen in 1 report
  26. The attacker-controlled token length is passed as the copy limit instead of the destination buffer size.

    Seen in 1 report
  27. The attribute setter calls its internal setter before attaching the new attribute, and that call can re-enter, leaving two attribute nodes sharing one owner element.

    Seen in 1 report
  28. The audio data array size was not checked against channel count times frame count before being passed to a raw-pointer interleaved copy.

    Seen in 1 report
  29. The authentication tag length was not validated before reading it.

    Seen in 1 report
  30. The authentication trailer pointer is calculated from client-supplied frag_len and auth_len without validating it stays within the packet buffer.

    Seen in 1 report
  31. The authentication trailer pointer is calculated without bounds checking, so it can point before the start of the packet buffer.

    Seen in 1 report
  32. The Authorization header is base64-decoded into a fixed-size heap buffer without checking the decoded length.

    Seen in 1 report
  33. The autocomplete controller held a reference to an input element that was removed and garbage-collected during event handling.

    Seen in 1 report
  34. The autogeneration scripts mapping internal formats to storage formats and load functions were out of sync, so buffer size and write size disagreed.

    Seen in 1 report
  35. The backend applied the texture offset directly to subsampled chroma planes without dividing by the subsampling factor.

    Seen in 1 report
  36. The backend read the old buffer size before the GL layer updated it, and a recycled buffer kept a stale dirty flag.

    Seen in 1 report
  37. The background colour index was used to index fixed-size palette arrays with no bounds check.

    Seen in 1 report
  38. The background linking task captured raw references to the context's capabilities, and context destruction did not wait for unbound linking programs.

    Seen in 1 report
  39. The backing factory's support check returned true without reading the requested size, and no earlier IPC layer enforced a maximum dimension.

    Seen in 1 report
  40. The base vertex parameter is declared unsigned instead of signed in the Metal command encoder, so negative values are zero-extended.

    Seen in 1 report
  41. The base64 decoding function had no output size limit and wrote past the stack buffer.

    Seen in 1 report
  42. The baseline compiler emitted array.fill with no pre-write barrier, so overwriting existing reference slots never informed the incremental GC of the old value.

    Seen in 1 report
  43. The baseline compiler generates code that jumps to an invalid address for this instruction combination.

    Seen in 1 report
  44. The BCPEncode processing function incremented the write pointer beyond the buffer limit when an escaped character was written at the end of the buffer.

    Seen in 1 report
  45. The bidding signals interface does not check that priority vector values are finite, so a not-a-number value breaks the strict weak ordering assumed by sorting.

    Seen in 1 report
  46. The binary-output check only inspects a limited leading portion of the response, so padding pushes binary content past the inspected window.

    Seen in 1 report
  47. The binding conversion returns a cached wrapper without checking whether the underlying buffer is shared, and the debug-only check is disabled in release builds.

    Seen in 1 report
  48. The binding object was garbage collected but its raw Mojo receiver was not unbound, so IPC messages could still be dispatched to it.

    Seen in 1 report
  49. The bindings generator disabled backing-store retention for a direct-call method, so a valueOf callback could detach typed arrays mid-call.

    Seen in 1 report
  50. The bindings generator disables detachment checks for span arguments, assuming script cannot run during argument conversion.

    Seen in 1 report