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 parser instantiated classes named in attacker-controlled input, and a Parcelable wrapper allowed arbitrary class names and JSON.
Seen in 1 report
-
A surface was published into an allocation group before its own bookkeeping was committed, and a re-entrant callback made the later erase calls silent no-ops.
Seen in 1 report
-
A switch over an attacker-controlled value has no default case and no trailing return, so out-of-range values fall off the end of a non-void function.
Seen in 1 report
-
A sync-controlled key was looked up with key-value coding instead of a plain dictionary lookup, letting the key be interpreted as a selector.
Seen in 1 report
-
A target is added to a list of raw pointers but not removed when the cleanup path deletes it, so the policy destructor deletes it again.
Seen in 1 report
-
A task is posted to the thread pool with raw pointers to the isolate and backing store, with no way to cancel it or keep the objects alive.
Seen in 1 report
-
A task was queued with a reference to a handler whose context could be destroyed before the task executed.
Seen in 1 report
-
A temporal index field from the GPU process is deserialised and used without range validation before indexing a fixed-size array.
Seen in 1 report
-
A temporary filename buffer is freed each time a channel info tag is seen, but it is only allocated once.
Seen in 1 report
-
A temporary stream object was freed during document destruction but a virtual method was called on it later.
Seen in 1 report
-
A temporary string used in error logging is destroyed before the logging function finishes reading it.
Seen in 1 report
-
A thread-affine garbage collection handle was wrapped in a callback passed to a background thread, and the compile-time check missed it.
Seen in 1 report
-
A time-of-check to time-of-use length mismatch between size estimation and iteration snapshots.
Seen in 1 report
-
A timer callback held a raw pointer without keeping the object alive.
Seen in 1 report
-
A timer iterated a list of refresh drivers without holding a strong reference, so an error path freed a driver mid-iteration.
Seen in 1 report
-
A timer started during pre-finalisation creates a weak handle that is not cleared and later fires on freed memory.
Seen in 1 report
-
A token is copied into a fixed-size buffer without leaving space for a subsequent string concatenation.
Seen in 1 report
-
A trace length is validated against the wrong maximum for the source buffer.
Seen in 1 report
-
A trailing percent sign in the format string was not handled, so the code skipped the null terminator and read past the buffer.
-
A transform helper assumes 16 floats are present while the layer can supply a zero-length array.
Seen in 1 report
-
A tree transformation pass drops an outer variable declaration while keeping references to it when a variable is shadowed inside switch blocks, and AST validation is disabled on some backends.
Seen in 1 report
-
A type confusion during display list hit testing.
Seen in 1 report
-
A type confusion in StructuredQuery.dll when parsing a crafted LeafCondition element in a LNK file.
Seen in 1 report
-
A type mismatch in the copy: the source range is computed in bytes but the destination is typed, so too many elements are written.
Seen in 1 report
-
A type or size field in the file is trusted so data is interpreted as the wrong structure.
-
A typo turned an equality assertion into an assignment, so a size check always passed.
-
A typographic error compares against one identifier but subtracts another that is zero, causing an infinite loop that increments an element level counter without bounds checking.
Seen in 1 report
-
A Unicode string was not null-terminated when converted, so a loop counting bytes until two null bytes read out of bounds.
Seen in 1 report
-
A uniform block binding change does not mark the binding dirty, so the backend takes an offset-only fast path against a stale descriptor.
Seen in 1 report
-
A unique pointer releases an object while a pointer to it is still retained and later dereferenced.
Seen in 1 report
-
A URI comparison succeeds when both values are null, returning the live stylesheet document instead of an empty result.
Seen in 1 report
-
A URL length calculation adds a fixed offset but the copy length comes from a search that can run past the URL into the scopes field.
-
A use after free during link state updates.
Seen in 1 report
-
A use after free during participant canonicalisation.
Seen in 1 report
-
A use after free during the refresh driver tick.
Seen in 1 report
-
A use after free during window opening.
Seen in 1 report
-
A use after free in early push handling overwrote memory from the pushing request's pool.
Seen in 1 report
-
A use after free in the screen capture path when interacting with the desktop portal on Wayland KDE.
Seen in 1 report
-
A use after free on the socket thread.
Seen in 1 report
-
A use after free when setting a child document on an accessibility proxy.
Seen in 1 report
-
A use count stored in a saturating 8-bit integer capped at 255, making an ownership check return true incorrectly.
Seen in 1 report
-
A use-after-free in handling long warning messages within select options led to memory corruption.
Seen in 1 report
-
A use-after-free in how the spreadsheet application handles a crafted file.
Seen in 1 report
-
A use-after-free in record handling where a race condition lets memory be reused after it is freed.
Seen in 1 report
-
A use-after-free in the document library when processing DOC files.
Seen in 1 report
-
A use-after-free memory corruption in the desktop window manager core library.
Seen in 1 report
-
A use-after-free memory management error triggered during a race condition.
Seen in 1 report
-
A use-after-free on out-of-band socket data leads to a double free.
-
A use-after-free or uninitialised memory issue in the runtime's object handling.
Seen in 1 report
-
A use-after-free that can be triggered by winning a race condition.
Seen in 1 report