
BIRD's public CVE list is short. The edges around the matcher are not: extended
messages, AS_SETs, 4-byte AS transitions, and the attribute-length rules that
are supposed to bound them.
An honest note on the record
Unlike Cumulus or Chrome, BIRD does not have a long public trail of parser CVEs
to climb. The corpus records one CVE and no companion cluster. This part
therefore walks the protocol edges the matcher must handle, not a list of
sibling advisories — and labels them as edges, not as separately disclosed
bugs.
Edge 1: the message-size ceiling moved
For most of BGP's life, an UPDATE was capped at 4096 bytes. That cap was an
implicit bound on AS_PATH length: 2-byte ASNs, 4096 bytes, roughly 2048 ASNs.
RFC 8654 BGP Extended Messages raises the cap to 65535 bytes. The implicit
bound disappears. Any code that sized a buffer for the old ceiling — or for
"realistic" paths — is now exposed to a path the protocol permits.
This is the single most important context for CVE-2026-49943. The corpus's own
exploitability arithmetic assumed the 4096-byte cap and concluded a
single-UPDATE trigger was not deliverable. With extended messages, that
conclusion does not hold.
Edge 2: AS_SET and segment composition
AS_PATH is not a flat list. It is segments of two types, and a path can mix
them. A matcher that records positions per ASN must decide how a set contributes
to alignment: one position, one per member, or a range.
Different choices produce different position counts for the same wire path.
The advisory does not say which composition drives the overflow; it says
parse_path() can produce more positions than as_path_match() can store.
Edge 3: the 4-byte AS transition
The AS4_PATH attribute exists to carry 4-byte ASNs through 2-byte-only
speakers. A router that supports 4-byte ASNs merges AS4_PATH into AS_PATH. The
merge has to handle paths of different lengths, missing attributes, and
ordering.
This is the same area where other routing daemons have produced index and
length bugs (the GoBGP series in this corpus is one example). For BIRD, the
documented defect is the mask matcher, but the merge path is an edge worth
testing in any deployment that still speaks to 2-byte peers.
Edge 4: attribute-length validation
Every path attribute carries a length chosen by the sender. The receiving
speaker must validate that the length fits the attribute type and the remaining
message. Extended messages make "remaining message" larger, which makes a
missing bound more consequential.
BIRD's parse_path() is the producer named in the advisory. Whether it
validates segment lengths against the expanded position count is the question
the advisory leaves open.
Edge 5: the filter is trusted, the path is not
Filters are configuration. Daemons often assume configuration is benign — and
for the mask itself, that is true: the operator writes it. But the path the
mask is evaluated against comes from a peer. The combination of a trusted,
possibly complex mask and an untrusted, arbitrarily long path is what turns a
configuration expression into an attack surface.
What the edges share
Each edge changes the number of match positions or the size of the input:
- extended messages increase the path length the peer can deliver;
- AS_SET composition changes the position count for a given path;
- the 4-byte merge changes the path BIRD evaluates;
- missing length validation lets an attribute exceed its expected shape;
- a complex mask multiplies positions per path element.
The matcher's fixed array is the constant. Every edge pushes against it.

Next: Part 7 — the first and most fundamental flaw: CVE-2026-49943, the
fixed array, and the extended message that defeats the old arithmetic.

Comments (0)