Skip to content

[28.x] validation: correct lifetime of precomputed tx data - #35213

Merged
achow101 merged 1 commit into
bitcoin:28.xfrom
darosior:2605_cleanup_CVE-2024-52911_v28
May 6, 2026
Merged

achow101 merged 1 commit into
bitcoin:28.xfrom
darosior:2605_cleanup_CVE-2024-52911_v28

Conversation

@darosior

@darosior darosior commented May 5, 2026

Copy link
Copy Markdown
Member

This backports #35209 to the version 28 branch.

This makes sure `txsdata` always outlives the Script check queue (since local
objects are destructed in reverse order of construction).

This is the root cause for a security vulnerability reported by Cory Fields in
2024 that could be exploited by crafting an invalid block to cause nodes to
read freed memory. The vulnerability was covertly fixed in commit
`492e1f09943fcb6145c21d470299305a19e17d8b`.

See security advisory for CVE-2024-52911 for more details.

Github-Pull: bitcoin#35209
Rebased-From: 1ed799f
@DrahtBot

DrahtBot commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35213.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK achow101

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

@achow101

achow101 commented May 6, 2026

Copy link
Copy Markdown
Member

ACK 076629a

@achow101
achow101 merged commit de32850 into bitcoin:28.x May 6, 2026
14 of 17 checks passed
@darosior
darosior deleted the 2605_cleanup_CVE-2024-52911_v28 branch May 6, 2026 10:07
morozow pushed a commit to morozow/bitcoin_rd that referenced this pull request May 8, 2026
…ed tx data

ddd194d validation: correct lifetime of precomputed tx data (Antoine Poinsot)

Pull request description:

  This backports bitcoin#35209 to the version 28 branch.

ACKs for top commit:
  achow101:
    ACK ddd194d

Tree-SHA512: b8fbf38a80c82abc1648446b05d15f1e04d3f067a50d583074d969ff5a509272691c4c469217e14d86245f63de1ae78efa7bf66c2dd031895373419be155d4e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants