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.
-
Native code in the watch app virtual machine and its loaders failed to validate sizes, lengths and argument counts, giving integer overflows and out-of-bound accesses.
-
Android native printing code caches a raw file descriptor integer from Java and is never told when Java closes it.
Seen in 1 report
-
Native resources are identified only by a reusable numeric ID, so a retired ID can reach a stale handle.
Seen in 1 report
-
Firefox URL handling does not handle a negative path length caused by a query-string shrink, so a later copy reads out of bounds.
Seen in 1 report
-
DevTools Map previews fetch properties with own-properties disabled, so the iterator can reach a Proxy on the prototype chain and run its traps synchronously.
Seen in 1 report
-
SANE network scanner read functions trust an attacker-controlled size field without validating the destination buffer size.
-
New shared memory is mapped before the old script vector is cleared.
Seen in 1 report
-
Netfilter nf_tables fails to reject a batch where a later operation references an anonymous set deleted earlier in the same batch.
Seen in 1 report
-
nginx marked an HTTP/2 connection reusable before a request stream was fully active and freed its memory while request processing still held a reference.
-
Visual Studio file parsing has no bounds check on data written to heap memory when parsing a crafted file.
Seen in 1 report
-
Office document parsing has no bounds check on data written when parsing a crafted document.
Seen in 1 report
-
Dawn Vulkan render passes have no cleanup for render pass state on early return and missing device-lost checks, allowing invalid commands to be submitted.
Seen in 1 report
-
Hardware fault tolerance lacks fault-injection countermeasures on the memory bus, and the kernel trusted cached executable pages.
Seen in 1 report
-
Wayland window state handling has no liveness check after a synchronous, deletion-capable callout in the pending configure state.
Seen in 1 report
-
Adding vertex counts has no overflow check, leading to an undersized allocation and an out-of-bounds write.
Seen in 1 report
-
Monero import has no sanity check that the number of transactions matched the number of transaction hashes before iterating.
Seen in 1 report
-
The Digital Credentials dialog has no self-liveness check after the modal dialog call returns, so the dialog can be destroyed during a nested message loop and then used.
Seen in 1 report
-
Android NFC has no synchronisation in the watcher destroy path, and proxy calls not confined to the UI thread allow concurrent destruction of the same native pointer.
Seen in 1 report
-
Browser window showing takes no weak pointer guard after the native show call returns, so synchronous observer callbacks can destroy the widget.
Seen in 1 report
-
Headless window delegate callbacks have no weak pointer or liveness check, letting synchronous delegate callbacks destroy the object while its methods are still on the call stack.
Seen in 1 report
-
X11 drag and drop takes no weak-pointer guard after invoking the delegate callback, so synchronous destruction frees the object before cleanup finishes.
Seen in 1 report
-
MSH file parsing uses node and element indices from the file to index vectors without validating they are within bounds.
Seen in 1 report
-
WebAudio interruption handling did not consider the interrupted state when deciding to keep the audio handler alive during node disposal.
Seen in 1 report
-
Non-finite values in the WebAudio k-rate audio parameter path were not validated and propagated through clamping into an integer cast.
Seen in 1 report
-
Font loading stores non-refcounted raw pointers to FontFace objects in a local array, and a load call can run user JavaScript that frees them.
Seen in 1 report
-
FreeRDP NTLM target information offsets are read from the server without validation.
-
The VHD miniport driver has a null pointer dereference.
Seen in 1 report
-
DevTools scope inspection keeps numeric property keys as small integers while surrounding code assumes every key is a string and casts without checking.
Seen in 1 report
-
The SLP service accesses an object after it is freed because its existence is not checked.
Seen in 1 report
-
Browser localisation keeps an object alive only by a document pointer that a JavaScript callback can remove during promise resolution.
Seen in 1 report
-
The browser install dialog has object lifetimes that did not match asynchronous operations or thread usage, so objects were destroyed while still referenced.
Seen in 1 report
-
Spreadsheet file parsing reuses an object after it is freed when a WorksheetOptions element lacks valid subelements.
Seen in 1 report
-
The database storage engine uses an object after it is freed during query processing.
Seen in 1 report
-
iOS profile services use Objective-C assign properties that hold raw pointers to profile-scoped services without zeroing them when the profile is destroyed.
Seen in 1 report
-
A PDF Calculate action frees objects when it deletes pages, but a pointer to a freed object is used without validation.
Seen in 1 report
-
The PDF JavaScript API frees objects tied to a page via deletePages but dereferences a previously assigned Array without a validity check.
Seen in 1 report
-
File system observers post observer callbacks bound with an unretained pointer, so a queued notification can outlive the watcher destroyed during profile teardown.
Seen in 1 report
-
Observer loops in window notification functions do not track the liveness of the window before iterating, so a callback that deletes it leaves a dangling pointer.
Seen in 1 report
-
Observer notification order during renderer death skips resetting the cursor overlay controller, leaving a dangling view pointer in Android tab capture.
Seen in 1 report
-
An off-by-one in a bit count calculation in image parsing libraries leads to an undersized allocation.
Seen in 1 report
-
Microsoft Office fails to properly handle objects in memory when processing specially crafted files.
Seen in 1 report
-
Older Ruby branches were not updated to bundle the patched libYAML, leaving a known denial-of-service flaw in place.
Seen in 1 report
-
On INIT of a nested VM, KVM skipped restoring the outer VM's nested page table pointer, leaving it pointing at freed memory.
-
On validation failure the browser falls back to a static dummy histogram singleton and tries to delete it when a same-named histogram is already registered.
Seen in 1 report
-
Filesystem tools use an on-disk entry count without validation in loops.
Seen in 1 report
-
One curl HSTS cleanup path lacks the share guard the other two have, so it frees a shared object unconditionally.
-
LLM model file parsers add one to an attacker-controlled 64-bit length without an overflow check, so the allocation wraps to a small value.
Seen in 1 report
-
Printer password check passes one-byte length fields to a copy routine writing into fixed-size salt and hash arrays inside a heap object with no bounds check.
Seen in 1 report
-
$60,000
-
-
The video decoder compares only picture size when deciding whether to reconfigure, so a bit-depth change at the same resolution is treated as a no-op.
Seen in 1 report
-
DTD traversal checks only the first child of the DTD, so a leading comment lets an entity declaration through.
Seen in 1 report