{"schemaVersion":4,"id":"CVE-2026-120221","aliases":["DEBIAN-CVE-2026-120221","UBUNTU-CVE-2026-120221"],"status":"published","duplicateOf":null,"title":"frr: bgpd double free of peer-group Site-of-Origin when dynamic neighbors disconnect","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.","dates":{"published":"2026-11-13T11:54:24.035Z","modified":"2026-11-17T16:03:34.129Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.2,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.2,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.2,"severity":"high","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:A/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":8.2,"severity":"high","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:A/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.2,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.0038,"percentile":0.34155,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-14T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0038,"percentile":0.34155}],"last30":[{"date":"2026-11-14T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0038,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0038,"percentile":0.34155}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-415","name":"Double Free","description":"The product calls free() twice on the same memory address.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/415.html"},{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"frr","name":"frr","label":"frr","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/frr","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"frr","name":"frr","label":"frr","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/frr","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"quagga","name":"quagga","label":"quagga","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/quagga","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"frrouting","product":"frrouting","name":"frrouting","label":"frrouting","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 01da2d26911c72023e71579bf4feeb707087ef50","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"range","start":"01da2d26911c72023e71579bf4feeb707087ef50","startInclusive":true,"end":null,"endInclusive":false}},{"text":"≥ 8.4.0, < 10.2.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.4.0","startInclusive":true,"end":"10.2.7","endInclusive":false}},{"text":"≥ 10.3.0, < 10.3.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"10.3.0","startInclusive":true,"end":"10.3.5","endInclusive":false}},{"text":"≥ 10.4.0, < 10.4.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"10.4.0","startInclusive":true,"end":"10.4.6","endInclusive":false}},{"text":"≥ 10.5.0, < 10.5.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"10.5.0","startInclusive":true,"end":"10.5.6","endInclusive":false}},{"text":"≥ 10.6.0, < 10.6.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"10.6.0","startInclusive":true,"end":"10.6.3","endInclusive":false}},{"text":"≥ 10.7.0, < 10.7.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"10.7.0","startInclusive":true,"end":"10.7.2","endInclusive":false}}],"versionsText":"≥ 01da2d26911c72023e71579bf4feeb707087ef50 (No fix recorded) | ≥ 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","eol":null,"hubHref":"/vendor/frrouting/frrouting"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/FRRouting/frr/pull/21685/changes/6a96f515760dc278147fbf802777956ba80c7edd","label":"github.com/FRRouting/frr/pull/21685/changes/6a96f515760dc278147fbf802777956ba80c7edd","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-120221","label":"security-tracker.debian.org/tracker/CVE-2026-120221","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-120221","label":"ubuntu.com/security/CVE-2026-120221","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-120221","label":"www.cve.org/CVERecord?id=CVE-2026-120221","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/FRRouting/frr/pull/21685","label":"github.com/FRRouting/frr/pull/21685","hostname":"github.com","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:12637-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:12637-1"]},"timeline":[{"kind":"published","date":"2026-11-13T11:54:24.035Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T16:03:34.129Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 10.2.7, 10.3.5, 10.4.6, 10.5.6, 10.6.3, 10.7.2 (CNA); fix release not confirmed","rank":[0,0,0,0,0,82],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0038,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T16:03:34.129Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.2,"vector":"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","version":"4.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-17T16:03:34.129Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.2,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:A/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"osv_debian","date":"2026-11-17T16:03:34.129Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.2,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:N/R:A/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-17T16:03:34.129Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.2,"vector":"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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T16:03:21.161Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0038,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:11:19.514Z","stale":false,"partial":false}}