CVE-2026-120221
frr: bgpd double free of peer-group Site-of-Origin when dynamic neighbors disconnect
Check your servers for CVE-2026-120221
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-120221 affects frrouting, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/AU:N/R:A
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.38%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 34.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 17 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| frrouting |
affected 01da2d26911c72023e71579bf4feeb707087ef50 and later (unaffected from 6a96f515760dc278147fbf802777956ba80c7edd) affected from 8.4.0, before 10.2.7 affected from 10.3.0, before 10.3.5 affected from 10.4.0, before 10.4.6 affected from 10.5.0, before 10.5.6 affected from 10.6.0, before 10.6.3 affected from 10.7.0, before 10.7.2
Other versions: unaffected
|
Is my server affected?
Find the installed version of frrouting and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i frrouting
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-120221 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-120221RHEL, Rocky, Alma, Fedora
rpm -q frrouting
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-120221Alpine
apk list --installed | grep -i frroutingWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-120221
trivy image --scanners vuln IMAGE | grep CVE-2026-120221
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- https://github.com/FRRouting/frr/pull/21685/changes/6a96f515760dc278147fbf802777956ba80c7edd github.com · patch
Source: the record CVE-2026-120221 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse