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 3,751 to 3,800 of 3,817
  1. Unmap freed the allocation and then removed a subspan pointer that was offset into the middle of it, so the wrong block was freed.

    Seen in 1 report
  2. Unregistering does not cancel already-enqueued run loop notifications, so a late notification reaches freed memory.

    Seen in 1 report
  3. Unsafe buffer allocation was used and read methods did not enforce that the requested range had been written.

    Seen in 1 report
  4. Unsafe handling of certificate and TLS handshake data led to double frees, leaks, assertion failures and buffer overflows.

    Seen in 1 report
  5. Unspecified C++ argument evaluation order captures a raw pointer before a script-reentrant conversion call that can destroy the underlying object.

    Seen in 1 report
  6. Untrusted image blobs decoded with a memory-unsafe bitmap API in the privileged browser process instead of a sandboxed utility process.

    Seen in 1 report
  7. Unvalidated content rectangle dimensions are used to size a bitmap without checking the byte size fits the mapped shared memory.

    Seen in 1 report
  8. Use of an uninitialised resource before it is set up.

    Seen in 1 report
  9. Use-after-free in the CLFS driver due to improper memory handling.

    Seen in 1 report
  10. Use-after-free memory management error.

    Seen in 1 report
  11. Use-after-free where memory is freed but later accessed without being cleared.

    Seen in 1 report
  12. Use-after-free where memory is still referenced after being released, reachable via an operation that causes an allocation failure.

    Seen in 1 report
  13. Use-after-free.

    Seen in 1 report
  14. User data copied into a fixed-length stack buffer without a length check.

    Seen in 1 report
  15. User data length was not validated before copying into a fixed-length heap buffer.

    Seen in 1 report
  16. User-controlled data is copied into a fixed stack buffer using a user-supplied length with no bounds check.

    Seen in 1 report
  17. User-controlled input was passed directly as the format string to a logging call.

    Seen in 1 report
  18. User-controlled sockaddr data is copied into a fixed 128-byte stack buffer using a length field up to 255, with only a production-stripped assertion as a check.

    Seen in 1 report
  19. User-controlled strings were passed directly as format strings to printf-style functions.

    Seen in 1 report
  20. User-supplied crop dimensions were not validated and return values from image creation were not checked, with signed arithmetic that could overflow.

    Seen in 1 report
  21. User-supplied data copied into a fixed-length stack buffer without a length check.

    Seen in 1 report
  22. User-supplied data from a PAR file was copied into a fixed-size stack buffer without checking its length.

    Seen in 1 report
  23. User-supplied data in template objects is not validated before use.

    Seen in 1 report
  24. User-supplied data is copied into a fixed-length stack buffer without a length check.

    Seen in 1 report
  25. User-supplied data is copied into a fixed-size stack buffer without length validation.

    Seen in 1 report
  26. User-supplied data is copied into a heap buffer without checking that its length fits.

    Seen in 1 report
  27. User-supplied data is not validated before an integer truncation in buffer allocation.

    Seen in 1 report
  28. User-supplied data is not validated, causing an integer overflow before buffer allocation.

    Seen in 1 report
  29. User-supplied data is not validated, causing an integer underflow before a memory write.

    Seen in 1 report
  30. User-supplied data is not validated, leading to an integer underflow before writing to memory.

    Seen in 1 report
  31. User-supplied data length is not validated before copying into a fixed-length heap buffer.

    Seen in 1 report
  32. User-supplied data length is not validated before copying into a fixed-length stack buffer.

    Seen in 1 report
  33. User-supplied data length not validated before copying into a fixed-length stack buffer.

    Seen in 1 report
  34. User-supplied data length was not validated before copying to a fixed-length stack buffer.

    Seen in 1 report
  35. User-supplied data length was not validated before copying to a stack buffer.

    Seen in 1 report
  36. User-supplied data length was not validated before copying, causing a heap buffer overflow.

    Seen in 1 report
  37. User-supplied data was not validated when parsing indices, leading to an out-of-bounds read.

    Seen in 1 report
  38. User-supplied gui_region value copied into a fixed-length stack buffer without checking its length.

    Seen in 1 report
  39. User-supplied header data was copied into a fixed-length heap buffer without a length check.

    Seen in 1 report
  40. User-supplied JSON string values are passed to sprintf into a fixed-size stack buffer without bounds checking.

    Seen in 1 report
  41. User-supplied length values were not validated against a minimum before arithmetic, causing an integer underflow.

    Seen in 1 report
  42. User-supplied metadata is copied into a fixed-length stack buffer without a length check.

    Seen in 1 report
  43. User-supplied pointers in the IOCTL input buffer are used as callback function pointers without validation.

    Seen in 1 report
  44. User-supplied site name is copied into a fixed-size stack buffer without validating its length.

    Seen in 1 report
  45. User-supplied size data is not validated before a buffer is allocated, causing an integer overflow.

    Seen in 1 report
  46. User-supplied value is used in a calculation without validation, causing an integer underflow before a memory write.

    Seen in 1 report
  47. User-supplied values are used in a calculation without validation, causing an integer overflow.

    Seen in 1 report
  48. User-supplied xpath and parameter values are copied into a fixed-length stack buffer without a length check.

    Seen in 1 report
  49. V8 wrappers are created without registering them in the persistent map.

    Seen in 1 report