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,401 to 1,450 of 3,817
  1. A parser-validated integer luma offset is copied into an int8_t field without a range check, causing signed overflow.

    Seen in 1 report
  2. A parsing macro reads from a buffer without checking that enough bytes remain.

    Seen in 1 report
  3. A patch exposed a byteLength setter and removed the check that the new length stays within the maximum buffer size.

    Seen in 1 report
  4. A path is cast to the Skia path type without checking the backend, causing a type confusion.

    Seen in 1 report
  5. A peephole optimisation did not check that the number of discarded slots matched the size of the multi-slot immediate operation.

    Seen in 1 report
  6. A peer connection media object is freed while still referenced.

    Seen in 1 report
  7. A per-handle OpenSSL library context was borrowed by the connection's SSL context without ownership transfer, so the pooled connection held a dangling pointer.

    Seen in 1 report
  8. A per-session monitor binds a callback with an unretained pointer into a process-lifetime singleton that offers no unregistration handle.

    Seen in 1 report
  9. A permanent format error is collapsed into a need-more-input result so the decoder keeps buffering past a fixed internal buffer.

    Seen in 1 report
  10. A permissive decoder check allowed prediction order to equal the sample count, and the vector kernel lacked a guard for a zero iteration count.

    Seen in 1 report
  11. A persistent handle created on a worker thread is destroyed on the main thread when the worker terminates, corrupting the main thread free list.

    Seen in 1 report
  12. A persistent handle is destroyed on a background thread when a task runner shuts down, and the persistent region free-list is not thread-safe.

    Seen in 1 report
  13. A phi tagging call did not force a small-integer result, so a heap number was stored into a small-integer field without a write barrier.

    Seen in 1 report
  14. A pointer difference can go negative and is passed as an unsigned length to a string copy without validation.

    Seen in 1 report
  15. A pointer difference is cast to a signed int before the size check, so an oversized length becomes negative and bypasses the comparison against the buffer size.

    Seen in 1 report
  16. A pointer in the escape request handling is not validated, leading to a call through a null pointer.

    Seen in 1 report
  17. A pointer into a buffer was kept after the buffer was reallocated.

    Seen in 1 report
  18. A pointer into a hash map was stored and then a new element inserted, rehashing the map and invalidating the pointer before it was written.

    Seen in 1 report
  19. A pointer is advanced past leading bytes without reducing the recorded length, so a later copy reads past the buffer.

    Seen in 1 report
  20. A pointer is calculated by adding an attacker-controlled length to a base pointer without checking it stays within the packet buffer.

    Seen in 1 report
  21. A pointer is declared without initialisation and only assigned inside conditional branches that may not be taken.

    Seen in 1 report
  22. A pointer is dereferenced without a null check in a kernel driver.

    Seen in 1 report
  23. A pointer is left uninitialised before it is used.

    Seen in 1 report
  24. A pointer is not initialised before use when parsing a crafted file.

    Seen in 1 report
  25. A pointer is only checked against a heap range and magic bytes, not against real object identity.

    Seen in 1 report
  26. A pointer is used after the memory it references has been freed.

    Seen in 1 report
  27. A pointer is used after the underlying annotation memory has been freed.

    Seen in 1 report
  28. A pointer is used before it has been initialised when parsing a file.

    Seen in 1 report
  29. A pointer is used before it has been initialised while parsing crafted data.

    Seen in 1 report
  30. A pointer released and then used again, reachable when an allocation fails at a specific moment.

    Seen in 1 report
  31. A pointer returned by find is held across a recursive call that can invoke set on the same hash table.

    Seen in 1 report
  32. A pointer taken from network input is dereferenced without validation.

    Seen in 1 report
  33. A pointer to a list node is stored during iteration, the node is removed and freed, and the freed memory is later read to copy the creation time.

    Seen in 1 report
  34. A pointer to a stack-allocated thread-state node is stored in a global tree, and a kernel oops frees the stack before the node is removed.

    Seen in 1 report
  35. A pointer to a string is stored in a field later assumed to be a hash table because a snippet is processed twice with different types.

    Seen in 1 report
  36. A pointer was dereferenced without a NULL check.

    Seen in 1 report
  37. A pointer was not initialised before use when parsing U3D files.

    Seen in 1 report
  38. A pointer was read and incremented without checking it stayed within the buffer end.

    Seen in 1 report
  39. A pointer was reused after being freed during class termination.

    Seen in 1 report
  40. A pointer was used as a this pointer before being initialised.

    Seen in 1 report
  41. A priority inversion left the mapped storage pointer dangling and there was no validation that uniform buffers were not mapped during draw calls.

    Seen in 1 report
  42. A process-global number formatter was mutated without synchronisation, freeing internal objects while another thread was using them.

    Seen in 1 report
  43. A process-global raw pointer is read and written by several threads without a lock and is not a checked raw pointer, so freed memory is not quarantined.

    Seen in 1 report
  44. A promise marked memory for collection while another call still accessed it.

    Seen in 1 report
  45. A property length from the file is used directly as a copy size without checking the destination size.

    Seen in 1 report
  46. A property lookup that can execute JavaScript is performed, and afterwards the code does not check whether the object it operates on was destroyed.

    Seen in 1 report
  47. A property store object referenced by the page layout engine is freed during a JavaScript callback and later dereferenced without a validity check.

    Seen in 1 report
  48. A property value is used as an array index without validation, allowing a negative index.

    Seen in 1 report
  49. A provider string is copied into a fixed-size stack buffer without checking its length.

    Seen in 1 report
  50. A proxy sink held a raw pointer to a backing sink that was destroyed during stream promotion.

    Seen in 1 report