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,301 to 3,350 of 3,817
  1. The parser does not validate the size or structure of user-supplied data before memory operations.

    Seen in 1 report
  2. The parser does not validate the size or structure of user-supplied data before reading it.

    Seen in 1 report
  3. The parser does not validate the type of user-supplied data before using it, causing type confusion.

    Seen in 1 report
  4. The parser failed to isolate the expression scope when parsing a class static block, so a this reference propagated to the outer function.

    Seen in 1 report
  5. The parser fails to validate that an object still exists before performing operations on it.

    Seen in 1 report
  6. The parser fails to validate the size or bounds of user-supplied data before writing to memory.

    Seen in 1 report
  7. The parser fails to validate the type of data it reads, so a crafted file causes one structure to be interpreted as another.

    Seen in 1 report
  8. The parser fails to validate user-supplied data, causing memory corruption.

    Seen in 1 report
  9. The parser freed an object without checking whether it had already been freed.

    Seen in 1 report
  10. The parser frees an element array when a count is zero but does not clear the stored pointer, so destruction later uses freed memory.

    Seen in 1 report
  11. The parser frees an object and then frees it again without checking whether it still exists.

    Seen in 1 report
  12. The parser frees an object during file processing but later dereferences it without checking validity.

    Seen in 1 report
  13. The parser increments a pointer past the end of the buffer without checking, causing an out-of-bounds read in comment skipping.

    Seen in 1 report
  14. The parser level counter was used as an array index without checking it was in bounds.

    Seen in 1 report
  15. The parser loop uses a pre-increment check instead of a less-than comparison, so the pointer can jump past the end and the loop continues.

    Seen in 1 report
  16. The parser only records the highest output array index when it is a literal constant, so loop indices skip the draw-buffer limit check.

    Seen in 1 report
  17. The parser overwrites the global storage qualifier with an incomplete interpolation qualifier and emits an invalid storage class during SPIR-V generation.

    Seen in 1 report
  18. The parser pops one state too many when a superscript token appears in the top group alongside a stylesheet.

    Seen in 1 report
  19. The parser reads user-supplied data without validating its length or structure first.

    Seen in 1 report
  20. The parser set the form association on the image before the append succeeded, and the abort path neither cleared the raw form pointer nor completed the reciprocal registration.

    Seen in 1 report
  21. The parser set the returns-value flag before dead code elimination removed the return statement, and the default return insertion did not check for an empty statement list.

    Seen in 1 report
  22. The parser skips a bounds check for non-base layers, so a higher reference picture count is copied into a base-layer slice header without re-validation.

    Seen in 1 report
  23. The parser truncated format before multiplying while the consumer multiplied before dividing, so the byte length was larger than the buffer.

    Seen in 1 report
  24. The parser trusted a length or count from the file without checking it against the destination buffer size.

    Seen in 1 report
  25. The parser trusted an object size field without validating it, so arithmetic on the size overflowed and the result was used as a read length.

    Seen in 1 report
  26. The parser trusted size or offset fields in the file without validating them before memory operations.

    Seen in 1 report
  27. The parser trusts a length field from the incoming packet, so the arithmetic overflows and the write goes out of bounds.

    Seen in 1 report
  28. The parser trusts a length field in incoming data and copies it into a fixed-size heap buffer without checking it against the buffer size.

    Seen in 1 report
  29. The parser trusts a length or offset from the input without checking it against buffer boundaries.

    Seen in 1 report
  30. The parser trusts size and content fields from the file before writing into a buffer.

    Seen in 1 report
  31. The parser used size fields from the file in an arithmetic calculation for buffer allocation without checking for overflow.

    Seen in 1 report
  32. The parser uses an unchecked 16-bit length read from the file as the size argument to a memory copy without validating it against the destination buffer.

    Seen in 1 report
  33. The parser uses file-supplied data without validating its type, producing a type confusion.

    Seen in 1 report
  34. The parser validates the output buffer and pointer target offset but never checks that the label copy source stays within the packet length.

    Seen in 1 report
  35. The parser writes user-supplied data into a fixed-size buffer without checking its size.

    Seen in 1 report
  36. The partial-read retry size is computed from the source page offset only and never clamped to the caller's destination size.

    Seen in 1 report
  37. The partition detection code allocated a 512-byte stack buffer but passed the attacker-controlled block size to the read function.

    Seen in 1 report
  38. The PASS command handler copies user input into a fixed-size stack buffer without a bounds check.

    Seen in 1 report
  39. The passthrough decoder relied on a reverse lookup of a service identifier that ANGLE could recycle while the underlying buffer remained alive as an orphan.

    Seen in 1 report
  40. The password field from a UDP message is copied into a fixed-size stack buffer with an unbounded string copy.

    Seen in 1 report
  41. The password length field from the CONNECT packet is used without bounds checking.

    Seen in 1 report
  42. The password reset endpoint lacked any rate limiting or throttling per user or email address.

    Seen in 1 report
  43. The patch set the user-mode access bit on the self-referencing page table entry, exposing kernel memory to user mode.

    Seen in 1 report
  44. The path comparison skips the first character of the stored cookie path and then searches for a slash without checking the path is non-empty, so an empty path reads past the buffer.

    Seen in 1 report
  45. The path conversion copies into a fixed 255-wide-character stack buffer with an unbounded loop, assuming Windows paths never exceed 255 characters.

    Seen in 1 report
  46. The path indices from the file are not checked against the size of the vector before being used as array indices, leading to out-of-bounds writes.

    Seen in 1 report
  47. The path verb count was accumulated in a 32-bit integer with no overflow check, and the wrapped value sized a vertex buffer while the write loop iterated the real path data.

    Seen in 1 report
  48. The payload access function lacks the page reference count and initialisation checks that other write paths perform before writing to overflow pages.

    Seen in 1 report
  49. The PDF Length field sizes a copy loop that writes into a fixed 16-byte stack buffer.

    Seen in 1 report
  50. The peer connection handler kept a raw frame pointer that was not cleared when the frame was destroyed.

    Seen in 1 report