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,301 to 2,350 of 3,817
  1. Only the first slice of a picture is validated; later slices skip the check.

    Seen in 1 report
  2. The kernel operates on a hugetlb_vma_lock object without first checking it still exists, so a freed reference is used.

    Seen in 1 report
  3. AudioWorklet number handling has optimising reductions that assume floating-point behaviour that is wrong under flush-to-zero and denormals-are-zero.

    Seen in 1 report
  4. PPPoE option parsing does not validate option lengths, and a length check can underflow, allowing out-of-bounds memory access in kernel code.

    Seen in 1 report
  5. DOM atomic move runs option removal logic without checking whether a state-preserving atomic move is in progress, so a synchronous DOM mutation aborts the move after removal.

    Seen in 1 report
  6. ANGLE sampler cleanup frees orphaned samplers based only on CPU reference counts without checking GPU queue serials, so destruction is not deferred until in-flight commands finish.

    Seen in 1 report
  7. Other server-side sessions are not invalidated when the password changes.

    Seen in 1 report
  8. Excel file parsing reads past the end of a buffer.

    Seen in 1 report
  9. The USBHUB 3.0 device driver has an out-of-bounds read.

    Seen in 1 report
  10. An out-of-bounds write goes past the end of an allocated buffer.

    Seen in 1 report
  11. bzip2 decompression calculates the output buffer size as input length times two on 32-bit systems without an overflow check.

    Seen in 1 report
  12. TFLite output dimensions are computed in float32 while validation uses exact integers, so values above 2^24 lose precision and the allocated buffer is undersized.

    Seen in 1 report
  13. TIFF parsing performs overflow checks on signed integers, so the compiler removes them as undefined behaviour and the heap overflow proceeds.

    Seen in 1 report
  14. Skia pixel ownership passes ownership of a heap mapping to Skia via a release callback while also keeping it in a unique pointer, so a failed install frees it twice.

    Seen in 1 report
  15. The HomeKit pairing request parser did not check a length or offset was large enough before subtracting from it.

    Seen in 1 report
  16. Parallel edges break the markdown graph rendering algorithm assumptions so the ordering vector is shorter than the number of vertices.

    Seen in 1 report
  17. XSLT processing converts parameters by calling back into JavaScript without holding a strong reference to the object.

    Seen in 1 report
  18. TrustZone Weaver trustlet parameter type validation did not check the third parameter, allowing a value to be used where a memory reference was required.

    Seen in 1 report
  19. The parser accepts out-of-spec parameter values and passes them unclamped to drivers.

    Seen in 1 report
  20. The JavaScript engine parser and bytecode compiler disagree on suspend point counts after a language change.

    Seen in 1 report
  21. The DXF parser did not limit the number of margin values written to an object allocated for only six.

    Seen in 1 report
  22. The SAP DIAG protocol parser loads client-supplied 16-bit counts as signed values and uses the original unchecked value for buffer offsets while only clamping the loop bound.

    Seen in 1 report
  23. CAD file import parsers free the same object twice without checking it was already freed.

    Seen in 1 report
  24. URL parsing code is not properly bounds-checked.

    Seen in 1 report
  25. Parsing code used variables or buffers before initialising them, with behaviour steerable by file contents.

    Seen in 1 report
  26. Pasteboard change notifications ran the callback list on a background queue while the UI thread could still add or remove callbacks, with no synchronisation.

    Seen in 1 report
  27. Path sanitisation does path length arithmetic and in-place string edits without checking the resulting size or ensuring null termination.

    Seen in 1 report
  28. HID connection close cancels pending I/O and frees the overlapped structures before the kernel finishes cancellation, so the kernel later writes to freed memory.

    Seen in 1 report
  29. Font glyph counting accumulates per-span glyph counts in a 32-bit counter with no overflow check, so allocation used a wrapped value.

    Seen in 1 report
  30. Blink layout iteration in PerformLayout iterated a live reference to an internal vector instead of a copy, so a nested removal cleared it and left the iterators dangling.

    Seen in 1 report
  31. Permissive validation in one parser, early assignment of an invalid value in an FFI layer and an ignored error return combine to allow invalid data through in profile validation.

    Seen in 1 report
  32. V8 Maglev phi representation selection re-tagged a float value to a small integer, invalidating an earlier type inference.

    Seen in 1 report
  33. Pipe pages attached to a network buffer are not marked as shared, so the ESP path decrypts in place over memory the buffer does not own.

    Seen in 1 report
  34. Pixel size, width and height are multiplied in 32-bit arithmetic before being stored in a 64-bit size.

    Seen in 1 report
  35. The placeholder implementation of task_swap_mach_voucher did not follow MIG ownership rules for inout parameters, leaking and consuming references wrongly.

    Seen in 1 report
  36. The game server browser converted player names to Unicode without checking buffer boundaries.

    Seen in 1 report
  37. Playlist file parsing copies playlist data into a fixed-size stack buffer without checking length, and the Unicode conversion does not prevent overwriting the SEH chain.

    Seen in 1 report
  38. Phar archives insert a pointer to freed memory into the alias hash table.

    Seen in 1 report
  39. curl applies post-IDN-decode hostname validation only in URL getters, not in the transfer path that decodes and stores the peer hostname.

    Seen in 1 report
  40. A process does not validate the length of user-supplied data before copying it into a fixed-length stack buffer when parsing the pou element.

    Seen in 1 report
  41. Process identity is duplicated across independent kernel structures, so a kernel write can desynchronise them and mislead monitoring tools.

    Seen in 1 report
  42. Processing methods are not protected by the same lock used when clearing handlers during teardown.

    Seen in 1 report
  43. A project file parser fails to check the length or bounds of user-supplied data before using it.

    Seen in 1 report
  44. A prototype changes during garbage collection tracing of shapes, leaving a dangling pointer.

    Seen in 1 report
  45. Proxy CONNECT handling for telnet and smb frees a structure that later code still references.

    Seen in 1 report
  46. A push handler only adds a stack entry for a boolean with a value attribute while the pop handler always removes one.

    Seen in 1 report
  47. Query normalisation copied user-controlled data into a heap buffer without checking it fits.

    Seen in 1 report
  48. Range analysis for sign-extension operations returned the child's range unchanged instead of accounting for the sign bit.

    Seen in 1 report
  49. Raw array data pointer loads are excluded from the alias set of Wasm calls, but moving garbage collection only rewrites the object field, not the raw pointer already loaded.

    Seen in 1 report
  50. Raw bytes from a child pipe are deserialised without the standard Mojo header validation, and bounds checks are debug-only.

    Seen in 1 report