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 parser does not validate the size or structure of user-supplied data before memory operations.
Seen in 1 report
-
The parser does not validate the size or structure of user-supplied data before reading it.
Seen in 1 report
-
The parser does not validate the type of user-supplied data before using it, causing type confusion.
-
The parser failed to isolate the expression scope when parsing a class static block, so a this reference propagated to the outer function.
Seen in 1 report
-
The parser fails to validate that an object still exists before performing operations on it.
Seen in 1 report
-
The parser fails to validate the size or bounds of user-supplied data before writing to memory.
-
The parser fails to validate the type of data it reads, so a crafted file causes one structure to be interpreted as another.
-
The parser fails to validate user-supplied data, causing memory corruption.
Seen in 1 report
-
The parser freed an object without checking whether it had already been freed.
Seen in 1 report
-
The parser frees an element array when a count is zero but does not clear the stored pointer, so destruction later uses freed memory.
Seen in 1 report
-
The parser frees an object and then frees it again without checking whether it still exists.
Seen in 1 report
-
The parser frees an object during file processing but later dereferences it without checking validity.
-
The parser increments a pointer past the end of the buffer without checking, causing an out-of-bounds read in comment skipping.
Seen in 1 report
-
The parser level counter was used as an array index without checking it was in bounds.
Seen in 1 report
-
The parser loop uses a pre-increment check instead of a less-than comparison, so the pointer can jump past the end and the loop continues.
Seen in 1 report
-
The parser only records the highest output array index when it is a literal constant, so loop indices skip the draw-buffer limit check.
Seen in 1 report
-
The parser overwrites the global storage qualifier with an incomplete interpolation qualifier and emits an invalid storage class during SPIR-V generation.
Seen in 1 report
-
The parser pops one state too many when a superscript token appears in the top group alongside a stylesheet.
Seen in 1 report
-
The parser reads user-supplied data without validating its length or structure first.
Seen in 1 report
-
The parser set the form association on the image before the append succeeded, and the abort path neither cleared the raw form pointer nor completed the reciprocal registration.
-
The parser set the returns-value flag before dead code elimination removed the return statement, and the default return insertion did not check for an empty statement list.
Seen in 1 report
-
The parser skips a bounds check for non-base layers, so a higher reference picture count is copied into a base-layer slice header without re-validation.
Seen in 1 report
-
The parser truncated format before multiplying while the consumer multiplied before dividing, so the byte length was larger than the buffer.
Seen in 1 report
-
The parser trusted a length or count from the file without checking it against the destination buffer size.
-
The parser trusted an object size field without validating it, so arithmetic on the size overflowed and the result was used as a read length.
-
The parser trusted size or offset fields in the file without validating them before memory operations.
-
The parser trusts a length field from the incoming packet, so the arithmetic overflows and the write goes out of bounds.
-
The parser trusts a length field in incoming data and copies it into a fixed-size heap buffer without checking it against the buffer size.
Seen in 1 report
-
The parser trusts a length or offset from the input without checking it against buffer boundaries.
Seen in 1 report
-
The parser trusts size and content fields from the file before writing into a buffer.
-
The parser used size fields from the file in an arithmetic calculation for buffer allocation without checking for overflow.
Seen in 1 report
-
The parser uses an unchecked 16-bit length read from the file as the size argument to a memory copy without validating it against the destination buffer.
Seen in 1 report
-
The parser uses file-supplied data without validating its type, producing a type confusion.
-
The parser validates the output buffer and pointer target offset but never checks that the label copy source stays within the packet length.
Seen in 1 report
-
The parser writes user-supplied data into a fixed-size buffer without checking its size.
Seen in 1 report
-
The partial-read retry size is computed from the source page offset only and never clamped to the caller's destination size.
Seen in 1 report
-
The partition detection code allocated a 512-byte stack buffer but passed the attacker-controlled block size to the read function.
Seen in 1 report
-
The PASS command handler copies user input into a fixed-size stack buffer without a bounds check.
Seen in 1 report
-
The passthrough decoder relied on a reverse lookup of a service identifier that ANGLE could recycle while the underlying buffer remained alive as an orphan.
Seen in 1 report
-
The password field from a UDP message is copied into a fixed-size stack buffer with an unbounded string copy.
-
The password length field from the CONNECT packet is used without bounds checking.
Seen in 1 report
-
The password reset endpoint lacked any rate limiting or throttling per user or email address.
Seen in 1 report
-
The patch set the user-mode access bit on the self-referencing page table entry, exposing kernel memory to user mode.
-
The path comparison skips the first character of the stored cookie path and then searches for a slash without checking the path is non-empty, so an empty path reads past the buffer.
Seen in 1 report
-
The path conversion copies into a fixed 255-wide-character stack buffer with an unbounded loop, assuming Windows paths never exceed 255 characters.
Seen in 1 report
-
The path indices from the file are not checked against the size of the vector before being used as array indices, leading to out-of-bounds writes.
Seen in 1 report
-
The path verb count was accumulated in a 32-bit integer with no overflow check, and the wrapped value sized a vertex buffer while the write loop iterated the real path data.
Seen in 1 report
-
The payload access function lacks the page reference count and initialisation checks that other write paths perform before writing to overflow pages.
Seen in 1 report
-
The PDF Length field sizes a copy loop that writes into a fixed 16-byte stack buffer.
Seen in 1 report
-
The peer connection handler kept a raw frame pointer that was not cleared when the frame was destroyed.
Seen in 1 report