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 151 to 200 of 3,817
  1. Length or offset values taken from the file were trusted and used to write outside the allocated buffer.

    Seen in 11 reports
  2. Memory accessed after being freed, often requiring a race condition to exploit.

    Seen in 11 reports
  3. File parsers lack length checks before copying file-supplied data into fixed-size stack or heap buffers.

    Seen in 11 reports
  4. Office mishandles objects in memory while parsing crafted documents.

    Seen in 11 reports
  5. Several Apple use-after-free and double free reports come from memory being freed while still referenced or freed twice.

    Seen in 11 reports
  6. Stack-based buffer overflows occur from copying input into fixed-size stack buffers without length checks.

    Seen in 11 reports
  7. The parser did not validate the size, type or structure of data read from DXF, SAT or JT files before using it.

    Seen in 11 reports
  8. The parser does not validate user-supplied data before using it, causing memory corruption.

    Seen in 11 reports
  9. The parser or handler does not check that an object still exists before using it, leading to use-after-free.

    Seen in 11 reports
  10. The parser trusts size or offset fields from the file when computing where to read or write, so accesses land outside the buffer.

    Seen in 11 reports
  11. User-supplied form values are copied into fixed-size stack buffers with unbounded string copies.

    Seen in 11 reports
  12. A length or size field taken from the file is trusted and copied into a fixed-size stack or heap buffer without a bounds check.

    Seen in 10 reports
  13. A length taken from the file is copied into a fixed-size stack buffer without checking that it fits.

    Seen in 10 reports
  14. A type confusion where an object of one type is used as another.

    Seen in 10 reports
  15. An in-place optimisation made source and destination share memory, so a scratch write past the output boundary landed in spliced page cache pages.

    Seen in 10 reports
  16. Data or resources are used as the wrong type because the type is not validated.

    Seen in 10 reports
  17. Heap buffers are written past their end when parsing crafted files.

    Seen in 10 reports
  18. HTTP handlers copy multipart values, boundaries, headers or bodies into fixed stack buffers without length checks.

    Seen in 10 reports
  19. Length or size calculations done in fixed-width integers without overflow checks, so buffers are undersized.

    Seen in 10 reports
  20. Memory management errors, including use-after-free, in web content processing.

    Seen in 10 reports
  21. Packet length validation is missing: parsers copy a length field from the packet into a buffer without checking that the declared length fits the destination.

    Seen in 10 reports
  22. CAD and 3D file parsers repeatedly failed to check the length of user-supplied data before copying it into fixed-size buffers.

    Seen in 10 reports
  23. Pointers or memory are used before being initialised, or uninitialised values are freed as pointers.

    Seen in 10 reports
  24. Race conditions open a timing window for memory corruption.

    Seen in 10 reports
  25. The parser copied a length-controlled field into a fixed-size buffer without checking that the length fitted.

    Seen in 10 reports
  26. The scripting engine mishandles objects in memory, such as a use-after-free or type confusion.

    Seen in 10 reports
  27. User-controlled length copied into a fixed stack or heap buffer without a bounds check.

    Seen in 10 reports
  28. User-supplied length is not checked before copying into a fixed-length stack buffer.

    Seen in 10 reports
  29. A length or size sum overflowed before allocation, so a small buffer was allocated and then written past its end.

    Seen in 9 reports
  30. An annotation object is freed but later operated on without checking that it still exists.

    Seen in 9 reports
  31. An object is freed by garbage collection or window teardown while an asynchronous callback or event handler still holds a raw pointer to it.

    Seen in 9 reports
  32. Annotation, document and form objects are freed but later used without checking that they still exist.

    Seen in 9 reports
  33. Data or objects are treated as the wrong type, either through type confusion or by trusting a type field from input.

    Seen in 9 reports
  34. Handlers trusted the type of user-supplied data without validating it, causing type confusion in document commands and virtual device commands.

    Seen in 9 reports
  35. Integer overflow or wraparound when handling sizes or lengths, leading to memory corruption.

    Seen in 9 reports
  36. Objects are freed but later used without checking that they still exist, across screen saver windows, sync objects, PDF fields and browser engine objects.

    Seen in 9 reports
  37. Objects are freed but still referenced, giving use-after-free conditions.

    Seen in 9 reports
  38. Objects are freed during document processing but later dereferenced without checking they still exist.

    Seen in 9 reports
  39. Windows Installer frees objects while they are still referenced, with a race window making the use-after-free reachable.

    Seen in 9 reports
  40. Office and graphics components do not handle objects in memory correctly during document or image processing, leading to memory corruption.

    Seen in 9 reports
  41. Office fails to properly handle objects in memory when parsing crafted files.

    Seen in 9 reports
  42. 3D model file parsers did not validate the size or structure of user-supplied data before writing it to memory.

    Seen in 9 reports
  43. CAD file import parsers read fields from files without validating their length or structure, causing reads past the end of allocated buffers.

    Seen in 9 reports
  44. Pointers supplied by callers or left uninitialised are dereferenced without validation.

    Seen in 9 reports
  45. Size or count values from the input are used in arithmetic for buffer allocation without validation, so the calculation wraps around.

    Seen in 9 reports
  46. The parser does not validate the size of user-supplied data before writing to a fixed-size buffer, causing an out-of-bounds write.

    Seen in 9 reports
  47. The parser used an object without checking it still existed.

    Seen in 9 reports
  48. Uniscribe mishandles objects in memory while processing crafted content.

    Seen in 9 reports
  49. User-supplied length is not checked before copying into a heap buffer.

    Seen in 9 reports
  50. A bounds check is missing or only present as a debug assertion, so release builds proceed past the end of a buffer or map.

    Seen in 8 reports