Bitcoin Core Fixes Low-Severity Undo File Overflow Vulnerability
Developers patched a bug discovered by an automated AI scan that could cause nodes to crash under extreme reorganization conditions.
At a glance
- What happened
- Bitcoin Core released updates across versions 29.5 through 32.1 to patch an undo file integer overflow that could halt nodes under extreme conditions.
- Why it matters
- While the attack is practically unfeasible to execute on 64-bit systems, unpatched nodes on 32-bit or FAT32 setups remain exposed to write failures.
- Who is affected
- Bitcoin node operators running unpatched releases, 32-bit systems, or FAT32 block storage directories.
- Takes effect
- 2026-10-28
- What's next
- No next step announced.
- Primary source
- Bitcoin Core: Undo file overflow under extreme conditions
Key points
Bitcoin Core developers disclosed a low-severity vulnerability on Oct. 28 that could allow miners to corrupt node undo data and cause software shutdowns under specific reorganization conditions 1. The bug has been resolved across 64-bit systems in Bitcoin Core versions 29.5, 30.4, 31.2, and 32.1, according to the project's security advisory 1. At the time of writing, $BTC traded around $80,709.
Bitcoin Core relies on undo data stored in rev*.dat files to disconnect blocks during a chain reorganization 1. While block files are limited to 128 MiB, undo files lacked a maximum size constraint, and positions were recorded using 32-bit integers 1. A miner producing blocks with extensive undo data could push a file past 4 GiB, causing the 32-bit integer to wrap, overwrite older data, and truncate the file 1. Should a node subsequently reorganize an affected block, it fails to read the necessary undo information and halts operation, requiring a full reindex with a patched version to recover 1. On Windows and 32-bit operating systems, where file positioning calls were constrained to 2 GiB, writes failed immediately upon crossing that threshold without requiring a chain reorg 1.
Practical Constraints and Lingering Exposures
Bitcoin Core maintainers categorized exploitation as impractical 1. To trigger the overflow on 64-bit machines, an attacker would need to mine several thousand nonstandard transaction blocks—equivalent to about a month of entire network output—and successfully execute a precise two-block reorganization targeting varying local file layouts 1. In theory, deeper control could allow an attacker to restore incorrect coins during a reorganization, thereby corrupting a node's UTXO set 1.
The software patch addresses the issue by storing file positions as 64-bit integers and applying 64-bit positioning calls on Windows 1. However, 32-bit platforms and nodes hosting block directories on FAT32 file systems remain vulnerable due to inherent 2 GiB and 4 GiB operating boundaries 1. The vulnerability was originally identified on July 8 by Elias Rohrer's automated model-assisted security initiative, Project Loupe at Spiral, and confirmed to core maintainers by Gregory Sanders before independent disclosures in August and October 1.
Sources
- [1] Undo file overflow under extreme conditions — Bitcoin Core, October 28, 2026
Written by Basis Desk's newsroom system from the primary sources above and machine-verified against them before publication. Market figures marked "at the time of writing" come from live exchange data. Report an error: corrections@basisdesk.news · corrections policy.
The Daily Brief, in your inbox at 07:00 ET
Five stories, the numbers that moved, what to watch. Three minutes. No hype, no advice, unsubscribe in one click.
Get the big crypto stories first
A few alerts a day at most: major breaking news and the morning brief. Switch off anytime.
Not financial advice. Basis Desk publishes information, not recommendations. Crypto assets are volatile and you can lose what you invest.