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.
-
Only the first slice of a picture is validated; later slices skip the check.
Seen in 1 report
-
The kernel operates on a hugetlb_vma_lock object without first checking it still exists, so a freed reference is used.
-
AudioWorklet number handling has optimising reductions that assume floating-point behaviour that is wrong under flush-to-zero and denormals-are-zero.
Seen in 1 report
-
PPPoE option parsing does not validate option lengths, and a length check can underflow, allowing out-of-bounds memory access in kernel code.
Seen in 1 report
-
$12,500 High
-
-
DOM atomic move runs option removal logic without checking whether a state-preserving atomic move is in progress, so a synchronous DOM mutation aborts the move after removal.
Seen in 1 report
-
ANGLE sampler cleanup frees orphaned samplers based only on CPU reference counts without checking GPU queue serials, so destruction is not deferred until in-flight commands finish.
Seen in 1 report
-
Other server-side sessions are not invalidated when the password changes.
Seen in 1 report
-
Excel file parsing reads past the end of a buffer.
Seen in 1 report
-
The USBHUB 3.0 device driver has an out-of-bounds read.
Seen in 1 report
-
An out-of-bounds write goes past the end of an allocated buffer.
Seen in 1 report
-
bzip2 decompression calculates the output buffer size as input length times two on 32-bit systems without an overflow check.
Seen in 1 report
-
TFLite output dimensions are computed in float32 while validation uses exact integers, so values above 2^24 lose precision and the allocated buffer is undersized.
Seen in 1 report
-
$43,000 Critical
-
-
TIFF parsing performs overflow checks on signed integers, so the compiler removes them as undefined behaviour and the heap overflow proceeds.
Seen in 1 report
-
Skia pixel ownership passes ownership of a heap mapping to Skia via a release callback while also keeping it in a unique pointer, so a failed install frees it twice.
Seen in 1 report
-
The HomeKit pairing request parser did not check a length or offset was large enough before subtracting from it.
-
Parallel edges break the markdown graph rendering algorithm assumptions so the ordering vector is shorter than the number of vertices.
Seen in 1 report
-
XSLT processing converts parameters by calling back into JavaScript without holding a strong reference to the object.
Seen in 1 report
-
TrustZone Weaver trustlet parameter type validation did not check the third parameter, allowing a value to be used where a memory reference was required.
Seen in 1 report
-
The parser accepts out-of-spec parameter values and passes them unclamped to drivers.
Seen in 1 report
-
The JavaScript engine parser and bytecode compiler disagree on suspend point counts after a language change.
Seen in 1 report
-
The DXF parser did not limit the number of margin values written to an object allocated for only six.
Seen in 1 report
-
The SAP DIAG protocol parser loads client-supplied 16-bit counts as signed values and uses the original unchecked value for buffer offsets while only clamping the loop bound.
-
CAD file import parsers free the same object twice without checking it was already freed.
Seen in 1 report
-
URL parsing code is not properly bounds-checked.
Seen in 1 report
-
Parsing code used variables or buffers before initialising them, with behaviour steerable by file contents.
-
Pasteboard change notifications ran the callback list on a background queue while the UI thread could still add or remove callbacks, with no synchronisation.
Seen in 1 report
-
Path sanitisation does path length arithmetic and in-place string edits without checking the resulting size or ensuring null termination.
Seen in 1 report
-
HID connection close cancels pending I/O and frees the overlapped structures before the kernel finishes cancellation, so the kernel later writes to freed memory.
Seen in 1 report
-
Font glyph counting accumulates per-span glyph counts in a 32-bit counter with no overflow check, so allocation used a wrapped value.
Seen in 1 report
-
Blink layout iteration in PerformLayout iterated a live reference to an internal vector instead of a copy, so a nested removal cleared it and left the iterators dangling.
Seen in 1 report
-
Permissive validation in one parser, early assignment of an invalid value in an FFI layer and an ignored error return combine to allow invalid data through in profile validation.
Seen in 1 report
-
V8 Maglev phi representation selection re-tagged a float value to a small integer, invalidating an earlier type inference.
Seen in 1 report
-
Pipe pages attached to a network buffer are not marked as shared, so the ESP path decrypts in place over memory the buffer does not own.
-
Pixel size, width and height are multiplied in 32-bit arithmetic before being stored in a 64-bit size.
Seen in 1 report
-
The placeholder implementation of task_swap_mach_voucher did not follow MIG ownership rules for inout parameters, leaking and consuming references wrongly.
Seen in 1 report
-
The game server browser converted player names to Unicode without checking buffer boundaries.
Seen in 1 report
-
Playlist file parsing copies playlist data into a fixed-size stack buffer without checking length, and the Unicode conversion does not prevent overwriting the SEH chain.
Seen in 1 report
-
Phar archives insert a pointer to freed memory into the alias hash table.
Seen in 1 report
-
curl applies post-IDN-decode hostname validation only in URL getters, not in the transfer path that decodes and stores the peer hostname.
-
A process does not validate the length of user-supplied data before copying it into a fixed-length stack buffer when parsing the pou element.
-
Process identity is duplicated across independent kernel structures, so a kernel write can desynchronise them and mislead monitoring tools.
Seen in 1 report
-
Processing methods are not protected by the same lock used when clearing handlers during teardown.
-
A project file parser fails to check the length or bounds of user-supplied data before using it.
-
A prototype changes during garbage collection tracing of shapes, leaving a dangling pointer.
Seen in 1 report
-
Proxy CONNECT handling for telnet and smb frees a structure that later code still references.
Seen in 1 report
-
A push handler only adds a stack entry for a boolean with a value attribute while the pop handler always removes one.
Seen in 1 report
-
Query normalisation copied user-controlled data into a heap buffer without checking it fits.
-
Range analysis for sign-extension operations returned the child's range unchanged instead of accounting for the sign bit.
-
Raw array data pointer loads are excluded from the alias set of Wasm calls, but moving garbage collection only rewrites the object field, not the raw pointer already loaded.
Seen in 1 report
-
Raw bytes from a child pipe are deserialised without the standard Mojo header validation, and bounds checks are debug-only.
Seen in 1 report