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.
-
An object is freed and replaced during a callback, and later code uses the stale object without validating its type.
Seen in 1 report
-
An object is freed but a reference to it remains and is used later.
Seen in 1 report
-
An object is freed but still referenced later, a memory management error in the kernel subsystem.
Seen in 1 report
-
An object is freed while still referenced in an array, leaving a dangling pointer that is later used through a virtual call.
Seen in 1 report
-
An object is freed without checking it still exists or was already freed while parsing a malformed OCSP response.
Seen in 1 report
-
An object is operated on without validating that it still exists.
Seen in 1 report
-
An object of one type was incorrectly treated as another in the Intl object implementation.
Seen in 1 report
-
An object was freed and then used again when the FDF.addContact function ran.
-
An object was released re-entrantly while its own listener was being removed.
Seen in 1 report
-
An object was used as the wrong type.
-
An observer list held a reference to an object freed during cycle collection.
Seen in 1 report
-
An off-by-one error in the globbing range parser read one byte past the end of the URL buffer.
Seen in 1 report
-
An off-by-one error when handling certain Unicode characters after an escape caused a write beyond the allocated buffer.
-
An off-by-one in a loop termination condition caused a 4-byte out-of-bounds write on the stack.
-
An off-by-one in a read helper plus incorrect size accounting causes an integer underflow and heap overflow.
Seen in 1 report
-
An off-by-one in the length check inside the punycode decode function allows one more element to be written than the buffer holds.
Seen in 1 report
-
An off-by-one in the suboption bounds check permitted writing index 512 of a 512-byte subbuffer.
Seen in 1 report
-
An off-by-one sets an offset one less than the data length so a later read runs past the buffer.
Seen in 1 report
-
An offset added to a buffer base pointer is not validated against the buffer size.
Seen in 1 report
-
An old out-of-bounds write in the authencesn module became exploitable once the in-place optimisation merged the buffers.
Seen in 1 report
-
An out-of-bounds read in the line-breaking white space check, exposed by a change to float reflow.
-
An out-of-bounds write in namespace handling corrupts heap memory in a SYSTEM service.
-
An out-of-memory failure left a pointer uninitialised before it was dereferenced.
-
An out-of-range index passed to child insertion writes outside the allocated array.
Seen in 1 report
-
An outdated image library with a known heap overflow combined with a Content-Length restriction bypass lets oversized payloads reach the vulnerable code.
Seen in 1 report
-
An overflow check that only breaks the inner loop lets the outer loop continue with a partial count, so a buffer is allocated too small for the later write.
Seen in 1 report
-
$10,000 High
-
-
An overflowing signed size was passed to the GL driver without being cast to an unsigned size type, so the allocated buffer and the reported size disagreed.
Seen in 1 report
-
An oversized lengthOfEachRecord field in the DBF header drives a memcpy past the end of a buffer.
-
An SPS with the same ID overwrites an existing one without invalidating or re-validating the PPS that references it.
Seen in 1 report
-
An unbounded string concatenation copied the login token into a fixed-size buffer without a length check.
-
An unbounded string copy copied a user-controlled identity into a 128-byte heap buffer.
Seen in 1 report
-
An unbounded string copy of the decoded password into a 120-byte stack buffer, with the base64 decode also given the wrong output size limit.
Seen in 1 report
-
An unbounded string copy of XML attribute values into fixed-size stack buffers.
Seen in 1 report
-
An unbounded string copy routine was used without checking the destination buffer size.
Seen in 1 report
-
Critical
-
-
An unbounded string scan copies data into fixed-size stack buffers.
Seen in 1 report
-
An unchecked 32-bit addition in reserveSpace combines with a stale reserved-space value not reset when a reservation aborts early.
Seen in 1 report
-
An unchecked comfort noise error plus an index-wrapping function that subtracts once instead of taking a modulo allows out-of-bounds access.
Seen in 1 report
-
An unchecked length or offset calculation in the driver underflowed and wrapped to a large value.
-
An unchecked string copy into a fixed-size stack buffer in the HNAP request handler.
-
An unchecked string copy of an attacker-controlled filename into a fixed-size stack buffer.
Seen in 1 report
-
An unchecked string copy of BaseFont data into a fixed-size heap buffer.
Seen in 1 report
-
An unchecked user-supplied length is used in a size calculation, causing an integer overflow before buffer allocation.
Seen in 1 report
-
An undocumented call leaves a global object pointing at memory that a later operation frees, and the next access reuses the dangling pointer.
Seen in 1 report
-
An unguarded integer addition when accumulating the total length of custom clipboard data can overflow a 32-bit unsigned integer.
Seen in 1 report
-
An uninitialised list object was used, and an out-of-bounds value was then used as a write pointer.
-
An uninitialised start index field in a ruby column object leads to an out-of-bounds vector access.
Seen in 1 report
-
An uninitialized variable is read, causing an out-of-bounds memory read.
Seen in 1 report
-
An unmap operation is not protected by the same lock as the job that writes to the mapped memory, so the backing page can be freed in between.
Seen in 1 report
-
An unsafe formatted-scan call splits user data into fixed-size stack buffers with no bounds check.
-
An unsanitised username was passed directly as a format string to the system logger.
Seen in 1 report