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 2,251 to 2,300 of 3,817
  1. 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.

    Seen in 1 report
  2. Android native printing code caches a raw file descriptor integer from Java and is never told when Java closes it.

    Seen in 1 report
  3. Native resources are identified only by a reusable numeric ID, so a retired ID can reach a stale handle.

    Seen in 1 report
  4. 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
  5. 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
  6. SANE network scanner read functions trust an attacker-controlled size field without validating the destination buffer size.

    Seen in 1 report
  7. New shared memory is mapped before the old script vector is cleared.

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

    Seen in 1 report
  10. Visual Studio file parsing has no bounds check on data written to heap memory when parsing a crafted file.

    Seen in 1 report
  11. Office document parsing has no bounds check on data written when parsing a crafted document.

    Seen in 1 report
  12. 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
  13. Hardware fault tolerance lacks fault-injection countermeasures on the memory bus, and the kernel trusted cached executable pages.

    Seen in 1 report
  14. Wayland window state handling has no liveness check after a synchronous, deletion-capable callout in the pending configure state.

    Seen in 1 report
  15. Adding vertex counts has no overflow check, leading to an undersized allocation and an out-of-bounds write.

    Seen in 1 report
  16. Monero import has no sanity check that the number of transactions matched the number of transaction hashes before iterating.

    Seen in 1 report
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. MSH file parsing uses node and element indices from the file to index vectors without validating they are within bounds.

    Seen in 1 report
  23. WebAudio interruption handling did not consider the interrupted state when deciding to keep the audio handler alive during node disposal.

    Seen in 1 report
  24. 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
  25. 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
  26. FreeRDP NTLM target information offsets are read from the server without validation.

    Seen in 1 report
  27. The VHD miniport driver has a null pointer dereference.

    Seen in 1 report
  28. 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
  29. The SLP service accesses an object after it is freed because its existence is not checked.

    Seen in 1 report
  30. Browser localisation keeps an object alive only by a document pointer that a JavaScript callback can remove during promise resolution.

    Seen in 1 report
  31. 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
  32. Spreadsheet file parsing reuses an object after it is freed when a WorksheetOptions element lacks valid subelements.

    Seen in 1 report
  33. The database storage engine uses an object after it is freed during query processing.

    Seen in 1 report
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. An off-by-one in a bit count calculation in image parsing libraries leads to an undersized allocation.

    Seen in 1 report
  41. Microsoft Office fails to properly handle objects in memory when processing specially crafted files.

    Seen in 1 report
  42. Older Ruby branches were not updated to bundle the patched libYAML, leaving a known denial-of-service flaw in place.

    Seen in 1 report
  43. On INIT of a nested VM, KVM skipped restoring the outer VM's nested page table pointer, leaving it pointing at freed memory.

    Seen in 1 report
  44. 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
  45. Filesystem tools use an on-disk entry count without validation in loops.

    Seen in 1 report
  46. One curl HSTS cleanup path lacks the share guard the other two have, so it frees a shared object unconditionally.

    Seen in 1 report
  47. 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
  48. 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
  49. 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
  50. DTD traversal checks only the first child of the DTD, so a leading comment lets an entity declaration through.

    Seen in 1 report