# CVE-2026-129456: frr: bgpd use-after-free of Tunnel Encapsulation sub-TLVs via the attribute intern reuse cache with soft-reconfiguration inbound

- Priority: **Routine**
- Reason: Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-14 · Modified: 2026-11-16
- Aliases: DEBIAN-CVE-2026-129456, UBUNTU-CVE-2026-129456
- Record: https://cvemate.com/vulnerability/CVE-2026-129456 · JSON: https://cvemate.com/vulnerability/CVE-2026-129456/json

## Description

```text
In 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.
```

## Signals

- CVSS: 7.7 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:L/AU:N/R:A
- EPSS: 0.383%, percentile 34.438%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian frr (Debian): All versions (No fix recorded) \| \< 10.7.0-1
- ubuntu frr (Ubuntu): All versions (No fix recorded)
- ubuntu quagga (Ubuntu): All versions (No fix recorded)
- frrouting frrouting: ≥ 97dd9ea9e3e2aa982dcbc36466573eb4c0c87cbd (No fix recorded) \| ≥ 10.6.0, \< 10.6.2

## References

- <https://github.com/FRRouting/frr/issues/20874>
- <https://github.com/FRRouting/frr/pull/21176/changes/1238ac4a06e5c23595e8bf626856f297d0c302a2>
- <https://github.com/FRRouting/frr/commit/bebf95f02bc0dccc6a1841f0c8cbcba1f617d655>
- <https://github.com/FRRouting/frr/commit/abef07b500e19baa924d157ab03809b93730e619>
- <https://github.com/FRRouting/frr/pull/22008/changes/40f25e62686865649b7631ec30756f9661e12dd3>
- <https://github.com/FRRouting/frr/commit/5c241056777b27b209bc89326f0061ec6d5e0924>
- <https://security-tracker.debian.org/tracker/CVE-2026-129456>
- <https://ubuntu.com/security/CVE-2026-129456>
- <https://www.cve.org/CVERecord?id=CVE-2026-129456>
- <https://github.com/FRRouting/frr/pull/21176>

---

Data as of 2026-12-05T04:10:13.017Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
