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 501 to 550 of 3,817
  1. Image parsers did not validate the size or content of user-supplied data before writing to memory.

    Seen in 3 reports
  2. Input copied into heap buffers without a proper bounds check.

    Seen in 3 reports
  3. Insufficient bounds checking when the graphics compilation service processed crafted graphics data.

    Seen in 3 reports
  4. Integer conversion errors (signed conversion, sign extension, multiplication overflow) in record length handling lead to undersized allocations and out-of-bounds writes.

    Seen in 3 reports
  5. Integer overflow or wraparound not handled safely.

    Seen in 3 reports
  6. Integer overflow, wraparound or underflow is not checked before the value is used.

    Seen in 3 reports
  7. Integer underflow or overflow when handling crafted input.

    Seen in 3 reports
  8. Integer wraparound when parsing HID device data.

    Seen in 3 reports
  9. JSON string values were copied into fixed-size global or stack buffers with string copy routines and no length validation.

    Seen in 3 reports
  10. Kernel-mode driver fails to properly handle objects in memory.

    Seen in 3 reports
  11. Length and size values taken from the PDF file were used without bounds checks, allowing writes past allocated buffers.

    Seen in 3 reports
  12. Length checks use addition or subtraction that can overflow or underflow, letting an oversized value pass the check.

    Seen in 3 reports
  13. Media decoders mapped or copied data without checking sizes and run counts, allowing out-of-bounds heap access.

    Seen in 3 reports
  14. Memory freed but still referenced during packet handling.

    Seen in 3 reports
  15. Memory is freed and then used again while processing a crafted document.

    Seen in 3 reports
  16. Image parsing has missing or incorrect bounds checks before writing to a memory buffer, and an integer underflow.

    Seen in 3 reports
  17. Storage Spaces has a missing or incorrect length check when copying into a fixed-size stack buffer.

    Seen in 3 reports
  18. The SMB client has missing or incorrect length checks when parsing data returned by an SMB server.

    Seen in 3 reports
  19. The Exynos NPU driver does not validate user-supplied buffer lengths before copying data.

    Seen in 3 reports
  20. Handling crafted input causes a NULL pointer dereference.

    Seen in 3 reports
  21. Numeric conversions and additions are done without checking for truncation or overflow.

    Seen in 3 reports
  22. Objects are freed while another thread or callback still holds a reference.

    Seen in 3 reports
  23. The graphics kernel frees objects while they are still referenced, with a race window.

    Seen in 3 reports
  24. PDF link annotations use objects without checking they still existed.

    Seen in 3 reports
  25. Printer client decoding uses packet length fields to drive decode loops without checking them against the real buffer size.

    Seen in 3 reports
  26. Parameters and objects are used without validating their type, leading to type confusion.

    Seen in 3 reports
  27. CAD file import parsers access memory that was never initialised before use.

    Seen in 3 reports
  28. Parsers did not validate the type of user-supplied data, leading to type confusion.

    Seen in 3 reports
  29. CAD file parsers trusted length values from the file and copied that many bytes into fixed-size heap or stack buffers without checking against the buffer size.

    Seen in 3 reports
  30. CAD file parsers use a pointer that was never initialised when handling particular file elements.

    Seen in 3 reports
  31. Pointers are dereferenced before being initialised.

    Seen in 3 reports
  32. Pointers taken from untrusted input are dereferenced without validation.

    Seen in 3 reports
  33. Products of dimensions or additions of offsets overflow before allocation, so buffers are smaller than the data written.

    Seen in 3 reports
  34. Reference counts are decremented incorrectly, freeing objects still held in tables or queues.

    Seen in 3 reports
  35. Resources are freed before pending GPU work is waited on, or before a re-entrant flush completes.

    Seen in 3 reports
  36. Run-length decoding loops do not check the fill count against the remaining buffer space.

    Seen in 3 reports
  37. Shared memory is read twice or accessed without locking, allowing a race to change data between uses.

    Seen in 3 reports
  38. Signed comparisons let negative or wrapped sizes pass allocation checks and return undersized buffers.

    Seen in 3 reports
  39. Size and length fields read from the file are used without checking them against the remaining buffer.

    Seen in 3 reports
  40. Size arithmetic used signed integers without overflow checks, so wrapped values produced undersized allocations.

    Seen in 3 reports
  41. Size calculations multiply or add values without checking for integer overflow.

    Seen in 3 reports
  42. Size calculations overflow or underflow before allocation or copying.

    Seen in 3 reports
  43. Size calculations such as head plus count or index plus one overflow before the capacity check, so buffers are undersized.

    Seen in 3 reports
  44. Size fields from the file are multiplied or added without overflow checks, so allocations wrap to tiny buffers.

    Seen in 3 reports
  45. Size or length values were not validated, causing integer overflow or underflow before memory allocation or writes.

    Seen in 3 reports
  46. Stack buffers are written past their end when parsing crafted files.

    Seen in 3 reports
  47. Static casts to the wrong type or type confusion between field types and argument lists.

    Seen in 3 reports
  48. The action handler used an object after it had been freed without checking it still existed.

    Seen in 3 reports
  49. The array element count is multiplied by the structure size without an overflow check, leading to an undersized allocation.

    Seen in 3 reports
  50. The buffer is sized with one calculation while the read or write uses a different, larger value.

    Seen in 3 reports