frr: bgpd double free of peer-group Site-of-Origin when dynamic neighbors disconnect
- CVE-2026-120221
- GHSA-j25q-23f5-6558
- EUVD-2026-125277
Description
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.
Text from the CVE.org record.
Recommendation
frrouting
- If you run 10.7.xupdate to 10.7.2 or laterPatch update: breaking changes are unlikely
- If you run 10.6.xupdate to 10.6.3 or laterPatch update: breaking changes are unlikely
- If you run 10.5.xupdate to 10.5.6 or laterPatch update: breaking changes are unlikely
- If you run 10.4.xupdate to 10.4.6 or laterPatch update: breaking changes are unlikely
- If you run 10.3.xupdate to 10.3.5 or laterPatch update: breaking changes are unlikely
- If you run a version from 8.4.0 to before 10.2.7update to 10.2.7 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
frrouting
Affected versions Fixed in from 10.7.0 to before 10.7.2 10.7.2 from 10.6.0 to before 10.6.3 10.6.3 from 10.5.0 to before 10.5.6 10.5.6 from 10.4.0 to before 10.4.6 10.4.6 from 10.3.0 to before 10.3.5 10.3.5 from 8.4.0 to before 10.2.7 10.2.7
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.