p PatchFirst

CVE-2026-120221

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

CVSS 8.2 · High · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • frroutingUpdate to 10.2.7 / 10.3.5 / 10.4.6 …
  • frr Debian 12No fix published
  • frr Debian 13No fix published
  • frr Debian 14No fix published
  • and 8 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="frr"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • frrouting

    Versions
    • ≥ 01da2d26911c72023e71579bf4feeb707087ef50: Affected; ≥ 6a96f515760dc278147fbf802777956ba80c7edd: Not affected (git)
    • ≥ 8.4.0, < 10.2.7: Affected (semver)
    • ≥ 10.3.0, < 10.3.5: Affected (semver)
    • ≥ 10.4.0, < 10.4.6: Affected (semver)
    • ≥ 10.5.0, < 10.5.6: Affected (semver)
    • ≥ 10.6.0, < 10.6.3: Affected (semver)
    All versions (7)
    • ≥ 10.7.0, < 10.7.2: Affected (semver)

    Update to 10.2.7; Update to 10.3.5; Update to 10.4.6; Update to 10.5.6; Update to 10.6.3; Update to 10.7.2

  • frr Debian 12

    Versions
    • 10.0-0.1
    • 10.0-0.2
    • 10.0-1
    • 10.0-2
    • 10.0.1-0.1
    • 10.1-0.1
    All versions (59)
    • 10.1-0.2
    • 10.1.1-0.1
    • 10.1.1-1
    • 10.1.1-2
    • 10.1.1-3
    • 10.2-1
    • 10.2-2
    • 10.2.1-1
    • 10.2.1-2
    • 10.2.1-3
    • 10.2.1-4
    • 10.2.1-5
    • 10.2.1-6
    • 10.3-1
    • 10.3-2
    • 10.3-3
    • 10.3-4
    • 10.3-5
    • 10.3.1-1
    • 10.3.1-2
    • 10.3.1-3
    • 10.3.1-4
    • 10.4.0-1
    • 10.4.1-1
    • 10.4.1-2
    • 10.4.1-3
    • 10.5.0-1
    • 10.5.0-2
    • 10.5.1-1
    • 10.5.1-2
    • 10.5.1-3
    • 10.5.2-1
    • 10.5.3-1
    • 10.6.0-1
    • 10.6.0-2
    • 10.6.1-1
    • 10.6.1-2
    • 10.6.1-3
    • 10.7.0-1
    • 10.7.0-2
    • 10.7.1-1
    • 10.7.1-2
    • 10.7.1-3
    • 10.7.1-4
    • 10.7.1-5
    • 10.7.1-6
    • 10.7.1-7
    • 8.4.2-1
    • 8.4.4-1
    • 8.4.4-1.1
    • 8.4.4-1.1~deb12u1
    • 8.4.4-1.1~deb12u2
    • 9.1-0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Debian 13

    Versions
    • 10.3-3
    • 10.3-3+deb13u1
    • 10.3-4
    • 10.3-5
    • 10.3.1-1
    • 10.3.1-2
    All versions (33)
    • 10.3.1-3
    • 10.3.1-4
    • 10.4.0-1
    • 10.4.1-1
    • 10.4.1-2
    • 10.4.1-3
    • 10.5.0-1
    • 10.5.0-2
    • 10.5.1-1
    • 10.5.1-2
    • 10.5.1-3
    • 10.5.2-1
    • 10.5.3-1
    • 10.6.0-1
    • 10.6.0-2
    • 10.6.1-1
    • 10.6.1-2
    • 10.6.1-3
    • 10.7.0-1
    • 10.7.0-2
    • 10.7.1-1
    • 10.7.1-2
    • 10.7.1-3
    • 10.7.1-4
    • 10.7.1-5
    • 10.7.1-6
    • 10.7.1-7
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Debian 14

    Versions
    • 10.3-3
    • 10.3-4
    • 10.3-5
    • 10.3.1-1
    • 10.3.1-2
    • 10.3.1-3
    All versions (32)
    • 10.3.1-4
    • 10.4.0-1
    • 10.4.1-1
    • 10.4.1-2
    • 10.4.1-3
    • 10.5.0-1
    • 10.5.0-2
    • 10.5.1-1
    • 10.5.1-2
    • 10.5.1-3
    • 10.5.2-1
    • 10.5.3-1
    • 10.6.0-1
    • 10.6.0-2
    • 10.6.1-1
    • 10.6.1-2
    • 10.6.1-3
    • 10.7.0-1
    • 10.7.0-2
    • 10.7.1-1
    • 10.7.1-2
    • 10.7.1-3
    • 10.7.1-4
    • 10.7.1-5
    • 10.7.1-6
    • 10.7.1-7
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • quagga Ubuntu Pro 16.04 LTS

    Versions
    • 0.99.24.1-2
    • 0.99.24.1-2ubuntu1
    • 0.99.24.1-2ubuntu1.1
    • 0.99.24.1-2ubuntu1.2
    • 0.99.24.1-2ubuntu1.3
    • 0.99.24.1-2ubuntu1.4
    All versions (7)
    • 0.99.24.1-2ubuntu1.4+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • quagga Ubuntu Pro 18.04 LTS

    Versions
    • 1.1.1-3
    • 1.1.1-3ubuntu1
    • 1.2.2-1
    • 1.2.2-1ubuntu1
    • 1.2.4-1
    • 1.2.4-1ubuntu0.1~esm1
    All versions (7)
    • 1.2.4-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • quagga Ubuntu 20.04 LTS

    Versions
    • 1.2.4-4build1
    • 1.2.4-4ubuntu0.1
    • 1.2.4-4ubuntu0.4
    • 1.2.4-4ubuntu0.5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Ubuntu Pro 20.04 LTS

    Versions
    • 6.0.2-2build2
    • 7.2-1ubuntu1
    • 7.2-1ubuntu2
    • 7.2.1-1
    • 7.2.1-1ubuntu0.1
    • 7.2.1-1ubuntu0.2
    All versions (11)
    • 7.2.1-1ubuntu0.2+esm1
    • 7.2.1-1ubuntu0.2+esm2
    • 7.2.1-1ubuntu0.2+esm3
    • 7.2.1-1ubuntu0.2+esm4
    • 7.2.1-1ubuntu0.2+esm5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Ubuntu 22.04 LTS

    Versions
    • 7.5.1-1.1
    • 8.1-1
    • 8.1-1ubuntu1
    • 8.1-1ubuntu1.1
    • 8.1-1ubuntu1.2
    • 8.1-1ubuntu1.3
    All versions (19)
    • 8.1-1ubuntu1.4
    • 8.1-1ubuntu1.5
    • 8.1-1ubuntu1.6
    • 8.1-1ubuntu1.7
    • 8.1-1ubuntu1.8
    • 8.1-1ubuntu1.9
    • 8.1-1ubuntu1.10
    • 8.1-1ubuntu1.11
    • 8.1-1ubuntu1.13
    • 8.1-1ubuntu1.14
    • 8.1-1ubuntu1.15
    • 8.1-1ubuntu1.16
    • 8.1-1ubuntu1.17
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Ubuntu 24.04 LTS

    Versions
    • 8.4.4-1.1ubuntu1
    • 8.4.4-1.1ubuntu3
    • 8.4.4-1.1ubuntu4
    • 8.4.4-1.1ubuntu5
    • 8.4.4-1.1ubuntu6
    • 8.4.4-1.1ubuntu6.1
    All versions (13)
    • 8.4.4-1.1ubuntu6.2
    • 8.4.4-1.1ubuntu6.3
    • 8.4.4-1.1ubuntu6.4
    • 8.4.4-1.1ubuntu6.5
    • 8.4.4-1.1ubuntu6.6
    • 8.4.4-1.1ubuntu6.7
    • 8.4.4-1.1ubuntu6.8
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Ubuntu 26.10

    Versions
    • 10.5.1-1ubuntu4
    • 10.5.1-1ubuntu5
    • 10.5.1-1ubuntu6
    • 10.7.0-2ubuntu1
    • 10.7.1-1ubuntu1
    • 10.7.1-3ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • frr Ubuntu 26.04 LTS

    Versions
    • 10.4.1-3ubuntu1
    • 10.4.1-3ubuntu2
    • 10.5.1-1ubuntu1
    • 10.5.1-1ubuntu2
    • 10.5.1-1ubuntu3
    • 10.5.1-1ubuntu4
    All versions (7)
    • 10.5.1-1ubuntu4.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →