CVE-2026-129456

NameCVE-2026-129456
DescriptionIn FRRouting, bgpd frees the sub-TLV chain of a Tunnel Encapsulation attribute (type 23) while routes stored by bgpd still point to it, if the attribute is received from a neighbor that has "soft-reconfiguration inbound" configured. A cache added to speed up attribute interning while processing the prefixes of an UPDATE checks whether an interned attribute set may be reused by comparing the parsed attributes with themselves, so the check always succeeds. Interning the parsed attributes for the Adj-RIB-In removes the Tunnel Encapsulation sub-TLVs from them, and the copy that bgpd then interns for the route reuses the cached attribute set, which still holds the sub-TLVs, without taking a reference on them. When the route is later replaced, withdrawn or cleared, for example when the session goes down, the sub-TLV chain is freed while still in use, and bgpd then reads it, decrements a reference count inside it and frees it a second time. In the reporter's build without AddressSanitizer this ended in an assertion failure in bgpd's memory accounting, aborting bgpd and dropping all BGP sessions on the router, and the neighbor can repeat it each time bgpd restarts. Because freed heap memory is written to and freed again, consequences beyond a crash cannot be ruled out. An established BGP session is required, and the attribute does not need to be malformed. bgpd processes attribute 23 from every neighbor, including eBGP neighbors, unless it is explicitly discarded, although RFC 9012 requires it to be filtered on eBGP sessions by default. Neighbors without "soft-reconfiguration inbound" are not affected.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
frr (PTS)bookworm, bookworm (security)8.4.4-1.1~deb12u2vulnerable
trixie (security), trixie10.3-3+deb13u1vulnerable
forky, sid10.7.1-7fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
frrsource(unstable)10.7.0-1

Notes

https://github.com/FRRouting/frr/issues/20874
https://github.com/FRRouting/frr/pull/21176
Fixed by: https://github.com/FRRouting/frr/commit/8653c6638a4c39e4012b51139481f5d37bf40157 (frr-10.7.0-rc1)
Fixed by: https://github.com/FRRouting/frr/commit/5c241056777b27b209bc89326f0061ec6d5e0924 (frr-10.6.2)
Fixed by: https://github.com/FRRouting/frr/commit/812657fd3f66f4d3882b42c10c2fa91445771711 (frr-10.3.4)

Search for package or bug name: Reporting problems