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,501 to 3,550 of 3,817
  1. The service did not validate the size or content of user-supplied data before using it to access memory.

    Seen in 1 report
  2. The service does not validate the size of data in a protocol message before copying it into a heap buffer.

    Seen in 1 report
  3. The service frees an object but keeps referencing it without checking it is still valid.

    Seen in 1 report
  4. The service incorrectly handles objects in memory when processing crafted messages.

    Seen in 1 report
  5. The service miscalculates the memory size needed for a domain name in a request and writes past the allocated heap buffer.

    Seen in 1 report
  6. The service trusted the length or contents of user data without checking it against the buffer size.

    Seen in 1 report
  7. 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.

    Seen in 1 report
  8. The service-url parameter is copied into a fixed-length stack buffer without validating its length.

    Seen in 1 report
  9. 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
  10. The session teardown path does not fully clear or invalidate the session structure so a later packet dereferences released memory.

    Seen in 1 report
  11. The SetHostName handler copies user-supplied data into a fixed-length stack buffer without validating its length.

    Seen in 1 report
  12. The SetInputFocus request handler does not validate a client-supplied index or length before using it to access an array.

    Seen in 1 report
  13. 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
  14. The setopt handler freed the old referer buffer before copying the new string, so an aliasing input pointer was read after free.

    Seen in 1 report
  15. The setopt handler frees a buffer before copying from a caller pointer that may alias it.

    Seen in 1 report
  16. The setopt path frees the old string without mirroring the new value into the internal state, unlike other options that use a reference buffer.

    Seen in 1 report
  17. The setter frees the stored string but leaves the internal state pointer dangling.

    Seen in 1 report
  18. The shallow struct copy aliases the heap allocated priority node chain between the source and duplicate handles.

    Seen in 1 report
  19. 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
  20. The shared image read lock stores a raw pointer to a command buffer helper member without keeping the helper alive.

    Seen in 1 report
  21. The shared memory segment was created with world-readable and world-writable permissions.

    Seen in 1 report
  22. The shared shader AST was mutated in place during lazy optimisation without synchronisation.

    Seen in 1 report
  23. 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
  24. The shell does not handle objects in memory correctly, leading to arbitrary code execution.

    Seen in 1 report
  25. 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
  26. 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
  27. 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
  28. 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
  29. The shutdown assumed one task round-trip drained pending job notifications, but termination was asynchronous.

    Seen in 1 report
  30. The sign-up input had no length limit, so an oversized value was accepted and later mishandled.

    Seen in 1 report
  31. The signup endpoint enforced neither rate limiting nor single-use CSRF tokens, allowing repeated account creation.

    Seen in 1 report
  32. The SIMD load and store lane implementation always accessed memory at offset zero on x86_64.

    Seen in 1 report
  33. 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
  34. 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
  35. The size calculation added chain length, header size and new certificate size without checking for integer overflow.

    Seen in 1 report
  36. 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
  37. 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
  38. 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
  39. The size check compares current size rather than current plus new segment, and GetSize() multiplies in 32-bit arithmetic that wraps.

    Seen in 1 report
  40. 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
  41. 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.

    Seen in 1 report
  42. The size computation loop ignored width and precision in format specifiers, so allocated buffers were too small for padded output.

    Seen in 1 report
  43. 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
  44. The size guard checked only the elements size while the allocation helper folded based on header plus elements size.

    Seen in 1 report
  45. The size of data is not checked before writing it into a heap buffer.

    Seen in 1 report
  46. The size of data received from a server is not checked before copying into a heap buffer.

    Seen in 1 report
  47. The size of decoded license data is not validated against the allocated buffer.

    Seen in 1 report
  48. The size passed to the copy in the summary routine is taken directly from a DOC file field without validation.

    Seen in 1 report
  49. The size passed to the string allocator was computed by multiplying user-controlled values without an overflow check.

    Seen in 1 report
  50. The size reported by lstat is trusted as the exact number of bytes readlink will write.

    Seen in 1 report