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,851 to 2,900 of 3,817
  1. The dismiss path does not cancel pending tasks or clear the native pointer when the dialog manager early-returns.

    Seen in 1 report
  2. The display rectangle from the descriptor was used as the conversion loop bound but never validated against the plane sizes.

    Seen in 1 report
  3. The divisibility check used integer division without verifying the product was exactly divisible, so remainders were ignored.

    Seen in 1 report
  4. The DMA-BUF import path omits the physical device limit validation that the sibling hardware buffer path performs.

    Seen in 1 report
  5. The docshell frees the current URI during a reload while the predictor still holds a reference to it.

    Seen in 1 report
  6. The document loader was detached and its state freed before a same-document navigation commit read it.

    Seen in 1 report
  7. The document viewer's view manager is released when the frame is hidden but a pending layout flush still calls into it without a strong reference.

    Seen in 1 report
  8. The DoH handle was freed during a resolver timeout while the multi handle still referenced it.

    Seen in 1 report
  9. The domain lacks SPF, DKIM or DMARC, so receivers cannot detect forged sender addresses.

    Seen in 1 report
  10. The domain owner never published a DMARC record, so receivers have no policy for unauthenticated mail.

    Seen in 1 report
  11. The DPA parser did not validate size or offset fields before using them to access memory.

    Seen in 1 report
  12. The DPI change handler lacked a weak-pointer guard after synchronous calls that could run a nested message loop and destroy the object.

    Seen in 1 report
  13. The draw pass early-returns on allocation failure without resetting the cache, leaving stale raw buffer pointers that are later treated as valid.

    Seen in 1 report
  14. The draw-buffer state array was resized on deletion but the fill loop used the stale count, underflowing the length.

    Seen in 1 report
  15. The driver called GetVariable twice with the same size variable, so the second call copied the attacker-controlled length into a fixed stack buffer.

    Seen in 1 report
  16. The driver checked only that the start and end addresses fell inside the region, not that the whole range overlapped it.

    Seen in 1 report
  17. The driver computes the reply packet length from attacker-influenced tag lengths but allocates a fixed-size cluster without checking the total fits.

    Seen in 1 report
  18. The driver dereferences a pointer from an untrusted source without validating it.

    Seen in 1 report
  19. The driver derived a copy length from user-supplied start and stop column values and passed it to a memory copy into a fixed-size array without a bounds check.

    Seen in 1 report
  20. The driver did not check the length of an incoming configuration request before copying it into a fixed-size heap buffer.

    Seen in 1 report
  21. The driver did not remove the reference in the allocation tracking list when the region was freed by the shrinker, leaving a dangling pointer.

    Seen in 1 report
  22. The driver did not validate the signatures offset when loading a base log file, so a crafted value bypassed the symbol zone bounds check.

    Seen in 1 report
  23. The driver did not verify that the user-supplied shared buffer length matched the actual buffer size, allowing an integer overflow in the address calculation.

    Seen in 1 report
  24. The driver does not check that the VLAN header is present before translating a wireless packet to Ethernet.

    Seen in 1 report
  25. The driver does not properly validate or handle a malformed networking packet received over the air.

    Seen in 1 report
  26. The driver does not track which pages belong to which mapping when a queue is rebound, so closing an old mapping frees pages still in use.

    Seen in 1 report
  27. The driver does not validate that the index used to calculate a heap write address stays within the allocated buffer.

    Seen in 1 report
  28. The driver does not validate that the output register number in the shader bytecode is within the declared range.

    Seen in 1 report
  29. The driver does not validate the length of user data before copying it into a heap buffer.

    Seen in 1 report
  30. The driver does not validate the size or index of data supplied by a USB device before reading it.

    Seen in 1 report
  31. The driver does not validate user-supplied data before writing to memory.

    Seen in 1 report
  32. The driver freed the request and, through the last reference being dropped, freed the stream context, then still dereferenced the stream context pointer.

    Seen in 1 report
  33. The driver frees the client structure while a network still holds a pointer to it, because the unload fails with a busy error and cleanup is skipped.

    Seen in 1 report
  34. The driver frees the stats buffer while an event referencing it remains in the queue, leading to a dangling pointer that is later used.

    Seen in 1 report
  35. The driver mishandles network packets received from the server.

    Seen in 1 report
  36. The driver passes a length from the request to a copy routine without checking it against the destination buffer size.

    Seen in 1 report
  37. The driver passes user-controlled arguments straight to a memory move routine.

    Seen in 1 report
  38. The driver queried registry values in direct mode without the type-check flag, so the value type was never validated against the expected type.

    Seen in 1 report
  39. The driver stores a raw interior pointer to a mip level record in the framebuffer attachment, and reallocating the mip array frees that record without updating the attachment.

    Seen in 1 report
  40. The driver told epoll to watch a wait queue embedded in a thread structure that could be freed while epoll still referenced it, instead of detaching watchers on release.

    Seen in 1 report
  41. The driver trusts user-supplied length and offset fields without checking them against the real buffer size.

    Seen in 1 report
  42. The driver used a plain memory copy instead of a user-safe copy when writing to a user-supplied address.

    Seen in 1 report
  43. The driver uses a palette object without checking it still exists.

    Seen in 1 report
  44. The driver uses a size field from the request as the length for zeroing a fixed-size stack buffer.

    Seen in 1 report
  45. The DTMF tone buffer was reallocated while a pending send timer still held a reference to the old freed string.

    Seen in 1 report
  46. The duplicated worker handle lacks terminate rights and is closed while still registered with an object watcher, so a relaunch races on the watcher callback.

    Seen in 1 report
  47. The dynamic buffer is initialised after an early-return check, so the error path frees an uninitialised pointer.

    Seen in 1 report
  48. The eager Baseline compilation path queues scripts without enforcing the script-length limit the normal entry path applies, so a bytecode offset is truncated into a smaller bitfield.

    Seen in 1 report
  49. The EAPOL parser trusted the declared length field without checking it against the actual packet size or a maximum.

    Seen in 1 report
  50. The eBPF verifier failed to validate certain user-supplied programs, allowing type confusion at run time.

    Seen in 1 report