AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 28 Bitcoin

channeld: add extra_tlvs from update_add_htlc msg

Public commit record

What the developer wrote

Authored by Peter Neuroth

68/100 · Adequate
channeld: add extra_tlvs from update_add_htlc msg

We currently only consider known tlv types in the internal
representation of a htlc. This commit adds the remaining unknown tlv
fields to the htlc as well. This is in prepareation to forward these to
the htlc_accepted_hook.

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit changes how Core Lightning stores extra data fields (called TLVs) attached to HTLC payment messages. Previously, only known fields like the blinded path were kept. Now, any unknown extra TLV fields are preserved inside the internal HTLC record too. The stated purpose is to later forward these extra fields to the htlc_accepted_hook plugin interface. There is no direct security fix here; it is a data-preservation change that could affect how future features or plugins handle payment data.

Recommended action

Treat as a normal feature/data-integrity change. Review the eventual htlc_accepted_hook forwarding code for proper validation of extra TLVs, since preserving unknown fields from peers may expose plugins to malformed or oversized data. No immediate security action is required from this commit alone.

Security signals we found

01

Data field preservation change, not a vulnerability patch

02

Adds memory allocation and copying for attacker-controlled TLV fields

03

Could change plugin-visible behavior once htlc_accepted_hook forwarding is implemented

04

No bounds, validation, or parsing hardening visible in the diff

Risk score

Why this scored 28/100

Our methodology →
Potential impact 5/30
Exploitability 5/25
Stealth signal 5/15
Affected reach 5/15
Confidence 5/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.