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.
-
The dismiss path does not cancel pending tasks or clear the native pointer when the dialog manager early-returns.
Seen in 1 report
-
The display rectangle from the descriptor was used as the conversion loop bound but never validated against the plane sizes.
Seen in 1 report
-
The divisibility check used integer division without verifying the product was exactly divisible, so remainders were ignored.
Seen in 1 report
-
The DMA-BUF import path omits the physical device limit validation that the sibling hardware buffer path performs.
Seen in 1 report
-
The docshell frees the current URI during a reload while the predictor still holds a reference to it.
Seen in 1 report
-
The document loader was detached and its state freed before a same-document navigation commit read it.
Seen in 1 report
-
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
-
The DoH handle was freed during a resolver timeout while the multi handle still referenced it.
-
The domain lacks SPF, DKIM or DMARC, so receivers cannot detect forged sender addresses.
Seen in 1 report
-
The domain owner never published a DMARC record, so receivers have no policy for unauthenticated mail.
Seen in 1 report
-
The DPA parser did not validate size or offset fields before using them to access memory.
-
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
-
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
-
The draw-buffer state array was resized on deletion but the fill loop used the stale count, underflowing the length.
Seen in 1 report
-
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
-
The driver checked only that the start and end addresses fell inside the region, not that the whole range overlapped it.
-
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
-
The driver dereferences a pointer from an untrusted source without validating it.
-
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
-
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
-
The driver did not remove the reference in the allocation tracking list when the region was freed by the shrinker, leaving a dangling pointer.
-
The driver did not validate the signatures offset when loading a base log file, so a crafted value bypassed the symbol zone bounds check.
-
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
-
The driver does not check that the VLAN header is present before translating a wireless packet to Ethernet.
Seen in 1 report
-
The driver does not properly validate or handle a malformed networking packet received over the air.
Seen in 1 report
-
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.
-
The driver does not validate that the index used to calculate a heap write address stays within the allocated buffer.
Seen in 1 report
-
The driver does not validate that the output register number in the shader bytecode is within the declared range.
Seen in 1 report
-
The driver does not validate the length of user data before copying it into a heap buffer.
Seen in 1 report
-
The driver does not validate the size or index of data supplied by a USB device before reading it.
Seen in 1 report
-
The driver does not validate user-supplied data before writing to memory.
-
The driver freed the request and, through the last reference being dropped, freed the stream context, then still dereferenced the stream context pointer.
-
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.
-
The driver frees the stats buffer while an event referencing it remains in the queue, leading to a dangling pointer that is later used.
-
The driver mishandles network packets received from the server.
-
The driver passes a length from the request to a copy routine without checking it against the destination buffer size.
-
The driver passes user-controlled arguments straight to a memory move routine.
Seen in 1 report
-
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
-
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
-
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
-
The driver trusts user-supplied length and offset fields without checking them against the real buffer size.
Seen in 1 report
-
The driver used a plain memory copy instead of a user-safe copy when writing to a user-supplied address.
Seen in 1 report
-
The driver uses a palette object without checking it still exists.
Seen in 1 report
-
The driver uses a size field from the request as the length for zeroing a fixed-size stack buffer.
-
The DTMF tone buffer was reallocated while a pending send timer still held a reference to the old freed string.
Seen in 1 report
-
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
-
The dynamic buffer is initialised after an early-return check, so the error path frees an uninitialised pointer.
Seen in 1 report
-
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
-
The EAPOL parser trusted the declared length field without checking it against the actual packet size or a maximum.
Seen in 1 report
-
The eBPF verifier failed to validate certain user-supplied programs, allowing type confusion at run time.
Seen in 1 report