Skip to content

In-depth lesson · bug class

Memory corruption

What every disclosed Memory corruption report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
17,982

Learning Memory corruption reading list

Overview

What it is and why programs pay for it.

Memory corruption is a class of bug where a program reads or writes memory it should not, usually because it trusted a length, size, offset or object lifetime it should have checked. In the reports behind this lesson it is the single most common kind of finding, and it shows up wherever a program takes input it did not create itself: a file it parses, a request it receives, or a structure passed to a driver. The consequence is rarely just a crash. A write past the end of a buffer or a read of freed memory can let an attacker influence control flow, leak memory to defeat protections, or raise privileges from a low-privileged process to SYSTEM or kernel level.

Programs care because the impact is severe and the reach is wide. The evidence spans desktop file parsers, browser engines, Windows kernel and graphics components, file system drivers, network services and embedded devices. In many cases the bug is reachable by simply opening a crafted document, previewing an attachment, visiting a page, or sending a packet to a service, so the attacker often needs little or no interaction beyond normal use.

It is most often found in parsers for complex or legacy formats, in kernel-mode drivers reachable from a local user, and in services that handle network input. CAD and image formats, Office documents, PDF readers, browser scripting engines, Windows kernel and graphics drivers, and file system drivers all recur heavily. The common thread is code that consumes structured input and has to trust fields inside it.

How it works

The mechanics, as the reports show them.

The first step is always the same: untrusted data enters the program. That might be a file the user opens, a document rendered in a preview pane, a page loaded in a browser, a request sent to a network service, or an IOCTL sent to a driver. The program then interprets that data according to a format, reading fields that describe lengths, sizes, offsets, counts or object references.

The bug appears when those fields are trusted without being checked against reality. A length field says a block is larger than the buffer it will be copied into, or an offset points outside the allocation, or a count exceeds the array. The code copies or reads anyway, and memory outside the intended buffer is overwritten or exposed. This missing or incorrect bounds check is the dominant root cause across the evidence.

A second family is lifetime mismanagement. An object is freed, but another part of the program, often another thread or an asynchronous callback, still holds a reference and uses it. The result is a use-after-free or double free. These are harder to trigger because they often depend on a race window, but they are common in kernel components, scripting engines and parsers that manage complex object graphs.

What makes it possible is the gap between what the input claims and what the code verifies. Parsers for rich formats have many interdependent fields, and a single unchecked value can steer a copy or an index. Drivers and services often assume callers are well behaved. Object lifetime bugs arise when ownership is shared across threads without reference counting or synchronisation. In every case the fix is the same shape: validate before you use, and track ownership carefully.

Once memory is corrupted, the path to impact depends on what was overwritten. A controlled write can redirect execution or corrupt a pointer; an out-of-bounds read can leak memory contents that help defeat address randomisation. In kernel or driver contexts the same flaw can turn a low-privileged local process into SYSTEM. In a browser or document context it can lead to code execution with the victim's rights, sometimes after escaping a sandbox.

Year by year

21 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 5,597
Reports per year
200631
200753
200865
200957
201013
201110
201271
201375
201487
2015184
2016436
2017643
2018936
20191360
20201333
20211396
20221443
20231484
20241490
20251337
20265597
  1. 2026

    5,597 reports · median $3,000

    New this year3

    • A large share of the use-after-free reports require winning a race condition, so timing-based testing is worth building into a local test harness in the disclosed reports.
    • A large share of the Apple reports are out-of-bounds writes and reads in media, font, 3D model and file system parsers, fixed with improved bounds checking in the disclosed reports.
    • Many reports target graphics layers such as ANGLE, Dawn, Skia and WebGL, often for uninitialised resources and out-of-bounds access in the disclosed reports.

    Kept working6

    • From low-privileged local code, win32kfull, storport, http.sys, the graphics kernel, telephony, storage, USB, MIDI, message queuing, Kerberos, SMB client, DHCP client, shell, cloud files and container isolation drivers were exercised with crafted input to look for use-after-free, integer overflow, double free or heap overflow in the disclosed reports.
    • Heap-based buffer overflow was by far the most common weakness, appearing across drivers, services and file parsers in the disclosed reports.
    and 4 more

    Turned up less1

    • The 2025 X.Org server request handling cluster does not recur at the same volume in the 2026 batch in the disclosed reports.
  2. 2025

    1,337 reports · median $7,000

    New this year4

    • Where a fix or mitigation narrows a timing window, the attack variation is to win the race condition to reach the freed object, a pattern that grows in the disclosed reports.
    • The print workflow service was targeted for use-after-free races leading to SYSTEM in the disclosed reports.
    • The X.Org server request handling for cursors, keyboard mappings, pointer barriers, window redirection, events and sync counters was targeted in the disclosed reports.
    and 1 more

    Kept working6

    • One image viewer's CAD plugin was targeted across DWG, DXF and CGM formats, showing a single parser family can yield many distinct bugs in the disclosed reports.
    • Microsoft Windows kernel and service memory corruption was a large share of the batch, with a second cluster of third-party file parser bugs in the disclosed reports.
    and 4 more

    Turned up less1

    • The 2024 GTKWave waveform parser cluster does not recur at the same volume in the 2025 batch in the disclosed reports.
  3. 2024

    1,490 reports · median $7,000

    New this year4

    • A cluster of Chrome reports were V8 compiler optimisation bugs such as switch index zero-extension, BigInt shifts, Maglev escape analysis and JSPI deoptimisation leading to type confusion or out-of-bounds access in the disclosed reports.
    • A large cluster of reports came from one audit of GStreamer's MP4, Matroska and subtitle parsers, mostly out-of-bounds reads from unchecked sizes in the disclosed reports.
    • The embedded boa web server in a router SDK was targeted, with many separate form handlers each missing length checks, in the disclosed reports.
    and 1 more

    Kept working6

    • One vendor's CAD product was targeted with many reports per file format and per weakness class in the same year in the disclosed reports.
    • DPAX, ALM, CMT and TBK project files were opened with overlong fields in the DOPSoft component to check for stack buffer overflows from missing length checks in the disclosed reports.
    and 4 more

    Turned up less1

    • The 2023 D-Link DAP-2622 DDP handler cluster does not recur at the same volume in the 2024 batch in the disclosed reports.

    Reports from 202460

    Every point and report from 2024
Every point, year by year

Where it is found

2,509

The features and places the reports found it in, most-reported first.

  1. Memory corruption in Windows kernel-mode and driver components reachable by a local low-privileged user is a place to look.

    Seen in 54 reports
  2. Bentley MicroStation CONNECT and Bentley View parsing of PDF, TIF, DXF, J2K, JT, 3DS, DGN, BMP, PNG and JP2 files.

    Seen in 50 reports
  3. The Windows Biometric Service is a recurring local privilege escalation target reachable by a local low-privileged user, repeatedly showing heap overflow and integer wraparound issues.

    Seen in 44 reports
  4. Image import paths in CAD tools accept many legacy formats (TIF, PCX, PICT, BMP, PSD, JT, DWF, DWFX, DWG, 3DS, PDF) and each parser is a separate attack surface.

    Seen in 42 reports
  5. File parsers in Revit, AutoCAD, eDrawings, KeyShot and Ashlar-Vellum products.

    Seen in 39 reports
View all 2,509

Root causes

3,817

The mistakes in the code or configuration behind the reports.

  1. An object is used without checking it still exists, leaving a dangling pointer.

    Seen in 116 reports
  2. A user-controlled value is dereferenced as a pointer without validating that it points to legitimate memory.

    Seen in 96 reports
  3. Objects are used after being freed because their existence is not checked before use.

    Seen in 67 reports
  4. The dominant root cause is missing or incorrect length and bounds checks before copying input into a heap or stack buffer.

    Seen in 67 reports
  5. Incoming data is written to a heap buffer without a correct size or bounds check.

    Seen in 60 reports
View all 3,817

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Network protocol and server input

of 3 ticked
  • Seen in 16 reports
  • Seen in 15 reports
  • Seen in 11 reports
