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 751 to 800 of 3,817
  1. A race condition influences memory that has already been freed.

    Seen in 2 reports
  2. Reference counting or lifetime handling of surface objects passed to user-mode display drivers was wrong, leading to use of a freed or wrongly owned object.

    Seen in 2 reports
  3. Reference counts are not increased when storing objects, or are released too early during deserialisation.

    Seen in 2 reports
  4. Resource objects are used without checking they still exist.

    Seen in 2 reports
  5. Return values from reads or recursive calls are not checked, so errors are treated as success.

    Seen in 2 reports
  6. Size and offset fields from files are trusted without validation before memory access.

    Seen in 2 reports
  7. Size arithmetic wraps around and pointer arithmetic is not bounded to its buffer.

    Seen in 2 reports
  8. Size or length fields in the file are trusted without being checked against the actual buffer size.

    Seen in 2 reports
  9. A stack-based buffer overflow occurs when copying data without a bounds check.

    Seen in 2 reports
  10. Stale stack pointers are used after the stack is extended, and stack clearing writes one element too many.

    Seen in 2 reports
  11. The allocation size came straight from the header while the copy length came from the file body, with no bounds check between them.

    Seen in 2 reports
  12. The application does not validate the size or content of user-supplied data when handling app objects.

    Seen in 2 reports
  13. The buffer is sized from the smaller of tile and image dimensions but multiple samples are read into it.

    Seen in 2 reports
  14. The buffer offset and remaining size passed to gethostbyname_r ignore alignment padding for struct hostent, so the data area is smaller than assumed and can be overflowed.

    Seen in 2 reports
  15. The bundled shader compiler's loop analysis mishandles the loop structure produced from translated shaders.

    Seen in 2 reports
  16. The bytecode generator assumes the body dominates the next expression, so a continue before initialisation lets a hole check be skipped.

    Seen in 2 reports
  17. The chunk length was parsed with a string-to-long conversion but never checked for a negative result before being passed to the read function.

    Seen in 2 reports
  18. The code assumed only one callback object existed per picker, so the completion call destroyed the shared parent while other callbacks still referenced it.

    Seen in 2 reports
  19. The compat syscall cast a user timeout pointer to a kernel pointer and passed it on without copying the timespec from user space.

    Seen in 2 reports
  20. The compiler emitted incorrect machine code for inline assembly blocks.

    Seen in 2 reports
  21. The component count in the SOF3 block was not checked against the sample count declared in the DNG SubIFD, leading to an out-of-bounds write.

    Seen in 2 reports
  22. The copy limit passed to strncpy is taken from the input string itself rather than the destination buffer size.

    Seen in 2 reports
  23. The CreateSurfacePal function did not validate the size or bounds of user-supplied data before writing to an array.

    Seen in 2 reports
  24. The crossdomain policy used a wildcard origin or set secure to false, letting Flash clients read protected data.

    Seen in 2 reports
  25. The Data Node job processing code does not validate the size or index of user-supplied data before writing to an array, causing an out-of-bounds write.

    Seen in 2 reports
  26. The date parser read past the end of a string that was not properly terminated or bounds-checked.

    Seen in 2 reports
  27. The decompression code trusts the client-supplied uncompressed size and returns the whole allocated buffer instead of only the decompressed bytes.

    Seen in 2 reports
  28. The delete function trusts a user-supplied index to look up a resource, and later functions use a fallback pointer without checking it is valid.

    Seen in 2 reports
  29. The DICOM parser calculated a buffer size from untrusted file values without checking for overflow, so the size wrapped to a small number.

    Seen in 2 reports
  30. The dispatch code stores a raw pointer to the grabber window and then makes a blocking call that can synchronously destroy it, leaving the pointer dangling.

    Seen in 2 reports
  31. The driver does not validate the length or content of user-supplied data in 802.11 frames before copying it into a fixed-size buffer.

    Seen in 2 reports
  32. The driver frees a query or texture while queued commands or a rasteriser thread still hold a reference to it.

    Seen in 2 reports
  33. The driver reads a licence entry without checking that its declared size covers the offset being read.

    Seen in 2 reports
  34. The driver used an object without first checking that it still existed.

    Seen in 2 reports
  35. The duplicate check was performed on one object while properties were added to other objects without checking for duplicates.

    Seen in 2 reports
  36. The engine dereferences objects without verifying their type, or optimises JavaScript in a way that confuses types.

    Seen in 2 reports
  37. The engine does not validate the size of data it processes, leading to a buffer overflow.

    Seen in 2 reports
  38. The graphics driver uses an attacker-controlled shader index or repeat count directly as a write address or loop bound.

    Seen in 2 reports
  39. The handler trusted an attacker-controlled length when copying user data instead of checking it against the real buffer.

    Seen in 2 reports
  40. The hash API was used incorrectly for key deletion, and a zval type was checked after its memory was freed.

    Seen in 2 reports
  41. The IOCTL handler does not validate the size or bounds of user input before writing to a kernel buffer.

    Seen in 2 reports
  42. The iovector length field is not initialised when processing a MAYBE call, so it is later used as a loop bound.

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

    Seen in 2 reports
  44. The JIT compiler incorrectly assumed the type of an object in the HasIndexedProperty node, leading to memory corruption.

    Seen in 2 reports
  45. The JIT creates many executable regions per module, lacks constant blinding and uses predictable instruction layouts.

    Seen in 2 reports
  46. The kernel decrypts network data in place without checking that the target memory belongs to the network buffer rather than a shared page cache page.

    Seen in 2 reports
  47. The kernel unit length setter stored negative values without validation, relying only on a debug assertion removed in release builds.

    Seen in 2 reports
  48. The measurement and write passes disagree on the captured value size because query-string handling escapes characters like plus signs, causing a heap overflow.

    Seen in 2 reports
  49. The mfenced frame freed its fence and separator character objects during automatic-data rebuild or on an attribute change while a display item still held a pointer to one.

    Seen in 2 reports
  50. The parser computes a block size from consecutive offsets but does not verify that the packed point count plus per-tuple data fits inside it.

    Seen in 2 reports