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.
-
Uninitialised memory in the used margin calculation.
-
Unmap freed the allocation and then removed a subspan pointer that was offset into the middle of it, so the wrong block was freed.
Seen in 1 report
-
Unregistering does not cancel already-enqueued run loop notifications, so a late notification reaches freed memory.
Seen in 1 report
-
Unsafe buffer allocation was used and read methods did not enforce that the requested range had been written.
Seen in 1 report
-
Unsafe handling of certificate and TLS handshake data led to double frees, leaks, assertion failures and buffer overflows.
Seen in 1 report
-
Unspecified C++ argument evaluation order captures a raw pointer before a script-reentrant conversion call that can destroy the underlying object.
Seen in 1 report
-
Untrusted image blobs decoded with a memory-unsafe bitmap API in the privileged browser process instead of a sandboxed utility process.
Seen in 1 report
-
Unvalidated content rectangle dimensions are used to size a bitmap without checking the byte size fits the mapped shared memory.
Seen in 1 report
-
Use of an uninitialised resource before it is set up.
Seen in 1 report
-
Use-after-free in the CLFS driver due to improper memory handling.
Seen in 1 report
-
Use-after-free memory management error.
-
Use-after-free where memory is freed but later accessed without being cleared.
-
Use-after-free where memory is still referenced after being released, reachable via an operation that causes an allocation failure.
Seen in 1 report
-
Use-after-free.
Seen in 1 report
-
$15,000 High
-
-
User data copied into a fixed-length stack buffer without a length check.
-
User data length was not validated before copying into a fixed-length heap buffer.
-
User-controlled data is copied into a fixed stack buffer using a user-supplied length with no bounds check.
Seen in 1 report
-
User-controlled input was passed directly as the format string to a logging call.
Seen in 1 report
-
User-controlled sockaddr data is copied into a fixed 128-byte stack buffer using a length field up to 255, with only a production-stripped assertion as a check.
-
User-controlled strings were passed directly as format strings to printf-style functions.
Seen in 1 report
-
User-supplied crop dimensions were not validated and return values from image creation were not checked, with signed arithmetic that could overflow.
Seen in 1 report
-
User-supplied data copied into a fixed-length stack buffer without a length check.
-
User-supplied data from a PAR file was copied into a fixed-size stack buffer without checking its length.
-
User-supplied data in template objects is not validated before use.
Seen in 1 report
-
User-supplied data is copied into a fixed-length stack buffer without a length check.
Seen in 1 report
-
User-supplied data is copied into a fixed-size stack buffer without length validation.
-
User-supplied data is copied into a heap buffer without checking that its length fits.
Seen in 1 report
-
User-supplied data is not validated before an integer truncation in buffer allocation.
Seen in 1 report
-
User-supplied data is not validated, causing an integer overflow before buffer allocation.
Seen in 1 report
-
User-supplied data is not validated, causing an integer underflow before a memory write.
Seen in 1 report
-
User-supplied data is not validated, leading to an integer underflow before writing to memory.
-
User-supplied data length is not validated before copying into a fixed-length heap buffer.
-
User-supplied data length is not validated before copying into a fixed-length stack buffer.
Seen in 1 report
-
User-supplied data length not validated before copying into a fixed-length stack buffer.
-
User-supplied data length was not validated before copying to a fixed-length stack buffer.
Seen in 1 report
-
User-supplied data length was not validated before copying to a stack buffer.
-
User-supplied data length was not validated before copying, causing a heap buffer overflow.
Seen in 1 report
-
User-supplied data was not validated when parsing indices, leading to an out-of-bounds read.
Seen in 1 report
-
User-supplied gui_region value copied into a fixed-length stack buffer without checking its length.
-
User-supplied header data was copied into a fixed-length heap buffer without a length check.
-
User-supplied JSON string values are passed to sprintf into a fixed-size stack buffer without bounds checking.
Seen in 1 report
-
User-supplied length values were not validated against a minimum before arithmetic, causing an integer underflow.
Seen in 1 report
-
User-supplied metadata is copied into a fixed-length stack buffer without a length check.
-
User-supplied pointers in the IOCTL input buffer are used as callback function pointers without validation.
Seen in 1 report
-
User-supplied site name is copied into a fixed-size stack buffer without validating its length.
-
User-supplied size data is not validated before a buffer is allocated, causing an integer overflow.
Seen in 1 report
-
User-supplied value is used in a calculation without validation, causing an integer underflow before a memory write.
Seen in 1 report
-
User-supplied values are used in a calculation without validation, causing an integer overflow.
Seen in 1 report
-
User-supplied xpath and parameter values are copied into a fixed-length stack buffer without a length check.
-
V8 wrappers are created without registering them in the persistent map.
Seen in 1 report