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,901 to 2,950 of 3,817
  1. The element count was computed as end minus start plus one in 32-bit unsigned arithmetic, so a full range wrapped to zero and appeared empty.

    Seen in 1 report
  2. The ellipse shape info allocated a buffer based on one computed size but the write loop indexed past it when the margin was extremely large.

    Seen in 1 report
  3. The embedded networking stack shipped with an FTP server that does not enforce authentication and plaintext credentials in a downloadable config file.

    Seen in 1 report
  4. The emulated device set the reported URB size without validation and passed an attacker-controlled size into a raw integer parser writing to a stack buffer.

    Seen in 1 report
  5. The emulator wrote bytes into fixed-size status buffers indexed by a counter that was never bounds-checked.

    Seen in 1 report
  6. The encode delegates computed reference buffer bounds from other capabilities but never read or enforced the driver's limit on L0 references for P frames.

    Seen in 1 report
  7. The encoder uses the original visible rectangle instead of the downscaled buffer dimensions.

    Seen in 1 report
  8. The end-of-slice calculation adds start and length in unsigned 64-bit without an overflow check, and the wrapped value is used to compute the read count.

    Seen in 1 report
  9. The endpoint assumes every array entry is a string and uses the raw value as a length.

    Seen in 1 report
  10. The endpoint copied the urls value into a fixed-size buffer without checking its length.

    Seen in 1 report
  11. The endpoint copies the Authorization header into a fixed-length stack buffer without validating its length.

    Seen in 1 report
  12. The engine does not validate user-supplied data before using it.

    Seen in 1 report
  13. The engine failed to verify an object's type before using it, causing type confusion.

    Seen in 1 report
  14. The engine misinterprets the type of an object during optimisation in the regex JIT.

    Seen in 1 report
  15. The enum cache trusts JavaScript-derived data without checking its bounds.

    Seen in 1 report
  16. The enumerator stored raw accessible pointers without keeping the referenced objects alive.

    Seen in 1 report
  17. The equality operator ignored the Wasm signature field, so frame states with different signatures were merged during value numbering.

    Seen in 1 report
  18. The error branch frees the level offset array and then calls a cleanup function that frees the same array again.

    Seen in 1 report
  19. The error buffer pointer is not cleared when the buffer is freed, so a later error path writes through a dangling pointer.

    Seen in 1 report
  20. The error from the backend orphaning call is not handled, so the source pointer is not cleared when orphaning fails.

    Seen in 1 report
  21. The error from the command flush is ignored, so the image is not removed from the tracking set when the flush fails.

    Seen in 1 report
  22. The error handling path unconditionally freed a key that had already been freed before checking for failure.

    Seen in 1 report
  23. The error path destroys a Vulkan semaphore that was already submitted to the GPU queue.

    Seen in 1 report
  24. The error path freed the job without releasing the credential reference taken earlier, so the count leaked and could wrap.

    Seen in 1 report
  25. The error path freed the ring pool but stored the freed pointer in session state.

    Seen in 1 report
  26. The error path frees the current fragment and then the head buffer whose fragment list still references it.

    Seen in 1 report
  27. The error path frees the new filter BIO but leaves it in the caller's BIO chain.

    Seen in 1 report
  28. The error path frees the same transmit buffer twice because the loopback interface is not enabled.

    Seen in 1 report
  29. The error path passed a failed-at value of zero into the buffer release routine, which cleaned up every object even though none had been processed.

    Seen in 1 report
  30. The error path returned before erasing the mapped buffer entry, so a stale mapping survived a failed buffer data call.

    Seen in 1 report
  31. The error path set the returned output length to the full metadata size even when the caller's buffer was too small.

    Seen in 1 report
  32. The escaping check on inlined allocations was non-transitive, so nested objects escaping through a container were not marked and map checks were skipped.

    Seen in 1 report
  33. The escaping routine uses a fixed 512-byte buffer and expands special characters without bounds checking.

    Seen in 1 report
  34. The event dispatch function lacks a liveness check after handling the event and keeps reading members of a freed this pointer.

    Seen in 1 report
  35. The event listener function downcast the script execution context to a document without checking the document was still alive, so a timer-driven media event reached a freed object.

    Seen in 1 report
  36. The event listener manager was reached through a stale window reference after cycle collection, because storage-event observer setup re-entered script.

    Seen in 1 report
  37. The event transfer call lacks a liveness check or reentrancy guard, so synchronous dispatch can destroy the drag controller and leave dangling pointers.

    Seen in 1 report
  38. The example tore down the libevent event base before cleaning up the multi handle, so the add-socket callback ran against freed memory.

    Seen in 1 report
  39. The exception handling path accesses a partially initialised object.

    Seen in 1 report
  40. The export loop kept a pointer to the current list node across a callback that could mutate and free that same node.

    Seen in 1 report
  41. The extended_state pointer was left uninitialised when copy_from_user failed, so kfree ran on an attacker-controlled value.

    Seen in 1 report
  42. The failure callback ran synchronously, cancelling navigation and deleting the throttle while the caller kept using its members.

    Seen in 1 report
  43. The fast clone path skipped the write barrier for young-generation targets, so incremental marking missed a new reference.

    Seen in 1 report
  44. The fast path cached the array length and elements pointer while a callback during element conversion could shrink the array.

    Seen in 1 report
  45. The fast path in L2 entry modification skips validation of the super page and writable bits, and the disallow mask permits the super page flag.

    Seen in 1 report
  46. The fault path returns without clearing the flag that re-enables supervisor access prevention.

    Seen in 1 report
  47. The FBX parser fails to check that an object still exists before using it.

    Seen in 1 report
  48. The feature list whitelists sized internal formats for the read pixel format but the element-size helper does not recognise them and returns zero, so the decoder validates a zero-byte buffer.

    Seen in 1 report
  49. The feature report path does not compare the buffer size against the declared maximum, unlike the write path.

    Seen in 1 report
  50. The feature-enabling command does not check that the calling context is a plugin context before turning off buffer target exclusivity.

    Seen in 1 report