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.
-
A parser-validated integer luma offset is copied into an int8_t field without a range check, causing signed overflow.
Seen in 1 report
-
A parsing macro reads from a buffer without checking that enough bytes remain.
Seen in 1 report
-
A patch exposed a byteLength setter and removed the check that the new length stays within the maximum buffer size.
Seen in 1 report
-
A path is cast to the Skia path type without checking the backend, causing a type confusion.
Seen in 1 report
-
A peephole optimisation did not check that the number of discarded slots matched the size of the multi-slot immediate operation.
Seen in 1 report
-
A peer connection media object is freed while still referenced.
Seen in 1 report
-
A per-handle OpenSSL library context was borrowed by the connection's SSL context without ownership transfer, so the pooled connection held a dangling pointer.
Seen in 1 report
-
A per-session monitor binds a callback with an unretained pointer into a process-lifetime singleton that offers no unregistration handle.
Seen in 1 report
-
A permanent format error is collapsed into a need-more-input result so the decoder keeps buffering past a fixed internal buffer.
-
A permissive decoder check allowed prediction order to equal the sample count, and the vector kernel lacked a guard for a zero iteration count.
Seen in 1 report
-
A persistent handle created on a worker thread is destroyed on the main thread when the worker terminates, corrupting the main thread free list.
Seen in 1 report
-
A persistent handle is destroyed on a background thread when a task runner shuts down, and the persistent region free-list is not thread-safe.
Seen in 1 report
-
A phi tagging call did not force a small-integer result, so a heap number was stored into a small-integer field without a write barrier.
Seen in 1 report
-
A pointer difference can go negative and is passed as an unsigned length to a string copy without validation.
-
A pointer difference is cast to a signed int before the size check, so an oversized length becomes negative and bypasses the comparison against the buffer size.
Seen in 1 report
-
A pointer in the escape request handling is not validated, leading to a call through a null pointer.
Seen in 1 report
-
A pointer into a buffer was kept after the buffer was reallocated.
Seen in 1 report
-
A pointer into a hash map was stored and then a new element inserted, rehashing the map and invalidating the pointer before it was written.
Seen in 1 report
-
A pointer is advanced past leading bytes without reducing the recorded length, so a later copy reads past the buffer.
Seen in 1 report
-
A pointer is calculated by adding an attacker-controlled length to a base pointer without checking it stays within the packet buffer.
Seen in 1 report
-
A pointer is declared without initialisation and only assigned inside conditional branches that may not be taken.
Seen in 1 report
-
A pointer is dereferenced without a null check in a kernel driver.
-
A pointer is left uninitialised before it is used.
Seen in 1 report
-
A pointer is not initialised before use when parsing a crafted file.
-
A pointer is only checked against a heap range and magic bytes, not against real object identity.
Seen in 1 report
-
A pointer is used after the memory it references has been freed.
Seen in 1 report
-
A pointer is used after the underlying annotation memory has been freed.
Seen in 1 report
-
A pointer is used before it has been initialised when parsing a file.
-
A pointer is used before it has been initialised while parsing crafted data.
-
A pointer released and then used again, reachable when an allocation fails at a specific moment.
Seen in 1 report
-
A pointer returned by find is held across a recursive call that can invoke set on the same hash table.
Seen in 1 report
-
A pointer taken from network input is dereferenced without validation.
Seen in 1 report
-
A pointer to a list node is stored during iteration, the node is removed and freed, and the freed memory is later read to copy the creation time.
Seen in 1 report
-
A pointer to a stack-allocated thread-state node is stored in a global tree, and a kernel oops frees the stack before the node is removed.
Seen in 1 report
-
A pointer to a string is stored in a field later assumed to be a hash table because a snippet is processed twice with different types.
Seen in 1 report
-
A pointer was dereferenced without a NULL check.
-
A pointer was not initialised before use when parsing U3D files.
-
A pointer was read and incremented without checking it stayed within the buffer end.
Seen in 1 report
-
Medium
-
-
A pointer was reused after being freed during class termination.
-
A pointer was used as a this pointer before being initialised.
Seen in 1 report
-
A priority inversion left the mapped storage pointer dangling and there was no validation that uniform buffers were not mapped during draw calls.
Seen in 1 report
-
A process-global number formatter was mutated without synchronisation, freeing internal objects while another thread was using them.
Seen in 1 report
-
A process-global raw pointer is read and written by several threads without a lock and is not a checked raw pointer, so freed memory is not quarantined.
Seen in 1 report
-
A promise marked memory for collection while another call still accessed it.
Seen in 1 report
-
A property length from the file is used directly as a copy size without checking the destination size.
Seen in 1 report
-
A property lookup that can execute JavaScript is performed, and afterwards the code does not check whether the object it operates on was destroyed.
Seen in 1 report
-
A property store object referenced by the page layout engine is freed during a JavaScript callback and later dereferenced without a validity check.
Seen in 1 report
-
A property value is used as an array index without validation, allowing a negative index.
Seen in 1 report
-
A provider string is copied into a fixed-size stack buffer without checking its length.
Seen in 1 report
-
A proxy sink held a raw pointer to a backing sink that was destroyed during stream promotion.
Seen in 1 report