Skip to content
Basis Desk

New from Basis Desk: free Telegram proxies for places where Telegram is blocked or slowed down.Connect in one tap →

Tech & Protocols · 2 min read

Bitcoin Core Fixes Medium-Severity Memory Growth Bug Across Older Versions

Developers resolved a queue accumulation flaw affecting pre-BIP31 peers that allowed unbounded memory leaks up to 5MB per hour.

Editorial oversight: Julian Mercer, Chief Editor
Neutral

At a glance

What happened
Bitcoin Core released security updates for versions 29, 30, 31, and 32 on Oct. 27 and Oct. 28 to fix an unbounded memory leak bug.
Why it matters
Malicious peers pretending to lack BIP 31 support could delay message reading and trigger persistent memory consumption up to 5MB per hour.
Who is affected
Bitcoin Core node operators running vulnerable releases without the -blocksonly configuration.
Takes effect
2026-10-28
What's next
No next step announced.
Primary source
Bitcoin Core: Slow unbounded memory growth on paused pre-BIP31 peers

Key points

  • Bitcoin Core resolved an unbounded memory growth flaw across maintenance versions 29.5, 30.4, 31.2, and 32.1 on Oct. 27 and Oct. 28 1.
  • A malicious peer mimicking pre-BIP31 status could leak up to 2MB hourly inbound and 5MB outbound due to unexercised 20-minute ping timeouts 1.
  • Spiral's automated LLM tool Project Loupe first flagged the issue on Sept. 15 before an independent rediscovery on Sept. 21 1.

Bitcoin Core developers disclosed a medium-severity vulnerability on Oct. 28 involving unbounded memory consumption triggered by legacy network peers 1. The flaw, which allowed paused connections to indefinitely accumulate transaction announcements, was resolved across multiple software releases, specifically versions 29.5, 30.4, 31.2, and 32.1 1. At the time of writing, $BTC traded at $80,835.

The vulnerability stemmed from how Bitcoin Core manages backpressure for slow-reading peers 1. When an outgoing message buffer crosses a preset limit, the node marks that peer as paused for transmission purposes 1. Although paused, the node continued to append certain messages, notably frequent transaction inventory notifications, to the queue 1. Under typical conditions, non-responsive connections are severed after failing to answer a nonced ping within 20 minutes 1. However, nodes lacking BIP 31 support bypassed this disconnection mechanism entirely 1. An attacker could simulate a pre-BIP31 client and deliberately delay message consumption, leading to continuous memory accumulation of up to 2MB hourly for inbound peers and 5MB hourly for outbound connections 1. Nodes configured with the -blocksonly flag experienced significantly reduced exposure because transaction announcements constituted the bulk of queued data 1.

Automated Auditing and Timeline

The vulnerability was initially flagged on Sept. 15 through Project Loupe, an automated large language model audit framework led by Elias Rohrer at Spiral 1. Spiral contributor Gregory Sanders verified the report and notified the Bitcoin Core security team that same day 1. A researcher known as L0rinc independently identified the flaw and reported it to Sanders on Sept. 21 1. The fix follows earlier maintenance addressing client stability, including when Bitcoin Core Patches Memory Exhaustion Bug on Non-Linux Systems.

Mitigation work began on Oct. 26 when developer Antoine Poinsot submitted pull request #36667, which was merged and backported across maintenance branches 29, 30, 31, and 32 1. Bitcoin Core versions 31.2 and 32.1 were distributed on Oct. 27, followed by releases 29.5 and 30.4 on Oct. 28 alongside the public disclosure 1. Node operators running impacted versions are advised to update to secure their instances against potential denial-of-service attempts 1.

Questions this story raises

Which Bitcoin Core versions contain the fix?
The fix was released in Bitcoin Core versions 29.5, 30.4, 31.2, and 32.1.
How did the vulnerability exhaust memory?
Peers falsely claiming not to support BIP 31 avoided the standard 20-minute inactivity disconnect, allowing queued transaction announcements to pile up without limit.

Sources

  1. [1] Slow unbounded memory growth on paused pre-BIP31 peers — 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.

Community read
How do you read this story for the assets involved? One vote a day, anonymous.
Be the first to vote

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.

Not financial advice. Basis Desk publishes information, not recommendations. Crypto assets are volatile and you can lose what you invest.