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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: Low; AU: N; R: A
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.43% (percentile 29, 2026-11-28)
- **CWE:** CWE-415, CWE-416
- **Published:** 2026-11-13T11:54:24.035Z
- **Modified:** 2026-11-17T22:17:20.693Z

## Who should check

- Anyone running frrouting \>= 01da2d26911c72023e71579bf4feeb707087ef50, \< \*; \>= 8.4.0, \< 10.2.7; \>= 10.3.0, \< 10.3.5; \>= 10.4.0, \< 10.4.6; \>= 10.5.0, \< 10.5.6; \>= 10.6.0, \< 10.6.3; \>= 10.7.0, \< 10.7.2

## 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.

## Affected and fixed versions

- frrouting: \>= 01da2d26911c72023e71579bf4feeb707087ef50, \< \*; \>= 8.4.0, \< 10.2.7; \>= 10.3.0, \< 10.3.5; \>= 10.4.0, \< 10.4.6; \>= 10.5.0, \< 10.5.6; \>= 10.6.0, \< 10.6.3; \>= 10.7.0, \< 10.7.2 (cvelist)

## Mitigation

- Upgrade frrouting to 10.7.2 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-120221. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-120221.md
Affected: frrouting >= 01da2d26911c72023e71579bf4feeb707087ef50, < *; >= 8.4.0, < 10.2.7; >= 10.3.0, < 10.3.5; >= 10.4.0, < 10.4.6; >= 10.5.0, < 10.5.6; >= 10.6.0, < 10.6.3; >= 10.7.0, < 10.7.2
Fixed in: frrouting 10.2.7, frrouting 10.3.5, frrouting 10.4.6, frrouting 10.5.6, frrouting 10.6.3, frrouting 10.7.2

Steps:
1. Search this machine and project for frrouting: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-120221 being exploited?

There is no confirmed exploitation: CVE-2026-120221 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-120221?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-120221?

frrouting \>= 01da2d26911c72023e71579bf4feeb707087ef50, \< \*; \>= 8.4.0, \< 10.2.7; \>= 10.3.0, \< 10.3.5; \>= 10.4.0, \< 10.4.6; \>= 10.5.0, \< 10.5.6; \>= 10.6.0, \< 10.6.3; \>= 10.7.0, \< 10.7.2.

### Is there a fix for CVE-2026-120221?

Yes. Fixed in frrouting 10.2.7, frrouting 10.3.5, frrouting 10.4.6, frrouting 10.5.6, frrouting 10.6.3, frrouting 10.7.2. Upgrade frrouting to 10.7.2 or later. Vendor 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.

### How do I check if I'm affected by CVE-2026-120221?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/FRRouting/frr/pull/21685/changes/6a96f515760dc278147fbf802777956ba80c7edd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-120221>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-120221> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-120221>
