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 2,051 to 2,100 of 3,817
  1. File-backed pages spliced into a receive queue before the socket switches mode are decrypted in place, so the keystream writes into the page cache.

    Seen in 1 report
  2. Firmware update component copied an FTP URL path into a fixed-length stack buffer without validating its length.

    Seen in 1 report
  3. Fixed stack buffer sizes assume fewer points and verbs per clipped piece than a piece spanning both clip edges needs.

    Seen in 1 report
  4. Fixed-size copies use the destination size instead of the actual source length.

    Seen in 1 report
  5. Form key and value strings are copied into fixed-size stack buffers using the calculated length rather than the buffer size.

    Seen in 1 report
  6. Format event handler frees a text field object but a stale reference is kept and reused.

    Seen in 1 report
  7. Frame and channel counts are converted to a 32-bit buffer size without bounds validation or safe arithmetic.

    Seen in 1 report
  8. Freed pointers were not set to NULL, so they still referenced freed chunks that could be reused.

    Seen in 1 report
  9. Freeing an IPv4 options object with kfree() instead of kfree_rcu(), so reclamation did not wait for readers inside an RCU read-side critical section.

    Seen in 1 report
  10. Front-end validation bounds the destination level against global limits rather than the texture's allocated levels, and the backend relies on a debug-only assertion.

    Seen in 1 report
  11. Front-end validation only rejected structs containing samplers for assignment and initialisation, so equality operators slipped through.

    Seen in 1 report
  12. Frontend validation read window dimensions into 32-bit integers without limiting their product, so downstream 64-bit arithmetic overflowed.

    Seen in 1 report
  13. Getters are marked pure even though they flush layout and can run script.

    Seen in 1 report
  14. GLB parser copies data into a heap buffer without checking length.

    Seen in 1 report
  15. GLES3 context objects were freed without synchronising with concurrent GL state-change calls.

    Seen in 1 report
  16. Global context freed on shutdown while other objects can still be used.

    Seen in 1 report
  17. Glyph positioning keeps a pointer to a text run that a style-change reflow clears mid-layout, so it reads freed memory.

    Seen in 1 report
  18. GPU-side validation for slice does not restrict the input rank to be non-scalar, so a rank-0 input reaches the backend.

    Seen in 1 report
  19. Grouped convolution validation checked input channels against groups but not output channels, and the reference kernel used truncated integer division for filters per group.

    Seen in 1 report
  20. Guest memory isolation fails under nested virtualisation on AMD processors.

    Seen in 1 report
  21. Guest-supplied data is used in a buffer size calculation without a length check, allowing an integer overflow.

    Seen in 1 report
  22. Hand-written inline assembly clobber lists omit a non-volatile register, breaking the calling convention.

    Seen in 1 report
  23. Handler uses an object without first confirming it still exists.

    Seen in 1 report
  24. Handlers called the dialog close and then dereferenced the request pointer without checking whether the controller itself was synchronously destroyed.

    Seen in 1 report
  25. Handlers were only detached from the context on destruction, not on garbage collection, so they could still reach a collected context.

    Seen in 1 report
  26. Handling of break inside a lambda leaves the stack pointer in a bad position so the break opcode reads before the stack buffer.

    Seen in 1 report
  27. Handshake or protocol messages are not validated for order or timing, leading to a memory access error.

    Seen in 1 report
  28. Header parser copied an unbounded header string into a fixed-size stack buffer without checking its length.

    Seen in 1 report
  29. Header removal happens after a callback that can run synchronously and destroy the object owning the headers, leaving a dangling reference.

    Seen in 1 report
  30. Heap buffer overflow in packet processing code where the write length is not checked against the allocation.

    Seen in 1 report
  31. Heap buffer overflow in the NTFS or ReFS driver when parsing a crafted filesystem image.

    Seen in 1 report
  32. Heap buffer overflow in the push notification component, with no specific coding mistake described.

    Seen in 1 report
  33. Heap buffer overflow when processing a crafted file.

    Seen in 1 report
  34. Heap corruption in the IOBase readline implementation.

    Seen in 1 report
  35. Heap corruption in the table-reading function when processing a malformed font file.

    Seen in 1 report
  36. Heap overflow in the ink-to-text conversion code.

    Seen in 1 report
  37. Heap overflow when parsing a crafted media file.

    Seen in 1 report
  38. HEVC decoder fails to validate an object's existence before using it when parsing MKV files.

    Seen in 1 report
  39. Hitting the recursion limit leaves the process in an irregular state, and the caught exception lets execution continue into an invalid pointer dereference.

    Seen in 1 report
  40. HSTS sharing was implemented without mutexes or thread locks.

    Seen in 1 report
  41. HTTP request handling writing data into a buffer smaller than the data size.

    Seen in 1 report
  42. Huffman code lengths were not validated before indexing a fixed 64-byte count array.

    Seen in 1 report
  43. Image dimensions are not validated before memory is allocated for conversion.

    Seen in 1 report
  44. Implicit conversion of a size_t length to a signed int made the remaining length negative and caused an oversized copy into a one-byte stack buffer.

    Seen in 1 report
  45. Improper bound checking when Windows Address Book processed vcard files led to memory corruption.

    Seen in 1 report
  46. Improper handling of memory objects when processing JavaScript, leading to an out-of-bounds write.

    Seen in 1 report
  47. Improper handling of objects in memory allows a protected file to be overwritten or modified.

    Seen in 1 report
  48. Improper handling of objects in memory in media processing.

    Seen in 1 report
  49. Improper handling of objects in memory in the database engine.

    Seen in 1 report
  50. Improper handling of objects in memory in Windows Error Reporting led to privilege escalation.

    Seen in 1 report