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 component did not properly validate or manage memory objects while parsing media content.
Seen in 7 reports
-
The driver did not validate IOCTL parameter sizes before writing, and size calculations overflowed before allocation.
Seen in 7 reports
-
The HTML parser trusted lengths or structures and used objects without checking they still existed.
Seen in 7 reports
-
The parser does not validate the type of user-supplied data before using it, leading to type confusion.
Seen in 7 reports
-
The parser frees an object but later dereferences it without checking that it is still valid.
Seen in 7 reports
-
The parser trusted size or offset values from the file without checking them against the actual buffer size.
Seen in 7 reports
-
The parsers trust size or length values from the file without checking them against the allocated buffer before writing.
Seen in 7 reports
-
The same memory is released more than once, sometimes only reachable by winning a race.
Seen in 7 reports
-
The scripting engine mishandles objects in memory, such as a use after free or type confusion.
Seen in 7 reports
-
User-supplied data is copied into a fixed-length stack buffer without validating its length.
Seen in 7 reports
-
User-supplied length or size fields are trusted and copied into fixed-size stack or heap buffers without a bounds check.
Seen in 7 reports
-
A length or size field from a file is used in arithmetic without bounds checks, causing underflow or overflow and a huge size for a memory operation.
Seen in 6 reports
-
A length taken from the file is copied into a heap buffer without checking the buffer is large enough.
Seen in 6 reports
-
A memory corruption flaw in how the engine processed specially crafted files.
Seen in 6 reports
-
A raw pointer is cached and used after a synchronous call can destroy the object it points to, with no liveness or weak pointer check.
Seen in 6 reports
-
A resource is used before it is properly initialised, leading to memory corruption or disclosure.
Seen in 6 reports
-
A size value was converted between integer widths, turning negative or underflowing before a memory write.
Seen in 6 reports
-
A stale reference to a freed Doc object is used without checking existence.
Seen in 6 reports
-
An integer overflow in object handling allowed a local user to gain elevated code execution.
Seen in 6 reports
-
Buffer sizes were calculated from file-controlled counts without checking for integer overflow.
Seen in 6 reports
-
Code used objects without first checking they still existed, giving use-after-free conditions across PDF widgets, forms, templates and graphics surfaces.
Seen in 6 reports
-
Decoding routines (UTF-8, Base64, Pack200, RLE, packed-bit) mishandled malformed input.
Seen in 6 reports
-
Header or field values are copied into fixed-size stack buffers without checking their length.
Seen in 6 reports
-
Input copied into a fixed-size heap buffer without a proper length check.
Seen in 6 reports
-
Integer overflow, underflow or truncation in a buffer size calculation leads to an undersized allocation and a later out-of-bounds write.
Seen in 6 reports
-
Length fields from the file are trusted and copied into fixed buffers without bounds checks, and dimensions are multiplied without overflow checks.
Seen in 6 reports
-
Length or count arithmetic underflowed or overflowed before a memory write or allocation.
Seen in 6 reports
-
Length or size calculations added or multiplied values in fixed-width integers without overflow checks, so undersized buffers were allocated and later written past.
Seen in 6 reports
-
Lengths and sizes read from the file are used for allocation or copying without bounds checks, including zero and negative values.
Seen in 6 reports
-
Memory contents are not properly initialised before use, leading to privilege escalation.
Seen in 6 reports
-
Memory is read or a pointer dereferenced before it has been initialised.
Seen in 6 reports
-
Word document parsing lacks bounds checks before writing attacker-sized data into heap buffers.
Seen in 6 reports
-
X.Org Server request handling does not validate user-supplied length or count fields, leading to integer underflows, out-of-bounds accesses or heap buffer overflows.
Seen in 6 reports
-
Objects are freed while still referenced, or pointers are freed without being cleared, leading to use-after-free and double-free.
Seen in 6 reports
-
File parser object lifetime handling uses objects without checking they still exist, leading to use-after-free.
Seen in 6 reports
-
WebKit memory management accesses objects after they are freed because references were not cleared when memory was released.
Seen in 6 reports
-
Oversized or malformed header and command values are copied into fixed buffers.
Seen in 6 reports
-
Parsers trust size, length or structure fields in the file without validating them.
Seen in 6 reports
-
Parsers trusted size, count or length fields from the file and wrote or read without checking them against the allocated buffer.
Seen in 6 reports
-
Parsers use an object after it has been freed or without checking it still exists.
Seen in 6 reports
-
CAD file import parsers use objects without checking they still exist, leading to use-after-free.
Seen in 6 reports
-
Raw pointers were stored across calls that could free the underlying object, leaving dangling references.
Seen in 6 reports
-
Signed comparisons or arithmetic underflowed or overflowed when computing sizes or indices, so buffers were allocated too small.
Seen in 6 reports
-
Size calculations multiply or add guest-controlled values without overflow checks, producing undersized allocations.
Seen in 6 reports
-
Size calculations overflow or truncate before a buffer is allocated, so the buffer is smaller than what is later written.
Seen in 6 reports
-
The IFC file parser does not properly validate the size or bounds of data before writing to a buffer, leading to an out-of-bounds write.
Seen in 6 reports
-
The NCI file parser does not validate the size or content of user-supplied data before copying it into a fixed-size buffer.
Seen in 6 reports
-
The parser does not check the type of a structure before using it, causing type confusion.
Seen in 6 reports
-
The parser does not validate the type of user-supplied data before using it, causing a type confusion.
Seen in 6 reports
-
The parser trusts the type of data in the file without validating it, so crafted input is treated as a different type.
Seen in 6 reports