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 element count was computed as end minus start plus one in 32-bit unsigned arithmetic, so a full range wrapped to zero and appeared empty.
Seen in 1 report
-
The ellipse shape info allocated a buffer based on one computed size but the write loop indexed past it when the margin was extremely large.
Seen in 1 report
-
The embedded networking stack shipped with an FTP server that does not enforce authentication and plaintext credentials in a downloadable config file.
Seen in 1 report
-
The emulated device set the reported URB size without validation and passed an attacker-controlled size into a raw integer parser writing to a stack buffer.
Seen in 1 report
-
The emulator wrote bytes into fixed-size status buffers indexed by a counter that was never bounds-checked.
-
The encode delegates computed reference buffer bounds from other capabilities but never read or enforced the driver's limit on L0 references for P frames.
Seen in 1 report
-
The encoder uses the original visible rectangle instead of the downscaled buffer dimensions.
Seen in 1 report
-
The end-of-slice calculation adds start and length in unsigned 64-bit without an overflow check, and the wrapped value is used to compute the read count.
Seen in 1 report
-
The endpoint assumes every array entry is a string and uses the raw value as a length.
-
The endpoint copied the urls value into a fixed-size buffer without checking its length.
Seen in 1 report
-
The endpoint copies the Authorization header into a fixed-length stack buffer without validating its length.
-
The engine does not validate user-supplied data before using it.
-
The engine failed to verify an object's type before using it, causing type confusion.
-
The engine misinterprets the type of an object during optimisation in the regex JIT.
Seen in 1 report
-
The enum cache trusts JavaScript-derived data without checking its bounds.
Seen in 1 report
-
The enumerator stored raw accessible pointers without keeping the referenced objects alive.
-
The equality operator ignored the Wasm signature field, so frame states with different signatures were merged during value numbering.
Seen in 1 report
-
The error branch frees the level offset array and then calls a cleanup function that frees the same array again.
Seen in 1 report
-
The error buffer pointer is not cleared when the buffer is freed, so a later error path writes through a dangling pointer.
Seen in 1 report
-
The error from the backend orphaning call is not handled, so the source pointer is not cleared when orphaning fails.
Seen in 1 report
-
The error from the command flush is ignored, so the image is not removed from the tracking set when the flush fails.
Seen in 1 report
-
The error handling path unconditionally freed a key that had already been freed before checking for failure.
Seen in 1 report
-
The error path destroys a Vulkan semaphore that was already submitted to the GPU queue.
Seen in 1 report
-
The error path freed the job without releasing the credential reference taken earlier, so the count leaked and could wrap.
Seen in 1 report
-
The error path freed the ring pool but stored the freed pointer in session state.
-
The error path frees the current fragment and then the head buffer whose fragment list still references it.
Seen in 1 report
-
The error path frees the new filter BIO but leaves it in the caller's BIO chain.
Seen in 1 report
-
$2,400 Medium
-
-
The error path frees the same transmit buffer twice because the loopback interface is not enabled.
Seen in 1 report
-
The error path passed a failed-at value of zero into the buffer release routine, which cleaned up every object even though none had been processed.
-
The error path returned before erasing the mapped buffer entry, so a stale mapping survived a failed buffer data call.
Seen in 1 report
-
$25,000 High
-
-
The error path set the returned output length to the full metadata size even when the caller's buffer was too small.
Seen in 1 report
-
The escaping check on inlined allocations was non-transitive, so nested objects escaping through a container were not marked and map checks were skipped.
Seen in 1 report
-
The escaping routine uses a fixed 512-byte buffer and expands special characters without bounds checking.
Seen in 1 report
-
The event dispatch function lacks a liveness check after handling the event and keeps reading members of a freed this pointer.
Seen in 1 report
-
The event listener function downcast the script execution context to a document without checking the document was still alive, so a timer-driven media event reached a freed object.
Seen in 1 report
-
The event listener manager was reached through a stale window reference after cycle collection, because storage-event observer setup re-entered script.
Seen in 1 report
-
The event transfer call lacks a liveness check or reentrancy guard, so synchronous dispatch can destroy the drag controller and leave dangling pointers.
Seen in 1 report
-
The example tore down the libevent event base before cleaning up the multi handle, so the add-socket callback ran against freed memory.
Seen in 1 report
-
The exception handling path accesses a partially initialised object.
Seen in 1 report
-
The export loop kept a pointer to the current list node across a callback that could mutate and free that same node.
Seen in 1 report
-
The extended_state pointer was left uninitialised when copy_from_user failed, so kfree ran on an attacker-controlled value.
Seen in 1 report
-
The failure callback ran synchronously, cancelling navigation and deleting the throttle while the caller kept using its members.
Seen in 1 report
-
The fast clone path skipped the write barrier for young-generation targets, so incremental marking missed a new reference.
Seen in 1 report
-
The fast path cached the array length and elements pointer while a callback during element conversion could shrink the array.
Seen in 1 report
-
$22,000
-
-
The fast path in L2 entry modification skips validation of the super page and writable bits, and the disallow mask permits the super page flag.
Seen in 1 report
-
The fault path returns without clearing the flag that re-enables supervisor access prevention.
Seen in 1 report
-
Medium
-
-
The FBX parser fails to check that an object still exists before using it.
-
The feature list whitelists sized internal formats for the read pixel format but the element-size helper does not recognise them and returns zero, so the decoder validates a zero-byte buffer.
Seen in 1 report
-
The feature report path does not compare the buffer size against the declared maximum, unlike the write path.
Seen in 1 report
-
The feature-enabling command does not check that the calling context is a plugin context before turning off buffer target exclusivity.
Seen in 1 report