{"id":"CVE-2022-40318","aliases":["ALSA-2023:6434","CLSA-2026-1778238289","DEBIAN-CVE-2022-40318","DLA-3573-1","EUVD-2022-43609","GHSA-9rqq-99cf-35g5","RHSA-2023:6434","UBUNTU-CVE-2022-40318"],"status":"published","title":"An issue was discovered in bgpd in FRRouting (FRR) through 8.4. By crafting a BGP OPEN message...","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01983,"percentile":0.80737,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2023-05-03T00:00:00Z","modified":"2026-11-03T08:02:54Z","fixes":[{"ecosystem":"Debian:12","package":"frr","fixed_in":["8.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"frr","fixed_in":["8.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"frr","fixed_in":["8.4.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"AlmaLinux:9","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.1-11.el9_3.alma.1"}]}],"bundled":4},{"source":"osv","ecosystem":"AlmaLinux:9","package":"frr-selinux","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.1-11.el9_3.alma.1"}]}],"bundled":4},{"source":"osv","ecosystem":"TuxCare:AlmaLinux:9.2","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.1-5.el9_2.2.alma.tuxcare.els4"}]}],"bundled":4},{"source":"osv","ecosystem":"TuxCare:AlmaLinux:9.2","package":"frr-selinux","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.3.1-5.el9_2.2.alma.tuxcare.els4"}]}],"bundled":4},{"source":"osv","ecosystem":"Debian:12","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.5.1-1.1+deb10u1"}]}],"versions":["6.0.2-2","6.0.2-2+deb10u1","6.0.2-2+deb10u2","7.2-1","7.2.1-1","7.3.1-1","7.4-1","7.4-1.1","7.4-2","7.5-1","7.5.1-1","7.5.1-1.1"],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:9::appstream","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.3.1-11.el9_3"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:9::appstream","package":"frr-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.3.1-11.el9_3"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:9::appstream","package":"frr-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.3.1-11.el9_3"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:9::appstream","package":"frr-selinux","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.3.1-11.el9_3"}]}],"bundled":4}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"frrouting","product":"frrouting"}],"references":[{"url":"https://github.com/FRRouting/frr/releases","tags":["x_transferred","Third Party Advisory","package"]},{"url":"https://www.debian.org/security/2023/dsa-5495","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00020.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40318","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9rqq-99cf-35g5"},{"url":"https://access.redhat.com/errata/RHSA-2023:6434","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-36440","tags":["report"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-40302","tags":["report"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-40318","tags":["report"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-43681","tags":["report"]},{"url":"https://bugzilla.redhat.com/2184468","tags":["report"]},{"url":"https://bugzilla.redhat.com/2196088","tags":["report"]},{"url":"https://bugzilla.redhat.com/2196090","tags":["report"]},{"url":"https://bugzilla.redhat.com/2196091","tags":["report"]},{"url":"https://errata.almalinux.org/9/ALSA-2023-6434.html","tags":["advisory"]},{"url":"https://errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1778238289.html","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40318.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-40318","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2168855","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2184468","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2196088","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2196090","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2196091","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2216912","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_6434.json","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-36440","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36440","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-40302","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40302","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-40318","tags":["advisory","report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-43681","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43681","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-40318","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-40318","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.","status":"published","published":"2023-05-03T00:00:00Z","modified":"2024-08-03T12:14:40.214Z","updated_at":"2026-11-02T14:34:30.493103Z"}],"euvd":[{"id":"EUVD-2022-43609","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.","status":"published","published":"2023-05-03T00:00:00Z","modified":"2024-08-03T12:14:40Z","updated_at":"2026-11-03T03:25:20.908483Z"}],"ghsa":[{"id":"GHSA-9rqq-99cf-35g5","title":"An issue was discovered in bgpd in FRRouting (FRR) through 8.4. By crafting a BGP OPEN message...","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.","status":"published","published":"2023-05-03T12:30:41Z","modified":"2024-02-25T05:08:27Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:55:38.39087Z"}],"nvd":[{"id":"CVE-2022-40318","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.","status":"published","published":"2023-05-03T12:16:27.8Z","modified":"2026-06-17T05:01:18.56Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:07:37.42466Z"}],"osv":[{"id":"DEBIAN-CVE-2022-40318","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.","status":"published","published":"2023-05-03T12:16:27.8Z","modified":"2026-11-03T08:02:54.834450436Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-03T08:24:39.643572Z"},{"id":"RHSA-2023:6434","title":"Red Hat Security Advisory: frr security and bug fix update","status":"published","published":"2024-09-16T12:10:17Z","modified":"2025-11-22T12:59:05Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:11.734882Z"},{"id":"UBUNTU-CVE-2022-40318","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.","status":"withdrawn","published":"2023-05-03T12:16:00Z","modified":"2025-07-16T07:44:55.000033Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T16:53:55.502114Z"},{"id":"ALSA-2023:6434","title":"Moderate: frr security and bug fix update","description":"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. \n\nSecurity Fix(es):\n\n* frr: Reachable assertion in peek_for_as4_capability function (CVE-2022-36440)\n* frr: denial of service by crafting a BGP OPEN message with an option of type 0xff (CVE-2022-40302)\n* 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)\n* frr: out-of-bounds read exists in the BGP daemon of FRRouting (CVE-2022-43681)\n\nFor 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.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.","status":"published","published":"2023-11-07T00:00:00Z","modified":"2026-10-29T11:31:33.994975074Z","updated_at":"2026-11-02T15:27:52.091404Z"},{"id":"CLSA-2026-1778238289","title":"frr: Fix of 4 CVEs","description":"- CVE-2022-43681: fix bgpd crash on malformed BGP OPEN messages with insufficient data\n- CVE-2022-40318: fix out-of-bounds read in bgp_open_option_parse with extended option params\n- CVE-2023-31489: fix out-of-bounds read in BGP Long-lived Graceful-Restart capability parsing\n- CVE-2023-46752: fix bgpd crash on malformed MP_REACH_NLRI packets","status":"published","published":"2026-05-08T11:17:29Z","modified":"2026-10-21T10:45:56.316115564Z","updated_at":"2026-11-02T15:43:44.737408Z"},{"id":"CVE-2022-40318","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.","status":"published","published":"2023-05-03T00:00:00Z","modified":"2026-10-28T02:30:49.851071245Z","updated_at":"2026-11-02T15:44:26.860704Z"},{"id":"DLA-3573-1","title":"frr - security update","status":"published","published":"2023-09-19T00:00:00Z","modified":"2026-03-09T01:20:43.491536Z","updated_at":"2026-11-02T15:46:11.734021Z"}]}}
