CVE-2026-129456 (GCVE-0-2026-129456)

Vulnerability from cvelistv5 – Published: 2026-11-14 19:13 – Updated: 2026-11-14 19:13
VLAI
Title
frr: bgpd use-after-free of Tunnel Encapsulation sub-TLVs after a malformed attribute length from a peer
Summary
In FRRouting, bgpd accepts a Tunnel Encapsulation attribute (type 23) whose outer TLV length does not match the length of the attribute: the mismatch is only logged and the attribute is processed anyway. A BGP neighbor can send UPDATE messages carrying such an attribute that put the reference count of the attribute's interned sub-TLV chain out of balance, so that the chain is freed while routes stored by bgpd (Adj-RIB-In entries and RIB paths) still point to it. When those routes are later replaced, withdrawn or cleared, for example when the session goes down, bgpd reads the freed memory, decrements a reference count inside it and frees it a second time. In the reporter's build without AddressSanitizer this ended in an assertion failure in bgpd's memory accounting, aborting bgpd and dropping all BGP sessions on the router, and the neighbor can repeat it each time bgpd restarts. Because freed heap memory is written to and freed again, consequences beyond a crash cannot be ruled out. An established BGP session is required. bgpd processes attribute 23 from every neighbor, including eBGP neighbors, unless it is explicitly discarded, although RFC 9012 requires it to be filtered on eBGP sessions by default. The issue was reproduced with "soft-reconfiguration inbound" configured for the neighbor, and the reporter observed that the crash does not occur on every attempt.
CWE
  • CWE-416 - Use After Free: the interned Tunnel Encapsulation sub-TLV chain is freed while stored routes still reference it, and encap_unintern() later reads and decrements its reference count
  • CWE-415 - Double Free
