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

pytest: test for crashing with HTLC added tlvs.

Public commit record

What the developer wrote

Authored by Rusty Russell

70/100 · Adequate
pytest: test for crashing with HTLC added tlvs.

Reported-by: grubles
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit adds a test that demonstrates a crash bug in Core Lightning when two HTLC (payment) messages with custom TLV fields are processed together. The crash occurs because internal memory-management code incorrectly treats a list of added HTLCs as if each entry were independently allocated, when only the first one is. The test is marked as expected to fail for now, meaning the underlying crash has not been fixed in this commit.

Recommended action

Treat this as a known unpatched crash/DOS bug. Locate and fix the marshalling code so it no longer treats non-head elements of the htlc_added array as independent tal objects. Run the new test to confirm the crash is resolved and remove the xfail marker once fixed. Consider whether the crash could be exploited more severely than denial of service.

Security signals we found

01

Denial-of-service vector: remote peer can trigger node crash by sending batched HTLCs with custom TLVs

02

Memory-management bug in TLV marshalling (tal object/array confusion)

03

Test is xfail: vulnerability is reproduced but not patched in this commit

04

Reported by external contributor grubles

Risk score

Why this scored 64/100

Our methodology →
Potential impact 22/30
Exploitability 14/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/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.