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 801 to 850 of 3,817
  1. The parser copied profile data into a fixed-size buffer without validating the length or size fields first.

    Seen in 2 reports
  2. The parser copied user-supplied data into a fixed-length stack buffer without validating its length.

    Seen in 2 reports
  3. The parser copied user-supplied data into fixed-length buffers without checking the length.

    Seen in 2 reports
  4. The parser copies user data into a stack buffer without checking its length.

    Seen in 2 reports
  5. The parser copies user-controlled data into a fixed-size heap buffer without checking the length.

    Seen in 2 reports
  6. The parser copies user-supplied data into a fixed-length stack buffer without validating its length.

    Seen in 2 reports
  7. The parser copies user-supplied data into a fixed-size heap buffer without checking its length.

    Seen in 2 reports
  8. The parser dereferenced an object after freeing it because it did not check the object still existed.

    Seen in 2 reports
  9. The parser dereferences an object after it has been freed because it never checks that the object still exists.

    Seen in 2 reports
  10. The parser did not check that an object still existed before using it.

    Seen in 2 reports
  11. The parser does not check that a value from the file is a valid pointer before dereferencing it.

    Seen in 2 reports
  12. The parser does not check that an object still exists before using it, leading to use-after-free.

    Seen in 2 reports
  13. The parser does not check the length of user-supplied data before copying it into a fixed-length heap buffer.

    Seen in 2 reports
  14. The parser does not properly validate user-supplied data.

    Seen in 2 reports
  15. The parser does not validate the size or structure of user-supplied data.

    Seen in 2 reports
  16. The parser operated on an object without confirming it still existed, leading to use-after-free.

    Seen in 2 reports
  17. The parser treated one kind of data as another because it did not validate the data type it read.

    Seen in 2 reports
  18. The parser trusts the type of data in the file without validating it before use.

    Seen in 2 reports
  19. The parser used objects without checking they still existed and copied data into fixed-length stack buffers without length checks.

    Seen in 2 reports
  20. The PDF parser does not validate the length of user-supplied data before copying it into a fixed-size heap buffer.

    Seen in 2 reports
  21. The plugin fails to validate the length of user-supplied data before copying it into a heap buffer.

    Seen in 2 reports
  22. The promising builtin fails to set the register holding the API function reference before calling the wasm-to-js wrapper, leaving instance data in its place.

    Seen in 2 reports
  23. The record size read from the file controls a copy loop without being checked against the fixed buffer size.

    Seen in 2 reports
  24. The reset clears the list in the set struct but not the duplicate pointer in the state struct.

    Seen in 2 reports
  25. The same memory freed twice.

    Seen in 2 reports
  26. The same memory is freed more than once, allowing corruption.

    Seen in 2 reports
  27. The same memory is freed twice, corrupting allocator state.

    Seen in 2 reports
  28. The service does not properly validate the size or content of user-supplied data in messages.

    Seen in 2 reports
  29. The service trusts the length or structure of network input and reads beyond the allocated buffer.

    Seen in 2 reports
  30. The setjmp checkpoint lives in a helper function that returns before the decode calls, so a later longjmp resumes in a dead stack frame.

    Seen in 2 reports
  31. The shared IPv4 options object is freed with plain kfree instead of kfree_rcu while another CPU may still read it in an RCU read-side section.

    Seen in 2 reports
  32. The size calculation for an argument buffer does not account for characters copied when escaping is bypassed by a trailing backslash.

    Seen in 2 reports
  33. The size check subtracts the payload length from the maximum before comparing, so an oversized length underflows to a large positive value and passes.

    Seen in 2 reports
  34. The size or content of user-supplied data is not validated before it is used to allocate memory.

    Seen in 2 reports
  35. The sizing pass uses a fresh engine that does not inherit the argument-mode flag from the execution engine.

    Seen in 2 reports
  36. The SKP parser did not verify an object still existed before performing operations on it.

    Seen in 2 reports
  37. The software does not check that a Collab object still exists before operating on it.

    Seen in 2 reports
  38. The software does not check whether a Doc object still exists before performing operations on it.

    Seen in 2 reports
  39. The software fails to check the length of data from a file before copying it into a fixed-size stack buffer.

    Seen in 2 reports
  40. The Text Services Framework interacts with the browser in a way that mishandles objects in memory.

    Seen in 2 reports
  41. The tree builder indexes its open-element stack with a negative or stale position after re-entrant document.write and close calls.

    Seen in 2 reports
  42. The upcasing loop bounds-checked only one output byte while a single input character could expand to two, overflowing the output buffer.

    Seen in 2 reports
  43. The upload progress callback caches raw pointers into a hash table that is freed and re-decoded, and the pointers are never refreshed.

    Seen in 2 reports
  44. The validator cached a raw pointer to the ArrayBuffer contents and then called back into JavaScript before finishing its reads, without re-checking the buffer was still attached.

    Seen in 2 reports
  45. The verifier does not properly validate user-supplied eBPF programs before execution.

    Seen in 2 reports
  46. Transfer teardown frees the handle before queued data is flushed, leaving a dangling pointer.

    Seen in 2 reports
  47. Two escape-sequence branches lack the output-buffer bounds check the first branch has, and the output buffer is only slightly larger than the input.

    Seen in 2 reports
  48. Unbounded string copies and unbounded parsing place user input into fixed stack buffers with no length limit and no stack cookie.

    Seen in 2 reports
  49. Unbounded string copy functions are used with user-controlled input and fixed-size buffers.

    Seen in 2 reports
  50. Unbounded string reads write into fixed-size stack buffers without limiting the number of characters.

    Seen in 2 reports