# CVE-2022-40318: An issue was discovered in bgpd in FRRouting (FRR) through 8.4.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.00%, higher than 81% of CVEs (2026-12-02)
- Published: 2023-05-03T00:00:00.000Z
- Modified: 2026-06-17T05:01:18.560Z
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- frrouting frrouting: up to 8.4
- debian debian_linux: 10.0; 11.0; 12.0

## References

- <https://github.com/FRRouting/frr/releases> (third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5495> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00020.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2022-40318](https://www.cve.org/CVERecord?id=CVE-2022-40318), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-40318](https://nvd.nist.gov/vuln/detail/CVE-2022-40318), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-40318 · Whole record: https://cve.day/CVE-2022-40318.json · Rebuilt by cve.day 2026-11-25T22:58:19.155Z
