Skip to content

Update wire to fix a potential use-after-free#2614

Open
jrick wants to merge 1 commit intodecred:masterfrom
jrick:wire_uaf
Open

Update wire to fix a potential use-after-free#2614
jrick wants to merge 1 commit intodecred:masterfrom
jrick:wire_uaf

Conversation

@jrick
Copy link
Member

@jrick jrick commented Feb 26, 2026

MsgTx decoding could result in caller-provided scripts being incorrectly added to the script freelist when decoding errors. These scripts will be reused during later deserializations, overwriting the existing scripts caller previously provided. This is, in other words, the same as a use-after-free violation in languages with manual memory management.

wire v1.7.3 provides a mitigation for this issue, as well as other performance improvements and addrv2 message support that dcrwallet will eventually benefit from.

MsgTx decoding could result in caller-provided scripts being incorrectly added
to the script freelist when decoding errors.  These scripts will be reused
during later deserializations, overwriting the existing scripts caller
previously provided.  This is, in other words, the same as a use-after-free
violation in languages with manual memory management.

wire v1.7.3 provides a mitigation for this issue, as well as other performance
improvements and addrv2 message support that dcrwallet will eventually benefit
from.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant