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.
- disclosed reports read
- 18,300
- reports cited in this lesson
- 17,982
- median public bounty
- $4,000
- highest public bounty
- $250k
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.
Seen in these reports18
-
High -
High -
High
Show 5 moreShow fewer
-
High -
High -
High -
High -
High
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.
Seen in these reports30
-
Low -
Low -
High
Show 5 moreShow fewer
-
High -
High -
High -
High -
High
Year by year
21 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2006 | 31 |
|---|---|
| 2007 | 53 |
| 2008 | 65 |
| 2009 | 57 |
| 2010 | 13 |
| 2011 | 10 |
| 2012 | 71 |
| 2013 | 75 |
| 2014 | 87 |
| 2015 | 184 |
| 2016 | 436 |
| 2017 | 643 |
| 2018 | 936 |
| 2019 | 1360 |
| 2020 | 1333 |
| 2021 | 1396 |
| 2022 | 1443 |
| 2023 | 1484 |
| 2024 | 1490 |
| 2025 | 1337 |
| 2026 | 5597 |
-
2026
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.
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.
-
2025
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.
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.
Turned up less1
- The 2024 GTKWave waveform parser cluster does not recur at the same volume in the 2025 batch in the disclosed reports.
-
2024
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.
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.
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.
Earlier years18
Where it is found
2,509The features and places the reports found it in, most-reported first.
-
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
-
Bentley MicroStation CONNECT and Bentley View parsing of PDF, TIF, DXF, J2K, JT, 3DS, DGN, BMP, PNG and JP2 files.
Seen in 50 reports
-
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
-
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
-
File parsers in Revit, AutoCAD, eDrawings, KeyShot and Ashlar-Vellum products.
Seen in 39 reports
Technologies in these reports16
Root causes
3,817The mistakes in the code or configuration behind the reports.
-
An object is used without checking it still exists, leaving a dangling pointer.
Seen in 116 reports
-
A user-controlled value is dereferenced as a pointer without validating that it points to legitimate memory.
Seen in 96 reports
-
Objects are used after being freed because their existence is not checked before use.
Seen in 67 reports
-
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
-
Incoming data is written to a heap buffer without a correct size or bounds check.
Seen in 60 reports
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
Browser engine and DOM lifetime
of 3 ticked-
Seen in 12 reports
-
Seen in 9 reports
-
Seen in 9 reports
Image and raster format parsers
of 3 ticked-
Seen in 21 reports
-
Seen in 15 reports
-
Seen in 13 reports
Bypasses and variations
756How reports got past filters, encoders and other defences.
-
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
-
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
-
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
-
Exploitation depends on winning a race window, so repeat attempts and widen the timing window.
Seen in 47 reports
-
The Preview Pane is an attack vector, so a document can trigger without a full open.
Seen in 36 reports
Payouts
1,093 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| 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
-
$250,000 High -
$100,115 Medium -
$97,000 Critical -
$90,000 Critical -
$80,000
Typical fixes
976How programs fixed it, as the reports describe.
-
Validate the length of supplied data against the destination buffer size before copying.
Seen in 113 reports
-
Apple fixed most of these with improved bounds checking, improved input validation or improved memory management.
Seen in 82 reports
-
Validate that an object still exists before dereferencing or operating on it, and close race windows between freeing and reuse.
Seen in 76 reports
-
Add bounds and length checks before copying input into fixed-size buffers.
Seen in 68 reports
-
Add correct length and bounds checks before writing to heap or stack buffers.
Seen in 68 reports
Tips for beginners
12Advice for a first hunt, drawn from the reports.
-
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
-
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
-
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
-
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
-
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
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on Memory corruption, from around the web.
-
On the Effectiveness of Mutational Grammar FuzzingProject Zero examines when mutational grammar fuzzing finds bugs effectively and where it falls short.
Technique projectzero.google
-
Extending Ruzzy with LibAFLTrail of Bits shows how to combine its Ruzzy fuzzer with LibAFL for more capable fuzzing campaigns.
blog.trailofbits.com
-
VAD Stomping from Kernel R/W PrimitiveExplains hiding malicious code by manipulating virtual address descriptors from a kernel read write primitive.
Technique medium.com
-
Introducing a new way to buzz for eBPF vulnerabilitiesGoogle introduces a fuzzing approach for finding eBPF vulnerabilities in the kernel, relevant to low level researchers.
security.googleblog.com
-
Playing with canaries - elttamDeep dive into compiler stack canary implementations across architectures and what attackers must do to bypass them.
Technique elttam.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
Lessons 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.