Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach frr · 3 builds in 2 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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 2026-11-13NVD
CVSS 4.0Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
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
Fable 5.2 · high confidence · 2026-11-19
The vulnerable code is present and unfixed in this build: bgpd is compiled and installed, and the peer-group SoO pointer is shared with member peers and then freed per peer.
It is not reachable on a shipped device through the product itself. bgpd is not started by default, and Infix has no YANG node, CLI command or web UI setting that starts it or configures a bgp listen range or neighbor PG soo. confd hard-codes bgpd=no and only ever enables ospfd, ospf6d, ripd, ripngd and bfdd.
Reaching it would need a root shell to enable the bgpd finit service by hand and to write a BGP configuration through vtysh that combines a listen range and a SoO on the same peer-group. Only then would the flaw be network-reachable on TCP 179 from hosts inside the listen range.
Evidence 12
`peer_group2peer_config_copy_af()` inherits the SoO with `PEER_ATTR_INHERIT(peer, group, soo[afi][safi])`, so the member peer shares the peer-group's pointer.
output/build/frr-10.5.5/bgpd/bgpd.c:2403
`PEER_ATTR_INHERIT` is a plain assignment `(peer)->attr = (group)->conf->attr`, with no `ecommunity_dup`.
output/build/frr-10.5.5/bgpd/bgpd.h:2134
Peer deletion calls `ecommunity_free(&peer->soo[afi][safi])` on the shared pointer, which is the double free described; the fix is not present.
output/build/frr-10.5.5/bgpd/bgpd.c:2917
`peer_create_bind_dynamic_neighbor()` calls `peer_group2peer_config_copy_af()` for listen-range peers, the path the CVE describes.
output/build/frr-10.5.5/bgpd/bgpd.c:4709
The six applied patches cover libyang compatibility, C++23 compatibility, zebra nexthop handling, lib interface handling and `mgmt_msg`; none touches `bgpd` or SoO.
output/build/frr-10.5.5/.applied_patches_list
`BR2_PACKAGE_FRR=y`, so the package is selected for the target image.
output/.config:3213
`BGPD_TRUE=''` and `BGPD_FALSE='#'`: `bgpd` is compiled. `buildroot/package/frr/frr.mk` has no option disabling it, and `bgpd` is present in `output/target/usr/sbin`.
output/build/frr-10.5.5/config.log:10362
With `BR2_PACKAGE_NETD_FRR_CONF` unset (`output/.config:5199`), all FRR daemon service files are copied to `available/`, but only `zebra`, `staticd` and `mgmtd` are linked into `enabled/`; `bgpd.conf` is not.
package/skeleton-init-finit/skeleton-init-finit.mk:98
The default daemons file has `bgpd=no`.
package/skeleton-init-finit/skeleton/etc/frr/daemons:5
`frr_daemons_write()` hard-codes `bgpd=no` whatever the configuration.
src/confd/src/routing.c:600
`finit_enable()` is called only for `ospfd`, `ospf6d`, `ripd`, `ripngd` and `bfdd` (lines 721-729); never for `bgpd`.
src/confd/src/routing.c:721
The control-plane-protocol type identities are limited to `ospfv2`, `ospfv3`, `ripv2`, `ripng`, `bfdv1` and `static` (plus `kernel`); there is no BGP identity, and no BGP model exists under `src/confd/yang/`.
src/confd/yang/confd/infix-routing.yang:196
Version and patches
The 10.5.5 source in output/build/frr-10.5.5/ contains the vulnerable pattern unfixed: a shared SoO pointer at bgpd/bgpd.c:2403 and a per-peer free at bgpd/bgpd.c:2917. None of the six applied patches addresses it, and there is no Buildroot IGNORE_CVES entry.
I could not consult the upstream fix commit (FRRouting/frr PR 21685) from this tree, so the affected range and first fixed release are not confirmed. The NVD product and version match is correct for this package.
Recommendation
Document as not exposed: bgpd is shipped but cannot be enabled or configured through NETCONF/RESTCONF, the CLI or the web UI. No urgent backport is needed.
Pick up the fix with the next routine FRR bump that includes upstream PR 21685. Prioritise it, or backport the commit into patches/frr/10.5.5/, before any BGP support is added to confd, given the unauthenticated remote denial of service on configurations with a listen range.
As hardening, consider not installing bgpd and its finit service file while BGP is unsupported.
Open questions
The upstream fix commit and the fixed release version could not be checked offline.
The finding assumes customers do not run bgpd by hand from a root shell or through a custom overlay or startup script outside the supported management model; if any do, with both bgp listen range and a peer-group soo, they are exposed.
Process notes: one combined shell command was blocked by the permission system, so I redid those lookups as separate read-only searches from the tree root. I also ran one sed -n to print lines of package/skeleton-init-finit/skeleton-init-finit.mk, which the brief said not to use; it only read the file and changed nothing.
Members of Kernel Kit decide. Sign in if you are one.