# CVE-2022-40318

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-05-03 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2022-40318, DEBIAN-CVE-2022-40318
- Record: https://cvemate.com/vulnerability/CVE-2022-40318 · JSON: https://cvemate.com/vulnerability/CVE-2022-40318/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.999%, percentile 81.429%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian frr (Debian): \< 8.4.1-1
- ubuntu frr (Ubuntu): \< 7.2.1-1ubuntu0.2 \| \< 8.1-1ubuntu1.3
- debian debian\_linux: 10.0 \| 11.0 \| 12.0
- frrouting frrouting: ≤ 8.4

## References

- <https://github.com/FRRouting/frr/releases>
- <https://www.debian.org/security/2023/dsa-5495>
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00020.html>
- <https://ubuntu.com/security/CVE-2022-40318>
- <https://www.cve.org/CVERecord?id=CVE-2022-40318>
- <https://security-tracker.debian.org/tracker/CVE-2022-40318>

---

Data as of 2026-12-05T08:33:17.869Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
