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.
-
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
-
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
-
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
-
The sliced string's map was not updated when its parent was replaced, so serialisation trusted a stale type.
Seen in 1 report
-
$2,000 Medium
-
-
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
-
The SMIL compositor holds a stale pointer to an animation function freed by the cycle collector during hyperlink activation.
Seen in 1 report
-
The snapshot buffer size does not match the amount of pixel data the graphics driver copies back.
Seen in 1 report
-
The SNMP extension did not handle object destruction during garbage collection triggered by unserialize.
Seen in 1 report
-
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
-
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
-
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
-
The software copies user-supplied data from a WCP file into a fixed-length stack buffer without first checking its length.
-
The software did not validate the return address when returning from a system call via the SYSRET instruction.
Seen in 1 report
-
The software does not check that an array index from the file is within bounds before using it.
-
The software does not check that an object still exists before operating on it, leading to a use-after-free.
Seen in 1 report
-
The software does not check that an object still exists before performing operations on it.
Seen in 1 report
-
The software does not check that the length specified in the CharSize attribute fits within the destination stack buffer before copying user-supplied data.
-
The software does not properly validate the size or content of data within ARF files before copying it into a fixed-size buffer.
-
The software does not validate the length of user-supplied data before copying it into a fixed-length stack buffer.
-
The software does not validate the length or structure of data in signature fields.
-
The software does not validate the size or content of user-supplied data before copying it into a fixed-size buffer.
-
The software does not validate the size or content of user-supplied data in messages before copying it into a fixed-size buffer.
-
The software does not validate the size or structure of data within files before using it to index memory.
Seen in 1 report
-
The software fails to validate that a document object still exists before performing operations on it.
Seen in 1 report
-
The software fails to validate the length of user-supplied data before copying it into a fixed-length heap buffer.
-
The software fails to validate the length of user-supplied data before copying it into a fixed-length stack buffer.
-
The sort code caches the array storage pointer, buffer length and iterator across calls into attacker-controlled JavaScript.
-
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
-
$1,000 High
-
-
The source pointer is advanced with both next() and an offset, so the copy precompile reads unallocated memory.
Seen in 1 report
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
The stack spill offset calculation diverges from the offset recorded in the cache state for a particular variable kind.
Seen in 1 report
-
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
-
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
-
The storage-texture binding validation path lacks the dimension-match check that the sampled-texture path enforces.
Seen in 1 report
-
The store release function freed an entire block when given a store at its start, leaving other pointers dangling.
Seen in 1 report
-
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
-
The STP parser does not validate the type of user-supplied data before using it, causing a type confusion.
-
The STP parser trusts a value from the file and uses it directly as a pointer without validating that it points to valid memory.
-
The stream cleanup function pushed a stream pointer onto the purge array without checking whether it was already present.
-
The stream handle is detached on GOAWAY without unregistering the datagram visitor, leaving a dangling raw pointer.
Seen in 1 report
-
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
-
The stream object's liveness is not checked after a synchronous callback chain that can destroy it.
Seen in 1 report
-
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
-
$1,000 Medium
-