More in Network protocol and server input

Other

of 3 ticked
  • Seen in 19 reports
  • Seen in 6 reports
  • Seen in 6 reports
More in Other

Browser engine and DOM lifetime

of 3 ticked
  • Seen in 12 reports
  • Seen in 9 reports
  • Seen in 9 reports
More in Browser engine and DOM lifetime

Image and raster format parsers

of 3 ticked
  • Seen in 21 reports
  • Seen in 15 reports
  • Seen in 13 reports
More in Image and raster format parsers
View more things to try

Bypasses and variations

756

How reports got past filters, encoders and other defences.

  1. Where a fix or mitigation narrows a timing window, the attack variation is to win the race condition to reach the freed object.

    Seen in 236 reports
  2. Deliver the attack through a file the victim opens or a page they visit, so the parser is reached through normal user interaction.

    Seen in 155 reports
  3. The attack can be delivered either by opening a malicious file or by visiting a malicious page that triggers the parser.

    Seen in 54 reports
  4. Exploitation depends on winning a race window, so repeat attempts and widen the timing window.

    Seen in 47 reports
  5. The Preview Pane is an attack vector, so a document can trigger without a full open.

    Seen in 36 reports
View all 756

Payouts

1,093 paid

Public bounties in US dollars, from the data. 1,093 of 18,300 reports show an amount.

a quarter paid up to
$1,000
median
$4,000
three quarters paid up to
$8,000
highest
$250k

One in ten paid reports was paid $16k or more.

SeverityReportsPaidMedianHighest
Critical 1,895 56 $10k $97k
High 12,025 583 $7,000 $250k
Medium 1,549 253 $2,000 $100k
Low 681 55 $500 $15k
Informational 33 4 $100 $800
Unrated 2,117 142 $800 $80k

Highest-paid reports5

Typical fixes

976

How programs fixed it, as the reports describe.

  1. Validate the length of supplied data against the destination buffer size before copying.

    Seen in 113 reports
  2. Apple fixed most of these with improved bounds checking, improved input validation or improved memory management.

    Seen in 82 reports
  3. Validate that an object still exists before dereferencing or operating on it, and close race windows between freeing and reuse.

    Seen in 76 reports
  4. Add bounds and length checks before copying input into fixed-size buffers.

    Seen in 68 reports
  5. Add correct length and bounds checks before writing to heap or stack buffers.

    Seen in 68 reports
View all 976

Tips for beginners

12

Advice for a first hunt, drawn from the reports.

  1. Start with parsers you can drive yourself. Desktop viewers and editors that open many legacy formats are the richest ground, because each format is a separate attack surface and the code often trusts fields inside the file. Pick one application and one format, and learn its structure before you mutate anything.

    Seen in 6 reports
  2. Focus on length, size, offset and count fields. These are where bounds checks go missing. Vary one field at a time, make it larger than the actual data, negative, or inconsistent with another field, and watch for crashes or memory errors. A crash alone is a lead, not a finding; you need to show what memory was affected.

    Seen in 6 reports
  3. For local privilege escalation, look at kernel-mode drivers and services reachable from a low-privileged user. Exercise IOCTL handlers and object lifetime paths with crafted input and check whether a use-after-free, double free or heap overflow lets you gain higher privileges. Prove the elevation, not just the crash.

    Seen in 6 reports
  4. For network services, test without credentials first. Send crafted requests to handlers that copy input into fixed buffers and look for overflows. If the service is reachable without authentication, that raises the severity, but confirm the impact rather than reporting a bare crash.

    Seen in 6 reports
  5. Remember the preview pane and reading pane. Many document parsers are reached without the user fully opening the file, which changes the threat model and the impact. Test both the full-open path and the preview path, because some flaws trigger only in one.

    Seen in 6 reports
View all 12

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on Memory corruption, from around the web.

Keep learning

Where this lesson fits, and what to read next.

How this is made: our model read every listed Memory corruption report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 28 Nov 2026 from 18,300 reports. All Memory corruption reports.