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,551 to 3,600 of 3,817
  1. The size-tracking member is only updated after frame pool recreation succeeds, so an early return leaves it stale while the texture has already shrunk.

    Seen in 1 report
  2. The Skia GL backend calls raw driver bind and delete functions directly and never applies the workaround that avoids deleting a currently bound framebuffer.

    Seen in 1 report
  3. The skip function does not check whether reading from the stream failed, leaving the total size at zero and causing a zero-length allocation that is later overflowed.

    Seen in 1 report
  4. The sliced string's map was not updated when its parent was replaced, so serialisation trusted a stale type.

    Seen in 1 report
  5. The Smi check was elided based on a constant alternative that only guaranteed value equality, not Smi representation, so a HeapNumber flowed into a store path that omits the write barrier.

    Seen in 1 report
  6. The SMIL compositor holds a stale pointer to an animation function freed by the cycle collector during hyperlink activation.

    Seen in 1 report
  7. The snapshot buffer size does not match the amount of pixel data the graphics driver copies back.

    Seen in 1 report
  8. The SNMP extension did not handle object destruction during garbage collection triggered by unserialize.

    Seen in 1 report
  9. The SOAP method is copied into a 64-byte stack buffer with an unbounded sscanf conversion, and a possibly NULL pointer from a failed strstr lookup is passed into another sscanf.

    Seen in 1 report
  10. The socket binding code added the same socket to a global list twice and then removed it, corrupting the list and causing a double-free on release.

    Seen in 1 report
  11. The socket object does not hold a strong reference to itself during a synchronous framework callback, so it can be destroyed while still on the stack.

    Seen in 1 report
  12. The software copies user-supplied data from a WCP file into a fixed-length stack buffer without first checking its length.

    Seen in 1 report
  13. The software did not validate the return address when returning from a system call via the SYSRET instruction.

    Seen in 1 report
  14. The software does not check that an array index from the file is within bounds before using it.

    Seen in 1 report
  15. The software does not check that an object still exists before operating on it, leading to a use-after-free.

    Seen in 1 report
  16. The software does not check that an object still exists before performing operations on it.

    Seen in 1 report
  17. The software does not check that the length specified in the CharSize attribute fits within the destination stack buffer before copying user-supplied data.

    Seen in 1 report
  18. The software does not properly validate the size or content of data within ARF files before copying it into a fixed-size buffer.

    Seen in 1 report
  19. The software does not validate the length of user-supplied data before copying it into a fixed-length stack buffer.

    Seen in 1 report
  20. The software does not validate the length or structure of data in signature fields.

    Seen in 1 report
  21. The software does not validate the size or content of user-supplied data before copying it into a fixed-size buffer.

    Seen in 1 report
  22. The software does not validate the size or content of user-supplied data in messages before copying it into a fixed-size buffer.

    Seen in 1 report
  23. The software does not validate the size or structure of data within files before using it to index memory.

    Seen in 1 report
  24. The software fails to validate that a document object still exists before performing operations on it.

    Seen in 1 report
  25. The software fails to validate the length of user-supplied data before copying it into a fixed-length heap buffer.

    Seen in 1 report
  26. The software fails to validate the length of user-supplied data before copying it into a fixed-length stack buffer.

    Seen in 1 report
  27. The sort code caches the array storage pointer, buffer length and iterator across calls into attacker-controlled JavaScript.

    Seen in 1 report
  28. The sort reducer snapshotted the receiver's elements and after the callback accepted any map from the original set without re-checking the elements kind.

    Seen in 1 report
  29. The source pointer is advanced with both next() and an offset, so the copy precompile reads unallocated memory.

    Seen in 1 report
  30. The span fast path captures a span over a buffer before all argument conversions finish, so re-entrant JavaScript can detach the buffer and leave the span dangling.

    Seen in 1 report
  31. The span helper checks for detachment but not for a resizable buffer being shrunk, leaving a stale span copied from synchronously.

    Seen in 1 report
  32. The speculative optimisation checks a float can be represented as a small integer but does not convert it, storing a heap number pointer in an integer-typed array.

    Seen in 1 report
  33. The SpeechEvent stored a raw pointer to SpeechRecognition instead of a strong reference, so the object could be destroyed before the queued event executed.

    Seen in 1 report
  34. The spinlock was released before dereferencing a raw pointer returned by the cache, allowing another thread to evict and free the entry.

    Seen in 1 report
  35. The split_argv helper writes argument pointers into a fixed-size array without knowing its length or bounding the number of arguments.

    Seen in 1 report
  36. The stack check operator was marked as having no side effects although it can call runtime code that changes object maps.

    Seen in 1 report
  37. The stack map is recorded at the builtin call's return address but the failure trap resumes at a later address with no stack map.

    Seen in 1 report
  38. The stack spill offset calculation diverges from the offset recorded in the cache state for a particular variable kind.

    Seen in 1 report
  39. The staging buffer size used unchecked 32-bit multiplication, so it wrapped to zero while the copy loop used the real row pitch.

    Seen in 1 report
  40. The start offset was advanced before the trim and then reused for the write-back instead of keeping the original offset.

    Seen in 1 report
  41. The storage-texture binding validation path lacks the dimension-match check that the sampled-texture path enforces.

    Seen in 1 report
  42. The store release function freed an entire block when given a store at its start, leaving other pointers dangling.

    Seen in 1 report
  43. The storebuffer() callback writes each character to the destination buffer without knowing its size, so any output longer than the buffer overflows it.

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

    Seen in 1 report
  45. The STP parser trusts a value from the file and uses it directly as a pointer without validating that it points to valid memory.

    Seen in 1 report
  46. The stream cleanup function pushed a stream pointer onto the purge array without checking whether it was already present.

    Seen in 1 report
  47. The stream handle is detached on GOAWAY without unregistering the datagram visitor, leaving a dangling raw pointer.

    Seen in 1 report
  48. The stream is removed from the map but data_callback still dereferences the stored cbs pointer without checking the stream exists.

    Seen in 1 report
  49. The stream object's liveness is not checked after a synchronous callback chain that can destroy it.

    Seen in 1 report
  50. The stream URL is a shared mutable string and setting it neither checks the stream state nor synchronises with the background callback.

    Seen in 1 report