
CVE catalog
CVE-2022-40318
frr: CVE-2022-40318
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.98% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | frr | sid | 10.7.1-6 | fixed |
| Debian | frr | forky | 10.7.1-6 | fixed |
| Debian | frr | trixie | 10.3-3+deb13u1 | fixed |
| Debian | frr | trixie-security | 10.3-3+deb13u1 | fixed |
| Debian | frr | bookworm | 8.4.4-1.1~deb12u2 | fixed |
| Debian | frr | bookworm-security | 8.4.4-1.1~deb12u2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | frr | source | sid | 8.4.1-1 | not yet assigned | Not reported | [1035829] |
| Debian | frr | source | forky | 8.4.1-1 | not yet assigned | Not reported | [1035829] |
| Debian | frr | source | trixie | 8.4.1-1 | not yet assigned | Not reported | [1035829] |
| Debian | frr | source | bookworm | 8.4.1-1 | not yet assigned | Not reported | [1035829] |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [frr]Unknown
Details (4)
8.4.4-1.1~deb12u2· amd64 · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· arm64 · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· amd64 · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· arm64 · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
- [frr-doc]Unknown
Source package: [frr]
Details (4)
8.4.4-1.1~deb12u2· all · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· all · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· all · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· all · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
- [frr-pythontools]Unknown
Source package: [frr]
Details (4)
8.4.4-1.1~deb12u2· all · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· all · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· all · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· all · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
- [frr-rpki-rtrlib]Unknown
Source package: [frr]
Details (4)
8.4.4-1.1~deb12u2· amd64 · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· arm64 · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· amd64 · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· arm64 · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
- [frr-snmp]Unknown
Source package: [frr]
Details (4)
8.4.4-1.1~deb12u2· amd64 · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· arm64 · bookwormFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· amd64 · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
8.4.4-1.1~deb12u2· arm64 · bookworm-securityFixed · Fixed:
8.4.1-1dsa · frr · debian · bookworm
Observed:
References
- [https://access.redhat.com/errata/RHSA-2023:6434]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2023_6434.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-40318]
- [https://security-tracker.debian.org/tracker/CVE-2022-40318]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1146.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]