FRRouting bgpdで解放済みメモリを再利用する脆弱性 隣接ピアがBGPセッションを切断可能
Summary
FRRoutingのbgpdで、不正な長さのTunnel Encapsulation属性を処理したときに解放済みメモリを二重に解放する脆弱性が見つかりました。確立済みのBGPセッションを持つ隣接ピアが悪用でき、bgpdが異常終了してルーターのすべてのBGPセッションが切れるおそれがあります。影響するのは10.4.0以上10.4.4未満と10.5.0以上10.5.4未満で、修正版は10.4.4と10.5.4です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
FRRoutingのbgpdで、不正な長さのTunnel Encapsulation属性を処理したときに解放済みメモリを二重に解放する脆弱性が見つかりました。確立済みのBGPセッションを持つ隣接ピアが悪用でき、bgpdが異常終了してルーターのすべてのBGPセッションが切れるおそれがあります。影響するのは10.4.0以上10.4.4未満と10.5.0以上10.5.4未満で、修正版は10.4.4と10.5.4です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| frroutingfrrouting |
≥ 97dd9ea9e3e2aa982dcbc36466573eb4c0c87cbd (no fix yet)→ Not listed ≥ 10.6.0, < 10.6.2→ 10.6.2 |
Not listed 10.6.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-129456 frr Fix available
- Ubuntu UBUNTU-CVE-2026-129456 quagga, frr No fixed version in this record
Original description The description as published by the source.
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 r…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web github.com
- web github.com