CVEfocus › CVE database › CVE-2026-120221

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

CVSS 8.2 HighEPSS 0.4% (higher than 29% of CVEs)Published 2026-11-13Updated 2026-11-17Assigner: NetDEF

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.

CWE-415CWE-416

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10frrFix pendingUBUNTU-CVE-2026-120221
Ubuntu 26.04frrUnder investigationUBUNTU-CVE-2026-120221
Ubuntu 24.04frrUnder investigationUBUNTU-CVE-2026-120221
Ubuntu 22.04frrUnder investigationUBUNTU-CVE-2026-120221
Ubuntu 20.04frrFix pendingUBUNTU-CVE-2026-120221
Ubuntu 20.04quaggaFix pendingUBUNTU-CVE-2026-120221
Ubuntu 18.04quaggaFix pendingUBUNTU-CVE-2026-120221
Ubuntu 16.04quaggaFix pendingUBUNTU-CVE-2026-120221
Debian 14frrFix pendingDEBIAN-CVE-2026-120221
Debian 13frrFix pendingDEBIAN-CVE-2026-120221
Debian 12frrFix pendingDEBIAN-CVE-2026-120221

What the vendor says

As published in the CVE record by NetDEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Do not configure "neighbor <peer-group> soo" on a peer-group used by "bgp listen range". Instead, set the SoO extended community with an inbound route-map, or set "neighbor soo" on statically configured neighbors. Configuring a TCP-MD5 "password" on the peer-group limits the trigger to hosts that know the key.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.