{"id":"CVE-2022-40318","details":"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.","modified":"2026-08-12T03:30:30.393642118Z","published":"2023-05-03T00:00:00Z","related":["ALSA-2023:6434"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40318.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40318.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40318"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5495"},{"type":"PACKAGE","url":"https://github.com/FRRouting/frr/releases"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00020.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/frrouting/frr","events":[{"introduced":"0"},{"fixed":"087350d968e92f1f4f24ae0aae6de2722088fe79"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"8.4"},{"last_affected":"8.4"}],"source":["DESCRIPTION","CPE_RANGE"],"cpe":"cpe:2.3:a:frrouting:frrouting:*:*:*:*:*:*:*:*"}}],"versions":["base_8.3","base_8.2","frr-8.3-dev","frr-8.1-rc1","base_8.1","frr-8.2-dev","8.1-dev","frr-8.1-dev","base_8.0","base_7.6","frr-8.0-dev","frr-7.6-dev","base_7.5","base_7.4","frr-7.5-dev","base_7.3","frr-7.4-dev","base_7.2","frr-7.3-dev","frr-7.2-dev","7.1_pulled","frr-7.1-dev","frr-6.1-dev","frr-5.1-dev","reindent-master-after","reindent-master-before","frr-3.1-dev","frr-3.0-branchpoint"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-40318.json"}}],"schema_version":"1.9.0"}