Assigner
NetDEF CNA under the ENISA root
CNA scorecard – unranked: 5 records in the last 180 days, 10 needed details
Impacted products
Vendor Product Version CPE status
frrouting frrouting Affected: f4c89855b594d4b32bb3610537703215c978440e , < * (git)
Affected: 10.4.0 , < 10.4.4 (semver)
Affected: 10.5.0 , < 10.5.4 (semver)
    cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:*
    cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:*
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "modules": [
            "bgpd"
          ],
          "product": "frrouting",
          "programFiles": [
            "bgpd/bgp_attr.c"
          ],
          "programRoutines": [
            {
              "name": "bgp_attr_encap"
            },
            {
              "name": "encap_unintern"
            }
          ],
          "repo": "https://github.com/FRRouting/frr/",
          "vendor": "frrouting",
          "versions": [
            {
              "changes": [
                {
                  "at": "1238ac4a06e5c23595e8bf626856f297d0c302a2",
                  "status": "unaffected"
                }
              ],
              "lessThan": "*",
              "status": "affected",
              "version": "f4c89855b594d4b32bb3610537703215c978440e",
              "versionType": "git"
            },
            {
              "lessThan": "10.4.4",
              "status": "affected",
              "version": "10.4.0",
              "versionType": "semver"
            },
            {
              "lessThan": "10.5.4",
              "status": "affected",
              "version": "10.5.0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "10.4.4",
                  "versionStartIncluding": "10.4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "10.5.4",
                  "versionStartIncluding": "10.5.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ],
          "operator": "OR"
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "Fault Chain (https://faultchain.com/)"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Donatas Abraitis \u003cdonatas@opensourcerouting.org\u003e"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In FRRouting, bgpd accepts a Tunnel Encapsulation attribute (type 23) whose outer TLV length does not match the length of the attribute: the mismatch is only logged and the attribute is processed anyway. A BGP neighbor can send UPDATE messages carrying such an attribute that put the reference count of the attribute\u0027s interned sub-TLV chain out of balance, so that the chain is freed while routes stored by bgpd (Adj-RIB-In entries and RIB paths) still point to it. When those routes are later replaced, withdrawn or cleared, for example when the session goes down, bgpd reads the freed memory, decrements a reference count inside it and frees it a second time. In the reporter\u0027s build without AddressSanitizer this ended in an assertion failure in bgpd\u0027s memory accounting, aborting bgpd and dropping all BGP sessions on the router, and the neighbor can repeat it each time bgpd restarts. Because freed heap memory is written to and freed again, consequences beyond a crash cannot be ruled out. An established BGP session is required. bgpd processes attribute 23 from every neighbor, including eBGP neighbors, unless it is explicitly discarded, although RFC 9012 requires it to be filtered on eBGP sessions by default. The issue was reproduced with \"soft-reconfiguration inbound\" configured for the neighbor, and the reporter observed that the crash does not occur on every attempt."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NO",
            "Recovery": "AUTOMATIC",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "HIGH",
            "attackRequirements": "PRESENT",
            "attackVector": "NETWORK",
            "baseScore": 7.7,
            "baseSeverity": "HIGH",
            "exploitMaturity": "NOT_DEFINED",
            "privilegesRequired": "LOW",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "LOW",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:L/AU:N/R:A",
            "version": "4.0",
            "vulnAvailabilityImpact": "HIGH",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "HIGH",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-416",
              "description": "CWE-416 Use After Free: the interned Tunnel Encapsulation sub-TLV chain is freed while stored routes still reference it, and encap_unintern() later reads and decrements its reference count",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-415",
              "description": "CWE-415 Double Free",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-14T19:13:23.983Z",
        "orgId": "57a55968-44ac-464c-a794-6ba3baad09c4",
        "shortName": "NetDEF"
      },
      "references": [
        {
          "tags": [
            "issue-tracking"
          ],
          "url": "https://github.com/FRRouting/frr/issues/20874"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/FRRouting/frr/pull/21176/changes/1238ac4a06e5c23595e8bf626856f297d0c302a2"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/FRRouting/frr/commit/bebf95f02bc0dccc6a1841f0c8cbcba1f617d655"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/FRRouting/frr/commit/abef07b500e19baa924d157ab03809b93730e619"
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      },
      "title": "frr: bgpd use-after-free of Tunnel Encapsulation sub-TLVs after a malformed attribute length from a peer",
      "workarounds": [
        {
          "lang": "en",
          "value": "Configure \"neighbor \u003cneighbor\u003e path-attribute discard 23\" (or \"neighbor \u003cneighbor\u003e path-attribute treat-as-withdraw 23\") for neighbors that are not expected to send the Tunnel Encapsulation attribute, in particular all eBGP neighbors. bgpd then skips the attribute without parsing it."
        }
      ],
      "x_generator": {
        "engine": "vim"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "57a55968-44ac-464c-a794-6ba3baad09c4",
    "assignerShortName": "NetDEF",
    "cveId": "CVE-2026-129456",
    "datePublished": "2026-11-14T19:13:23.983Z",
    "dateReserved": "2026-11-14T19:03:34.352Z",
    "dateUpdated": "2026-11-14T19:13:23.983Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "modules": [
                  "bgpd"
                ],
                "product": "frrouting",
                "programFiles": [
                  "bgpd/bgp_attr.c"
                ],
                "programRoutines": [
                  {
                    "name": "bgp_attr_encap"
                  },
                  {
                    "name": "encap_unintern"
                  }
                ],
                "repo": "https://github.com/FRRouting/frr/",
                "vendor": "frrouting",
                "versions": [
                  {
                    "changes": [
                      {
                        "at": "1238ac4a06e5c23595e8bf626856f297d0c302a2",
                        "status": "unaffected"
                      }
                    ],
                    "lessThan": "*",
                    "status": "affected",
                    "version": "f4c89855b594d4b32bb3610537703215c978440e",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "10.4.4",
                    "status": "affected",
                    "version": "10.4.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "10.5.4",
                    "status": "affected",
                    "version": "10.5.0",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "57a55968-44ac-464c-a794-6ba3baad09c4"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In FRRouting, bgpd accepts a Tunnel Encapsulation attribute (type 23) whose outer TLV length does not match the length of the attribute: the mismatch is only logged and the attribute is processed anyway. A BGP neighbor can send UPDATE messages carrying such an attribute that put the reference count of the attribute\u0027s interned sub-TLV chain out of balance, so that the chain is freed while routes stored by bgpd (Adj-RIB-In entries and RIB paths) still point to it. When those routes are later replaced, withdrawn or cleared, for example when the session goes down, bgpd reads the freed memory, decrements a reference count inside it and frees it a second time. In the reporter\u0027s build without AddressSanitizer this ended in an assertion failure in bgpd\u0027s memory accounting, aborting bgpd and dropping all BGP sessions on the router, and the neighbor can repeat it each time bgpd restarts. Because freed heap memory is written to and freed again, consequences beyond a crash cannot be ruled out. An established BGP session is required. bgpd processes attribute 23 from every neighbor, including eBGP neighbors, unless it is explicitly discarded, although RFC 9012 requires it to be filtered on eBGP sessions by default. The issue was reproduced with \"soft-reconfiguration inbound\" configured for the neighbor, and the reporter observed that the crash does not occur on every attempt."
          }
        ],
        "id": "CVE-2026-129456",
        "lastModified": "2026-11-14T20:17:40.060",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NO",
                "Recovery": "AUTOMATIC",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "HIGH",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 7.7,
                "baseSeverity": "HIGH",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "LOW",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "LOW",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/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",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "57a55968-44ac-464c-a794-6ba3baad09c4",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-14T20:17:40.060",
        "references": [
          {
            "source": "57a55968-44ac-464c-a794-6ba3baad09c4",
            "url": "https://github.com/FRRouting/frr/commit/abef07b500e19baa924d157ab03809b93730e619"
          },
          {
            "source": "57a55968-44ac-464c-a794-6ba3baad09c4",
            "url": "https://github.com/FRRouting/frr/commit/bebf95f02bc0dccc6a1841f0c8cbcba1f617d655"
          },
          {
            "source": "57a55968-44ac-464c-a794-6ba3baad09c4",
            "url": "https://github.com/FRRouting/frr/issues/20874"
          },
          {
            "source": "57a55968-44ac-464c-a794-6ba3baad09c4",
            "url": "https://github.com/FRRouting/frr/pull/21176/changes/1238ac4a06e5c23595e8bf626856f297d0c302a2"
          }
        ],
        "sourceIdentifier": "57a55968-44ac-464c-a794-6ba3baad09c4",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-415"
              },
              {
                "lang": "en",
                "value": "CWE-416"
              }
            ],
            "source": "57a55968-44ac-464c-a794-6ba3baad09c4",
            "type": "Secondary"
          }
        ]
      }
    }
  }
}


Workarounds

CNA · NetDEF
Configure "neighbor <neighbor> path-attribute discard 23" (or "neighbor <neighbor> path-attribute treat-as-withdraw 23") for neighbors that are not expected to send the Tunnel Encapsulation attribute, in particular all eBGP neighbors. bgpd then skips the attribute without parsing it.

Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.