FRRoutingのbgpdに二重解放の脆弱性、BGPセッションが切断されるおそれ
Summary
FRRoutingのbgpdで、動的ネイバーの切断時にメモリを二重解放する脆弱性が見つかりました。「bgp listen range」と「neighbor PG soo」を同じピアグループで併用している構成が対象で、リスト範囲内のホストがTCP接続の開閉を繰り返すとbgpdが異常終了し、すべてのBGPセッションが切れるおそれがあります。FRRouting 8.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で、動的ネイバーの切断時にメモリを二重解放する脆弱性が見つかりました。「bgp listen range」と「neighbor PG soo」を同じピアグループで併用している構成が対象で、リスト範囲内のホストがTCP接続の開閉を繰り返すとbgpdが異常終了し、すべてのBGPセッションが切れるおそれがあります。FRRouting 8.4以降が影響を受けます。修正版は公表されていますが、影響するバージョンの扱いについては最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| frroutingfrrouting |
≥ 01da2d26911c72023e71579bf4feeb707087ef50 (no fix yet)→ Not listed ≥ 8.4.0, < 10.2.7→ 10.2.7 ≥ 10.3.0, < 10.3.5→ 10.3.5 ≥ 10.4.0, < 10.4.6→ 10.4.6 ≥ 10.5.0, < 10.5.6→ 10.5.6 ≥ 10.6.0, < 10.6.3→ 10.6.3 ≥ 10.7.0, < 10.7.2→ 10.7.2 |
Not listed 10.2.7 10.3.5 10.4.6 10.5.6 10.6.3 10.7.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-120221 frr No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-120221 quagga, frr No fixed version in this record
Original description The description as published by the source.
In FRRouting, bgpd frees the same memory twice when dynamic BGP neighbors disconnect, if the peer-group used by a "bgp listen range" also has a Site-of-Origin configured ("neighbor PG soo"). Each dynamic neighbor shares the peer-group's SoO value instead of getting its own copy, but frees it as its own when the neighbor is deleted, which happens as soon as its connection closes. The first disconnect leaves the peer-group pointing at freed memory, and the second disconnect frees it again, causing bgpd to abort and drop all BGP sessions on the router. Any host whose address falls inside the listen range can trigger this by opening and closing two TCP connections to the BGP port, without sending any BGP message and without knowing the AS number, and can repeat it each time bgpd restarts. If the peer-group has a TCP-MD5 password, only hosts that know the password can trigger it. Two ordinary flaps of legitimate dynamic neighbors have the same effect. Between the two frees, displaying the configuration ("show running-config") or establishing a dynamic neighbor also reads the freed memory, which can crash bgpd after a single disconnect. Only configurations that combine a listen range with a SoO on the same peer-group are affected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- web github.com
- web github.com