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.
-
A file-supplied count is trusted without an upper bound, so a loop walks past the allocation.
-
A filedesc object is used without checking it still exists.
Seen in 1 report
-
A filename length is derived from the input itself, so an unbounded copy overflows a global buffer.
Seen in 1 report
-
A fill call could synchronously destroy the form manager, and the code then kept using its members.
Seen in 1 report
-
A final JNI pointer field was never cleared after the native object was deleted, leaving a stale reference for queued events.
Seen in 1 report
-
A fix bounds each leaf operand but not intermediate results, so a later addition still diverges from the expected value.
Seen in 1 report
-
A fixed 52-byte status buffer is filled by a parsing call that does not limit the status message length.
-
A fixed array is indexed with an unvalidated clipboard type value supplied by the content process.
-
A fixed-size array is allocated for event descriptions but the loop uses an attacker-controlled count without checking it against the array size.
Seen in 1 report
-
A fixed-size array is filled by incrementing an index without bounds checking.
Seen in 1 report
-
A fixed-size array is indexed with a value taken from the input that can exceed its length.
-
A fixed-size buffer was allocated for 32 nested Relay-forward messages but the nested counter was never checked against that limit.
Seen in 1 report
-
A fixed-size stack array is indexed by a loop whose bound is only checked by a debug assertion compiled out in release builds.
Seen in 1 report
-
A fixed-size stack buffer for number-to-string conversion is too small for the formatted output of certain matrix values.
Seen in 1 report
-
A fixed-size stack buffer holds expanded output, but certain input characters expand to multiple bytes, so a long enough input overflows it.
Seen in 1 report
-
A fixed-size stack buffer was filled with a non-terminating copy and later measured with a string length call, and a boundary check failed when the packet had no terminator.
-
A fixed-width size counter wrapped around, shrinking the buffer while the copy still used the original byte count.
Seen in 1 report
-
A flaw in handling optional chaining and assignment lets an internal sentinel value escape and be misinterpreted.
Seen in 1 report
-
A flaw in read-only boot ROM allows unsigned code execution in recovery mode and cannot be patched.
Seen in 1 report
-
A flaw in the garbage collector's marking logic allows an invalid object pointer to be dereferenced.
Seen in 1 report
-
$100 High
-
-
A flaw in the JIT compiler's linear scan register allocation leads to memory corruption when processing certain JavaScript code.
Seen in 1 report
-
A flaw in the loop peeling optimisation introduced by a specific commit leads to an out-of-bounds read.
Seen in 1 report
-
$8,000 Medium
-
-
A flaw in the regexp compiler's memory handling frees a buffer more than once.
Seen in 1 report
-
A float is boxed with a raw setter instead of being canonicalised, so a crafted NaN forges a script value.
-
A floating-point value from the bounding box was truncated to a signed 32-bit integer, producing a negative value that wrapped a loop counter and wrote out of bounds.
Seen in 1 report
-
A font name from the PDF is copied into a fixed stack buffer without a length check.
Seen in 1 report
-
A font object is freed during font handling but reused when graphics state is restored.
Seen in 1 report
-
A form field object is freed during event handling but its memory is reused without proper checks.
Seen in 1 report
-
A form field object was freed by a Calculate action and then used again without checking it still existed.
Seen in 1 report
-
A form handler copied a POST parameter into a fixed-size buffer without checking its length.
Seen in 1 report
-
A form-related object is freed but later used without checking that it still exists.
Seen in 1 report
-
A formatted floating-point value is written into a fixed-size buffer with sprintf and no length check.
Seen in 1 report
-
A four-byte sequence-number scratch write in the authencesn AEAD path lands in the page cache of a spliced-in file instead of staying inside the kernel buffer.
Seen in 1 report
-
A frame is deleted while a reference to it is still used during popup teardown.
Seen in 1 report
-
A frame is freed during restyle or recreation while a stale reference is still used when capturing layout history state.
Seen in 1 report
-
A frame or text run is used after the layout state has been invalidated by rapid text changes, scrolling and worker activity.
Seen in 1 report
-
A frame property lookup reads past the end of the frame's property array because the placeholder frame property is missing or the array is stale.
Seen in 1 report
-
A FrameLoader object was dereferenced without checking it still existed.
Seen in 1 report
-
A freed annotation object is used without validation after JavaScript destroys it.
Seen in 1 report
-
A freed anon_vma was reclaimed with attacker data, letting a trylock call write to an attacker-chosen address.
Seen in 1 report
-
A freed object was still referenced during pointer updating in the mark-compact collector.
Seen in 1 report
-
$7,000 Medium
-
-
A freed salt buffer pointer was not cleared, so the error-handling path freed it a second time.
Seen in 1 report
-
A freed structure field is not set to null, leaving a dangling pointer that can be reused.
Seen in 1 report
-
A fullscreen drop call can spin a nested message loop, and the web contents pointer is used afterwards without a weak pointer guard.
Seen in 1 report
-
A function call synchronously triggers scheduler actions that destroy objects still referenced by raw pointers in priority queues.
Seen in 1 report
-
A function called during frame handling can trigger garbage collection that frees an object still in use.
Seen in 1 report
-
A function relied only on debug assertions instead of runtime bounds checks like its sibling function.
Seen in 1 report
-
A function returns the intended size of the superframe index rather than the number of bytes actually written, so a full buffer yields a non-zero count for data never stored.
Seen in 1 report
-
A function that can run a nested event loop is called without checking for destruction before accessing members afterwards.
Seen in 1 report
-
A function that synchronously runs page script frees the object, then a member of the freed object is dereferenced.
Seen in 1 report