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 251 to 300 of 3,817
  1. The component did not properly validate or manage memory objects while parsing media content.

    Seen in 7 reports
  2. The driver did not validate IOCTL parameter sizes before writing, and size calculations overflowed before allocation.

    Seen in 7 reports
  3. The HTML parser trusted lengths or structures and used objects without checking they still existed.

    Seen in 7 reports
  4. The parser does not validate the type of user-supplied data before using it, leading to type confusion.

    Seen in 7 reports
  5. The parser frees an object but later dereferences it without checking that it is still valid.

    Seen in 7 reports
  6. The parser trusted size or offset values from the file without checking them against the actual buffer size.

    Seen in 7 reports
  7. The parsers trust size or length values from the file without checking them against the allocated buffer before writing.

    Seen in 7 reports
  8. The same memory is released more than once, sometimes only reachable by winning a race.

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

    Seen in 7 reports
  10. User-supplied data is copied into a fixed-length stack buffer without validating its length.

    Seen in 7 reports
  11. User-supplied length or size fields are trusted and copied into fixed-size stack or heap buffers without a bounds check.

    Seen in 7 reports
  12. A length or size field from a file is used in arithmetic without bounds checks, causing underflow or overflow and a huge size for a memory operation.

    Seen in 6 reports
  13. A length taken from the file is copied into a heap buffer without checking the buffer is large enough.

    Seen in 6 reports
  14. A memory corruption flaw in how the engine processed specially crafted files.

    Seen in 6 reports
  15. A raw pointer is cached and used after a synchronous call can destroy the object it points to, with no liveness or weak pointer check.

    Seen in 6 reports
  16. A resource is used before it is properly initialised, leading to memory corruption or disclosure.

    Seen in 6 reports
  17. A size value was converted between integer widths, turning negative or underflowing before a memory write.

    Seen in 6 reports
  18. A stale reference to a freed Doc object is used without checking existence.

    Seen in 6 reports
  19. An integer overflow in object handling allowed a local user to gain elevated code execution.

    Seen in 6 reports
  20. Buffer sizes were calculated from file-controlled counts without checking for integer overflow.

    Seen in 6 reports
  21. Code used objects without first checking they still existed, giving use-after-free conditions across PDF widgets, forms, templates and graphics surfaces.

    Seen in 6 reports
  22. Decoding routines (UTF-8, Base64, Pack200, RLE, packed-bit) mishandled malformed input.

    Seen in 6 reports
  23. Header or field values are copied into fixed-size stack buffers without checking their length.

    Seen in 6 reports
  24. Input copied into a fixed-size heap buffer without a proper length check.

    Seen in 6 reports
  25. Integer overflow, underflow or truncation in a buffer size calculation leads to an undersized allocation and a later out-of-bounds write.

    Seen in 6 reports
  26. Length fields from the file are trusted and copied into fixed buffers without bounds checks, and dimensions are multiplied without overflow checks.

    Seen in 6 reports
  27. Length or count arithmetic underflowed or overflowed before a memory write or allocation.

    Seen in 6 reports
  28. Length or size calculations added or multiplied values in fixed-width integers without overflow checks, so undersized buffers were allocated and later written past.

    Seen in 6 reports
  29. Lengths and sizes read from the file are used for allocation or copying without bounds checks, including zero and negative values.

    Seen in 6 reports
  30. Memory contents are not properly initialised before use, leading to privilege escalation.

    Seen in 6 reports
  31. Memory is read or a pointer dereferenced before it has been initialised.

    Seen in 6 reports
  32. Word document parsing lacks bounds checks before writing attacker-sized data into heap buffers.

    Seen in 6 reports
  33. X.Org Server request handling does not validate user-supplied length or count fields, leading to integer underflows, out-of-bounds accesses or heap buffer overflows.

    Seen in 6 reports
  34. Objects are freed while still referenced, or pointers are freed without being cleared, leading to use-after-free and double-free.

    Seen in 6 reports
  35. File parser object lifetime handling uses objects without checking they still exist, leading to use-after-free.

    Seen in 6 reports
  36. WebKit memory management accesses objects after they are freed because references were not cleared when memory was released.

    Seen in 6 reports
  37. Oversized or malformed header and command values are copied into fixed buffers.

    Seen in 6 reports
  38. Parsers trust size, length or structure fields in the file without validating them.

    Seen in 6 reports
  39. Parsers trusted size, count or length fields from the file and wrote or read without checking them against the allocated buffer.

    Seen in 6 reports
  40. Parsers use an object after it has been freed or without checking it still exists.

    Seen in 6 reports
  41. CAD file import parsers use objects without checking they still exist, leading to use-after-free.

    Seen in 6 reports
  42. Raw pointers were stored across calls that could free the underlying object, leaving dangling references.

    Seen in 6 reports
  43. Signed comparisons or arithmetic underflowed or overflowed when computing sizes or indices, so buffers were allocated too small.

    Seen in 6 reports
  44. Size calculations multiply or add guest-controlled values without overflow checks, producing undersized allocations.

    Seen in 6 reports
  45. Size calculations overflow or truncate before a buffer is allocated, so the buffer is smaller than what is later written.

    Seen in 6 reports
  46. The IFC file parser does not properly validate the size or bounds of data before writing to a buffer, leading to an out-of-bounds write.

    Seen in 6 reports
  47. The NCI file parser does not validate the size or content of user-supplied data before copying it into a fixed-size buffer.

    Seen in 6 reports
  48. The parser does not check the type of a structure before using it, causing type confusion.

    Seen in 6 reports
  49. The parser does not validate the type of user-supplied data before using it, causing a type confusion.

    Seen in 6 reports
  50. The parser trusts the type of data in the file without validating it, so crafted input is treated as a different type.

    Seen in 6 reports