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 service did not validate the size or content of user-supplied data before using it to access memory.
Seen in 1 report
-
The service does not validate the size of data in a protocol message before copying it into a heap buffer.
-
The service frees an object but keeps referencing it without checking it is still valid.
Seen in 1 report
-
The service incorrectly handles objects in memory when processing crafted messages.
Seen in 1 report
-
The service miscalculates the memory size needed for a domain name in a request and writes past the allocated heap buffer.
-
The service trusted the length or contents of user data without checking it against the buffer size.
Seen in 1 report
-
The service trusted the type of data passed from a lower-privileged process without validating it, so crafted input was treated as a different object type.
-
The service-url parameter is copied into a fixed-length stack buffer without validating its length.
-
The session keep-alive lock is applied on the protocol message path but not on the console message path, so re-entrant page script can free the runtime agent.
Seen in 1 report
-
The session teardown path does not fully clear or invalidate the session structure so a later packet dereferences released memory.
Seen in 1 report
-
The SetHostName handler copies user-supplied data into a fixed-length stack buffer without validating its length.
-
The SetInputFocus request handler does not validate a client-supplied index or length before using it to access an array.
-
The setIPCam handler uses strcpy to copy an attacker-controlled name into a 32-byte stack buffer with no length check.
Seen in 1 report
-
The setopt handler freed the old referer buffer before copying the new string, so an aliasing input pointer was read after free.
-
The setopt handler frees a buffer before copying from a caller pointer that may alias it.
Seen in 1 report
-
The setopt path frees the old string without mirroring the new value into the internal state, unlike other options that use a reference buffer.
-
The setter frees the stored string but leaves the internal state pointer dangling.
Seen in 1 report
-
The shallow struct copy aliases the heap allocated priority node chain between the source and duplicate handles.
Seen in 1 report
-
The shared image read lock holds only the representation, not a reference to the command buffer helper that owns the memory tracker.
Seen in 1 report
-
The shared image read lock stores a raw pointer to a command buffer helper member without keeping the helper alive.
Seen in 1 report
-
The shared memory segment was created with world-readable and world-writable permissions.
Seen in 1 report
-
The shared shader AST was mutated in place during lazy optimisation without synchronisation.
Seen in 1 report
-
The SharedImage deserialisation path copies stride, offset and size from the renderer-supplied native handle without comparing them to the actual DMA buffer file size.
Seen in 1 report
-
The shell does not handle objects in memory correctly, leading to arbitrary code execution.
Seen in 1 report
-
The shift counter was not incremented when a frame write failed, so compaction was skipped and dangling pointers stayed in the queue.
Seen in 1 report
-
The shift range calculation only widens the upper bound, leaving the lower bound at zero when the real result can go negative.
Seen in 1 report
-
The shim application class does not verify that the action target window is still in its window list, unlike the browser application class.
Seen in 1 report
-
The show method does not check whether the dialog is still alive after a nested run loop that may have destroyed it.
Seen in 1 report
-
The shutdown assumed one task round-trip drained pending job notifications, but termination was asynchronous.
Seen in 1 report
-
The sign-up input had no length limit, so an oversized value was accepted and later mishandled.
Seen in 1 report
-
Info
-
-
The signup endpoint enforced neither rate limiting nor single-use CSRF tokens, allowing repeated account creation.
Seen in 1 report
-
The SIMD load and store lane implementation always accessed memory at offset zero on x86_64.
Seen in 1 report
-
The single-sampler assumption is enforced only by debug-only assertions, so release builds pass an array size greater than one.
Seen in 1 report
-
The size accumulator was a 32-bit unsigned integer and the addition of the new allocation length was performed without an overflow check before reallocation.
Seen in 1 report
-
The size calculation added chain length, header size and new certificate size without checking for integer overflow.
Seen in 1 report
-
The size calculation multiplies a 16-bit item count by a row size in 32-bit unsigned arithmetic, so a large product wraps and the allocation is too small.
Seen in 1 report
-
The size calculation multiplies element size by array length without an overflow check, and the existing size validation does not stop compilation.
Seen in 1 report
-
The size check added a user-supplied size to a pointer without checking for overflow, so a huge size wrapped around and passed the bounds check.
Seen in 1 report
-
The size check compares current size rather than current plus new segment, and GetSize() multiplies in 32-bit arithmetic that wraps.
-
The size check multiplied an attacker-controlled count by the entry size in 32-bit arithmetic, so the product could wrap.
Seen in 1 report
-
The size check only rejected empty frames, so the fixed four-byte header write and the size-minus-four copy ran on buffers smaller than four bytes.
-
The size computation loop ignored width and precision in format specifiers, so allocated buffers were too small for padded output.
Seen in 1 report
-
The size estimate multiplies the input length by two in a signed 32-bit integer without overflow checking and callers do not validate the result.
Seen in 1 report
-
The size guard checked only the elements size while the allocation helper folded based on header plus elements size.
Seen in 1 report
-
The size of data is not checked before writing it into a heap buffer.
Seen in 1 report
-
The size of data received from a server is not checked before copying into a heap buffer.
-
The size of decoded license data is not validated against the allocated buffer.
Seen in 1 report
-
The size passed to the copy in the summary routine is taken directly from a DOC file field without validation.
Seen in 1 report
-
The size passed to the string allocator was computed by multiplying user-controlled values without an overflow check.
-
The size reported by lstat is trusted as the exact number of bytes readlink will write.
Seen in 1 report