frr: bgpd double free of peer-group Site-of-Origin when dynamic neighbors disconnect

State
Published
Severity
8.2 High
Published
Nov 13, 2026
Updated
Nov 17, 2026
Reserved
Oct 31, 2026

Read the record on cve.org

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.

ProductVersions
frrouting frrouting01da2d26911c72023e71579bf4feeb707087ef50 and later Affectedfrom 6a96f515760dc278147fbf802777956ba80c7edd Not Affected8.4.0 to before 10.2.7 Affected10.3.0 to before 10.3.5 Affected10.4.0 to before 10.4.6 Affected10.5.0 to before 10.5.6 Affected10.6.0 to before 10.6.3 Affected10.7.0 to before 10.7.2 Affected

Weaknesses

  • CWE-415 Double Free
  • CWE-416 Use After Free: the peer-group's SoO pointer is left dangling after the first dynamic neighbor is deleted and is read by later neighbors and by the configuration writer

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.