CVE-2022-40302
An issue was discovered in bgpd in FRRouting (FRR) through 8.4. By crafting a BGP OPEN message...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2022-40302- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List
6.5
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.
- Record
CVE-2022-40302- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2022-43599
6.5
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.
- Record
EUVD-2022-43599- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-j7hm-p94x-q9pw
7.5
An issue was discovered in bgpd in FRRouting (FRR) through 8.4. By crafting a BGP OPEN message...
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.
- Record
GHSA-j7hm-p94x-q9pw- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
6.5
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.
- Record
CVE-2022-40302- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-40302
6.5
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.
- Record
DEBIAN-CVE-2022-40302- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSVRHSA-2023:6434
7.5
Red Hat Security Advisory: frr security and bug fix update
- Record
RHSA-2023:6434- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-40302
6.5
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.
- Record
UBUNTU-CVE-2022-40302- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2023:6434 No score
Moderate: frr security and bug fix update
FRRouting is free software that manages TCP/IP based routing protocols. It supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM, NHRP, PBR, EIGRP and BFD.
Security Fix(es):
- frr: Reachable assertion in peek_for_as4_capability function (CVE-2022-36440)
- frr: denial of service by crafting a BGP OPEN message with an option of type 0xff (CVE-2022-40302)
- 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 (CVE-2022-40318)
- frr: out-of-bounds read exists in the BGP daemon of FRRouting (CVE-2022-43681)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2023:6434- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
frrAlmaLinux:9 |
before 8.3.1-11.el9_3.alma.1 | 8.3.1-11.el9_3.alma.1 |
frr-selinuxAlmaLinux:9 |
before 8.3.1-11.el9_3.alma.1 | 8.3.1-11.el9_3.alma.1 |
frrDebian:12 |
before 8.4.1-1 | 8.4.1-1 |
frrDebian:13 |
before 8.4.1-1 | 8.4.1-1 |
frrDebian:14 |
before 8.4.1-1 | 8.4.1-1 |
frrDebian:10 |
before 7.5.1-1.1+deb10u1, plus listed versions 6.0.2-26.0.2-2+deb10u16.0.2-2+deb10u27.2-17.2.1-1 Show 7 moreShow less7.3.1-17.4-17.4-1.17.4-27.5-17.5.1-17.5.1-1.1 |
7.5.1-1.1+deb10u1 |
frrRed Hat:enterprise_linux:9::appstream |
before 0:8.3.1-11.el9_3 | 0:8.3.1-11.el9_3 |
frr-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:8.3.1-11.el9_3 | 0:8.3.1-11.el9_3 |
frr-debugsourceRed Hat:enterprise_linux:9::appstream |
before 0:8.3.1-11.el9_3 | 0:8.3.1-11.el9_3 |
frr-selinuxRed Hat:enterprise_linux:9::appstream |
before 0:8.3.1-11.el9_3 | 0:8.3.1-11.el9_3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-40302 is a medium vulnerability (CVSS 6.5) in Frrouting, published May 3, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.00%, the 80th percentile. Fixed in frr 8.3.1-11.el9_3.alma.1.
References
github.com/FRRouting/frr/releases
debian.org/security/2023/dsa-5495
lists.debian.org/debian-lts-announce/2023/09/msg00020.html
nvd.nist.gov/vuln/detail/CVE-2022-40302
github.com/advisories/GHSA-j7hm-p94x-q9pw
access.redhat.com/errata/RHSA-2023:6434
Show 28 moreShow less
access.redhat.com/security/cve/CVE-2022-36440
access.redhat.com/security/cve/CVE-2022-40302
access.redhat.com/security/cve/CVE-2022-40318
access.redhat.com/security/cve/CVE-2022-43681
bugzilla.redhat.com/2184468
bugzilla.redhat.com/2196088
bugzilla.redhat.com/2196090
bugzilla.redhat.com/2196091
errata.almalinux.org/9/ALSA-2023-6434.html
github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40302.json
security-tracker.debian.org/tracker/CVE-2022-40302
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2168855
bugzilla.redhat.com/show_bug.cgi?id=2184468
bugzilla.redhat.com/show_bug.cgi?id=2196088
bugzilla.redhat.com/show_bug.cgi?id=2196090
bugzilla.redhat.com/show_bug.cgi?id=2196091
bugzilla.redhat.com/show_bug.cgi?id=2216912
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_6434.json
cve.org/CVERecord?id=CVE-2022-36440
nvd.nist.gov/vuln/detail/CVE-2022-36440
cve.org/CVERecord?id=CVE-2022-40302
cve.org/CVERecord?id=CVE-2022-40318
nvd.nist.gov/vuln/detail/CVE-2022-40318
cve.org/CVERecord?id=CVE-2022-43681
nvd.nist.gov/vuln/detail/CVE-2022-43681
ubuntu.com/security/CVE-2022-40302