# CVE-2026-120221 - frr: bgpd double free of peer-group Site-of-Origin when dynamic neighbors disconnect

DevFeed: [CVE-2026-120221 - frr: bgpd double free of peer-group Site-of-Origin when dynamic neighbors disconnect](<https://devfeed.tech/articles/cve-2026-120221-frr-bgpd-double-free-of-peer-group-site-of-origin-when-dynamic-neighbors-disconnect-131769.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-120221>)

Author: CVEFEED.io

Published: 2026-11-13T12:17:03Z

Content type: article

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [attack](<https://devfeed.tech/tags/attack.md>), [bgp](<https://devfeed.tech/tags/bgp.md>), [crash](<https://devfeed.tech/tags/crash.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-120221](<https://devfeed.tech/tags/cve-2026-120221.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [frr](<https://devfeed.tech/tags/frr.md>), [frrouting](<https://devfeed.tech/tags/frrouting.md>), [memory](<https://devfeed.tech/tags/memory.md>), [peer](<https://devfeed.tech/tags/peer.md>), [site](<https://devfeed.tech/tags/site.md>), [tcp](<https://devfeed.tech/tags/tcp.md>), [trigger](<https://devfeed.tech/tags/trigger.md>)

## AI overview

In FRRouting 8.4 and later, bgpd can crash and drop all BGP sessions when a dynamic neighbor disconnects if its listen-range peer-group has a configured Site-of-Origin (`neighbor PG soo`). Dynamic neighbors share the peer-group's SoO memory but free it on deletion, leaving a dangling pointer; another disconnect can double-free it. A host in the listen range can trigger the crash by opening and closing two TCP connections to the BGP port without sending BGP messages. A TCP-MD5 password restricts triggering to hosts that know it. Two legitimate neighbor flaps can also cause the failure, and reading the configuration or establishing another dynamic neighbor after one disconnect may crash bgpd from the freed memory. Only this listen-range and SoO configuration combination is identified as affected.

## Source excerpt

CVE ID :CVE-2026-120221 Published : Nov. 13, 2026, 12:17 p.m. | 56 minutes ago Description :In FRRouting 8.4 and later, 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. Severity: 8.2 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...