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.
-
Heap buffer overflow from unchecked data in the compositor.
-
Heap overflow reachable by an authenticated user with explicit permissions, allowing escalation to sysadmin.
-
Heap overflow when processing a server response without a size check.
-
Heap writes without sufficient bounds checking.
-
HTML parsing reads out of bounds and copies data into a heap buffer without checking length.
-
Huffman table size calculation did not account for second-level lookups, so the buffer was undersized.
-
Image functions size buffers from one value but index them with another, or free pointers that were never allocated.
Seen in 2 reports
-
Image-supplied values were used to compute a write address without validating it against the destination buffer.
-
Indices read from the file are used to index arrays or vectors without a bounds check.
-
Input type was not validated before being passed to buffer allocation, so a number became a buffer size without initialisation.
-
Insufficient bounds checking when parsing or rendering PDF content.
-
Insufficient input sanitisation and validation in the kernel let an app pass malformed data.
-
Integer overflow in size calculations leads to undersized allocation before a write.
-
Integer overflow or numeric truncation is not handled safely, letting a privilege check be bypassed.
-
Internet Explorer accessed a freed object during page rendering.
-
JavaScript continued to run after the document was closed and methods did not handle the freed object.
-
JSON string values are copied into fixed-size stack buffers with unbounded loops, and index fields are used to access arrays without bounds checks.
-
Kernel code reads USB descriptors or uses TIPC reassembly objects without validating length or existence.
-
Length-delimited header buffers from the HTTP/2 library are passed to a string format specifier that relies on null termination and ignores the supplied lengths.
-
Lengths and scales are added together without overflow checks and the result is used as a size for memory operations.
Seen in 2 reports
-
Memory buffers are used before being initialised, so contents left over from earlier operations leak into the response or into control flow.
-
Memory handling error in the service allows a local user to influence objects and gain higher privileges.
-
Memory handling error in the service allows privilege elevation.
-
Memory handling error when parsing a crafted image file.
-
Memory is released but still referenced while handling network packets.
-
Memory management and bounds checks in the SMB client were insufficient.
-
Memory management error where an object is used after being freed.
-
Memory that has already been freed is freed again, letting an attacker control the following allocation.
Seen in 2 reports
-
Memory-safety and logic flaws including uninitialised memory and improper validation of system calls and permissions.
-
The PDF export path contains memory-safety mistakes.
-
Message handlers use values from incoming signals as array indexes and memory offsets without validating them against bounds.
-
Parsing a TTF font's morx ligature subtable or other font tables lacks a bounds check, leading to an out-of-bounds write.
-
Processing TPM command parameters lacks a bounds check.
-
Missing bounds validation when parsing AcroForm annotation objects allows a read beyond the allocated buffer.
-
Phar signature verification does not check that the signature entry's uncompressed size is at least 8 bytes before subtracting 8 and using the result as a length.
-
BMP image parsing lacks a length check before copying file-supplied data into a fixed-length heap buffer.
-
An endpoint agent's IPC lacks a length check before copying user-supplied data into a heap buffer.
-
Missing or incorrect bounds checks allowed out-of-bounds memory access when handling web content in WebKit.
-
The Adobe Premiere Pro MP4 parser trusts a length or count field without checking it against the allocated buffer size.
-
Adobe After Effects MP4 parsing code does not validate the size or bounds of user-supplied data before writing to a memory buffer.
-
Adobe Premiere Rush MP4 parsing code does not validate the size or content of user-supplied data before writing to a memory buffer.
-
Adobe Audition MP4 parsing code does not validate the size or structure of user-supplied data before writing to a memory buffer.
-
Kernel async IO operates on an object without confirming it still existed.
-
Chrome threading contracts are broken: objects owned by one thread are checked or dereferenced on another, or callbacks are stamped with the current instance ID rather than the one active at registration.
Seen in 2 reports
-
Chrome thread ownership is broken: objects are destroyed on a different thread or sequence from the one that owned and used them.
Seen in 2 reports
-
Office fails to handle objects in memory correctly, allowing code to run as the current user.
-
Out-of-range indices occur in bracket data insertion and segment building during text layout.
Seen in 2 reports
-
CAD file parsers use a user-supplied value directly as a pointer without validating it.
-
Pointers supplied by the attacker are dereferenced without validation, or null is not checked.
-
Pointers supplied from user mode or external input are dereferenced without validation.