frr: Fix CVE-2023-41909
A message that is not in the archive (sent off-list or not yet received): [email protected]
Gentle Reminder !!
../Narpat
Quoted 86 lines · Narpat Mali via lists.openembedded.org
From: Narpat Mali <[email protected]>
An issue was discovered in FRRouting FRR through 9.0.
bgp_nlri_parse_flowspecinbgpd/bgp_flowspec.cprocesses malformed requests with no attributes, leading to a NULL pointer dereference.References:
https://nvd.nist.gov/vuln/detail/CVE-2023-41909
https://security-tracker.debian.org/tracker/CVE-2023-41909Signed-off-by Narpat Mali <[email protected]>--- .../frr/frr/CVE-2023-41909.patch | 42 +++++++++++++++++++ .../recipes-protocols/frr/frr_8.2.2.bb | 1 + 2 files changed, 43 insertions(+)create mode 100644
meta-networking/recipes-protocols/frr/frr/CVE-2023-41909.patchmeta-networking/recipes-protocols/frr/frr/CVE-2023-41909.patch new file +42
-0@@ -0,0 +1,42 @@ +From 5966b6a1fc72d3698d08199922cc4f42ea7fc9eb Mon Sep 17 00:00:00 2001 +From: Donald Sharp <[email protected]> +Date: Fri, 8 Sep 2023 11:46:12 +0000 +Subject: [PATCH] bgpd: Limit flowspec to no attribute means a implicit + withdrawal + +All other parsing functions done from bgp_nlri_parse() assume +no attributes == an implicit withdrawal. Let's move +bgp_nlri_parse_flowspec() into the same alignment. + +Reported-by: Matteo Memelli <[email protected]> +Signed-off-by: Donald Sharp <[email protected]> + +CVE: CVE-2023-41909 + +Upstream-Status: Backport [https://github.com/FRRouting/frr/commit/cfd04dcb3e689754a72507d086ba3b9709fc5ed8] + +Signed-off-by: Narpat Mali <[email protected]> +--- + bgpd/bgp_flowspec.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/bgpd/bgp_flowspec.c b/bgpd/bgp_flowspec.c +index 341cfe9d0..3e2b1ac49 100644 +--- a/bgpd/bgp_flowspec.c ++++ b/bgpd/bgp_flowspec.c +@@ -112,6 +112,13 @@ int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr, + afi = packet->afi; + safi = packet->safi; + ++ /* ++ * All other AFI/SAFI's treat no attribute as a implicit ++ * withdraw. Flowspec should as well. ++ */ ++ if (!attr) ++ withdraw = 1; ++ + if (packet->length >= FLOWSPEC_NLRI_SIZELIMIT_EXTENDED) { + flog_err(EC_BGP_FLOWSPEC_PACKET, + "BGP flowspec nlri length maximum reached (%u)", +-- +2.40.0meta-networking/recipes-protocols/frr/frr_8.2.2.bb +1
-1@@ -18,6 +18,7 @@ SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/8.2 \ file://CVE-2022-43681.patch \ file://CVE-2023-31489.patch \ file://CVE-2023-31490.patch \ + file://CVE-2023-41909.patch \ file://frr.pam \ " -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#104805): https://lists.openembedded.org/g/openembedded-devel/message/104805
Mute This Topic: https://lists.openembedded.org/mt/101235307/7199376
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 1 line · Narpat Mali via lists.openembedded.org
Gentle Reminder !!
getting to it today. I had to tweak it a bit to apply as there were a few other frr cve fixes in the queue.
thanks for the reminder.
BR,
Armin
Quoted 95 lines
../Narpat
Quoted 78 lines · Narpat Mali via lists.openembedded.org
From: Narpat Mali <[email protected]>
An issue was discovered in FRRouting FRR through 9.0.
bgp_nlri_parse_flowspecinbgpd/bgp_flowspec.cprocesses malformed requests with no attributes, leading to a NULL pointer dereference.References:
https://nvd.nist.gov/vuln/detail/CVE-2023-41909
https://security-tracker.debian.org/tracker/CVE-2023-41909Signed-off-by Narpat Mali <[email protected]>---
.../frr/frr/CVE-2023-41909.patch | 42 +++++++++++++++++++ .../recipes-protocols/frr/frr_8.2.2.bb | 1 +2 files changed, 43 insertions(+)create mode 100644
meta-networking/recipes-protocols/frr/frr/CVE-2023-41909.patchmeta-networking/recipes-protocols/frr/frr/CVE-2023-41909.patch new file +16
-0@@ -0,0 +1,42 @@ +From 5966b6a1fc72d3698d08199922cc4f42ea7fc9eb Mon Sep 17 00:00:00 2001 +From: Donald Sharp <[email protected]> +Date: Fri, 8 Sep 2023 11:46:12 +0000 +Subject: [PATCH] bgpd: Limit flowspec to no attribute means a implicit + withdrawal + +All other parsing functions done from bgp_nlri_parse() assume +no attributes == an implicit withdrawal. Let's move +bgp_nlri_parse_flowspec() into the same alignment. + +Reported-by: Matteo Memelli <[email protected]> +Signed-off-by: Donald Sharp <[email protected]> + +CVE: CVE-2023-41909 + +Upstream-Status: Backport[https://github.com/FRRouting/frr/commit/cfd04dcb3e689754a72507d086ba3b9709fc5ed8]
meta-networking/recipes-protocols/frr/frr/CVE-2023-41909.patch new file +11
-0+ +Signed-off-by: Narpat Mali <[email protected]> +--- + bgpd/bgp_flowspec.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/bgpd/bgp_flowspec.c b/bgpd/bgp_flowspec.c +index 341cfe9d0..3e2b1ac49 100644 +--- a/bgpd/bgp_flowspec.c ++++ b/bgpd/bgp_flowspec.c +@@ -112,6 +112,13 @@ int bgp_nlri_parse_flowspec(struct peer *peer,struct attr *attr,
+ afi =packet->afi;
+ safi =packet->safi;meta-networking/recipes-protocols/frr/frr/CVE-2023-41909.patch new file +13
-0+ ++ /* ++ * All other AFI/SAFI's treat no attribute as a implicit ++ * withdraw. Flowspec should as well. ++ */ ++ if (!attr) ++ withdraw = 1; ++ + if (packet->length >= FLOWSPEC_NLRI_SIZELIMIT_EXTENDED) { + flog_err(EC_BGP_FLOWSPEC_PACKET, + "BGP flowspec nlri length maximum reached (%u)", +-- +2.40.0meta-networking/recipes-protocols/frr/frr_8.2.2.bb +1
-0@@ -18,6 +18,7 @@ SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/8.2 \ file://CVE-2022-43681.patch \ file://CVE-2023-31489.patch \ file://CVE-2023-31490.patch \ + file://CVE-2023-41909.patch \ file://frr.pam \Quoted 4 lines
"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105062): https://lists.openembedded.org/g/openembedded-devel/message/105062
Mute This Topic: https://lists.openembedded.org/mt/101235307/3616698
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-