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

common: fix bad formatting for DNS-type wireaddr.

Public commit record

What the developer wrote

Authored by Rusty Russell

70/100 · Adequate
common: fix bad formatting for DNS-type wireaddr.

Found by @Chand-ra fuzzing test!

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 fixes a formatting bug in Core Lightning where DNS-type network addresses were printed as plain text strings without using their known length. The old code passed a pointer to DNS address bytes directly to a string formatter, which could read past the intended data if the bytes were not null-terminated, potentially leaking nearby memory or crashing the program. The fix prints only the exact number of bytes that make up the DNS address.

Recommended action

Apply the patch. Review other address type formatters for similar length-handling issues. Consider adding regression tests with DNS addresses containing embedded null bytes or non-null-terminated inputs.

Security signals we found

01

Out-of-bounds read due to treating length-prefixed data as null-terminated string

02

Potential memory disclosure or crash in address formatting

03

Discovered via fuzzing, indicating input-driven memory-safety issue

04

Single-character fix in format specifier suggests localized but real bug

Risk score

Why this scored 35/100

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