{"id":"UBUNTU-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":"2025-07-16T08:28:21.329656Z","published":"2023-05-03T12:16:00Z","withdrawn":"2025-07-18T16:49:34Z","upstream":["CVE-2022-40318"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-40318"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-40318"}],"affected":[{"package":{"name":"frr","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/frr@7.2.1-1ubuntu0.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.2.1-1ubuntu0.2"}]}],"versions":["6.0.2-2build2","7.2-1ubuntu1","7.2-1ubuntu2","7.2.1-1","7.2.1-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-dbgsym"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-doc"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-pythontools"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-rpki-rtrlib"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-rpki-rtrlib-dbgsym"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-snmp"},{"binary_version":"7.2.1-1ubuntu0.2","binary_name":"frr-snmp-dbgsym"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40318.json"}},{"package":{"name":"frr","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/frr@8.1-1ubuntu1.3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.1-1ubuntu1.3"}]}],"versions":["7.5.1-1.1","8.1-1","8.1-1ubuntu1","8.1-1ubuntu1.1","8.1-1ubuntu1.2"],"ecosystem_specific":{"binaries":[{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-dbgsym"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-doc"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-pythontools"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-rpki-rtrlib"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-rpki-rtrlib-dbgsym"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-snmp"},{"binary_version":"8.1-1ubuntu1.3","binary_name":"frr-snmp-dbgsym"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40318.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}