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,851 to 1,900 of 3,817
  1. An object is freed and replaced during a callback, and later code uses the stale object without validating its type.

    Seen in 1 report
  2. An object is freed but a reference to it remains and is used later.

    Seen in 1 report
  3. An object is freed but still referenced later, a memory management error in the kernel subsystem.

    Seen in 1 report
  4. An object is freed while still referenced in an array, leaving a dangling pointer that is later used through a virtual call.

    Seen in 1 report
  5. An object is freed without checking it still exists or was already freed while parsing a malformed OCSP response.

    Seen in 1 report
  6. An object is operated on without validating that it still exists.

    Seen in 1 report
  7. An object of one type was incorrectly treated as another in the Intl object implementation.

    Seen in 1 report
  8. An object was freed and then used again when the FDF.addContact function ran.

    Seen in 1 report
  9. An object was released re-entrantly while its own listener was being removed.

    Seen in 1 report
  10. An object was used as the wrong type.

    Seen in 1 report
  11. An observer list held a reference to an object freed during cycle collection.

    Seen in 1 report
  12. An off-by-one error in the globbing range parser read one byte past the end of the URL buffer.

    Seen in 1 report
  13. An off-by-one error when handling certain Unicode characters after an escape caused a write beyond the allocated buffer.

    Seen in 1 report
  14. An off-by-one in a loop termination condition caused a 4-byte out-of-bounds write on the stack.

    Seen in 1 report
  15. An off-by-one in a read helper plus incorrect size accounting causes an integer underflow and heap overflow.

    Seen in 1 report
  16. An off-by-one in the length check inside the punycode decode function allows one more element to be written than the buffer holds.

    Seen in 1 report
  17. An off-by-one in the suboption bounds check permitted writing index 512 of a 512-byte subbuffer.

    Seen in 1 report
  18. An off-by-one sets an offset one less than the data length so a later read runs past the buffer.

    Seen in 1 report
  19. An offset added to a buffer base pointer is not validated against the buffer size.

    Seen in 1 report
  20. An old out-of-bounds write in the authencesn module became exploitable once the in-place optimisation merged the buffers.

    Seen in 1 report
  21. An out-of-bounds read in the line-breaking white space check, exposed by a change to float reflow.

    Seen in 1 report
  22. An out-of-bounds write in namespace handling corrupts heap memory in a SYSTEM service.

    Seen in 1 report
  23. An out-of-memory failure left a pointer uninitialised before it was dereferenced.

    Seen in 1 report
  24. An out-of-range index passed to child insertion writes outside the allocated array.

    Seen in 1 report
  25. An outdated image library with a known heap overflow combined with a Content-Length restriction bypass lets oversized payloads reach the vulnerable code.

    Seen in 1 report
  26. An overflow check that only breaks the inner loop lets the outer loop continue with a partial count, so a buffer is allocated too small for the later write.

    Seen in 1 report
  27. An overflowing signed size was passed to the GL driver without being cast to an unsigned size type, so the allocated buffer and the reported size disagreed.

    Seen in 1 report
  28. An oversized lengthOfEachRecord field in the DBF header drives a memcpy past the end of a buffer.

    Seen in 1 report
  29. An SPS with the same ID overwrites an existing one without invalidating or re-validating the PPS that references it.

    Seen in 1 report
  30. An unbounded string concatenation copied the login token into a fixed-size buffer without a length check.

    Seen in 1 report
  31. An unbounded string copy copied a user-controlled identity into a 128-byte heap buffer.

    Seen in 1 report
  32. An unbounded string copy of the decoded password into a 120-byte stack buffer, with the base64 decode also given the wrong output size limit.

    Seen in 1 report
  33. An unbounded string copy of XML attribute values into fixed-size stack buffers.

    Seen in 1 report
  34. An unbounded string copy routine was used without checking the destination buffer size.

    Seen in 1 report
  35. An unbounded string scan copies data into fixed-size stack buffers.

    Seen in 1 report
  36. An unchecked 32-bit addition in reserveSpace combines with a stale reserved-space value not reset when a reservation aborts early.

    Seen in 1 report
  37. An unchecked comfort noise error plus an index-wrapping function that subtracts once instead of taking a modulo allows out-of-bounds access.

    Seen in 1 report
  38. An unchecked length or offset calculation in the driver underflowed and wrapped to a large value.

    Seen in 1 report
  39. An unchecked string copy into a fixed-size stack buffer in the HNAP request handler.

    Seen in 1 report
  40. An unchecked string copy of an attacker-controlled filename into a fixed-size stack buffer.

    Seen in 1 report
  41. An unchecked string copy of BaseFont data into a fixed-size heap buffer.

    Seen in 1 report
  42. An unchecked user-supplied length is used in a size calculation, causing an integer overflow before buffer allocation.

    Seen in 1 report
  43. An undocumented call leaves a global object pointing at memory that a later operation frees, and the next access reuses the dangling pointer.

    Seen in 1 report
  44. An unguarded integer addition when accumulating the total length of custom clipboard data can overflow a 32-bit unsigned integer.

    Seen in 1 report
  45. An uninitialised list object was used, and an out-of-bounds value was then used as a write pointer.

    Seen in 1 report
  46. An uninitialised start index field in a ruby column object leads to an out-of-bounds vector access.

    Seen in 1 report
  47. An uninitialized variable is read, causing an out-of-bounds memory read.

    Seen in 1 report
  48. An unmap operation is not protected by the same lock as the job that writes to the mapped memory, so the backing page can be freed in between.

    Seen in 1 report
  49. An unsafe formatted-scan call splits user data into fixed-size stack buffers with no bounds check.

    Seen in 1 report
  50. An unsanitised username was passed directly as a format string to the system logger.

    Seen in 1 report