ubuntu-cve-2022-40318
Vulnerability from osv_ubuntu
Published
2023-05-03 12:16
Modified
2025-07-16 05:01
Summary
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.
Severity
6.5 (Medium)
N/A (UNKNOWN)
References
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"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",
"binary_version": "7.2.1-1ubuntu0.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "frr",
"purl": "pkg:deb/ubuntu/frr@7.2.1-1ubuntu0.2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "7.2.1-1ubuntu0.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"6.0.2-2build2",
"7.2-1ubuntu1",
"7.2-1ubuntu2",
"7.2.1-1",
"7.2.1-1ubuntu0.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"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",
"binary_version": "8.1-1ubuntu1.3"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "frr",
"purl": "pkg:deb/ubuntu/frr@8.1-1ubuntu1.3?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.1-1ubuntu1.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.5.1-1.1",
"8.1-1",
"8.1-1ubuntu1",
"8.1-1ubuntu1.1",
"8.1-1ubuntu1.2"
]
}
],
"aliases": [],
"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.",
"id": "UBUNTU-CVE-2022-40318",
"modified": "2025-07-16T05:01:37Z",
"published": "2023-05-03T12:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-40318"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-40318"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-40318"
],
"withdrawn": "2025-07-18T16:49:34Z"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…