Skip to content
Fencer Vulns
medium 6.5

CVE-2022-40318 json

An issue was discovered in bgpd in FRRouting (FRR) through 8.4.

published 2023-05-03 3 y ago modified 2026-06-17 4 mo ago also EUVD-2022-43609

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.0%
EPSS 2.0% chance of exploitation in 30 days, percentile 80%
public exploits
0
none known

Summary

An issue was discovered in bgpd in FRRouting (FRR) through 8.4. By crafting a BGP OPEN message with an option of type 0xff (Extended Length from RFC 9072), attackers may cause a denial of service (assertion failure and daemon restart, or out-of-bounds read). This is possible because of inconsistent boundary checks that do not account for reading 3 bytes (instead of 2) in this 0xff case. NOTE: this behavior occurs in bgp_open_option_parse in the bgp_open.c file, a different location (with a different attack vector) relative to CVE-2022-40302.

Patch / fix

  • frr Debian 14, Debian 13, Debian 12 8.4.1-1

debian advisories DEBIAN-CVE-2022-40318

  • frr RHEL 9 8.3.1-11.el9_3
  • frr-selinux RHEL 9 8.3.1-11.el9_3

red hat advisories RHSA-2023:6434

  • frr AlmaLinux 9 8.3.1-11.el9_3.alma.1
  • frr-selinux AlmaLinux 9 8.3.1-11.el9_3.alma.1

almalinux advisories ALSA-2023:6434

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-40318 updated cvss 6.5

frr: denial of service by crafting a BGP OPEN message with an option of type in bgp_open_option_parse in the bgp_open.c 0xff

  • Red Hat Enterprise Linux AppStream (v. 9) frr 8.3.1-11.el9_3, frr-selinux 8.3.1-11.el9_3
    fixed: vendor fix RHSA-2023:6434
  • Red Hat Enterprise Linux 8 frr, frr-contrib, frr-selinux
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.98% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.