Skip to contentSkip to conversation

frr: Fix for multiple CVE's

PATCH New nmali 1 participant 1 message Nov 21, 2023

lore
Share & tools
lore

nmali

author
#0 lore raw

PATCH 1/1 frr: Fix for multiple CVE's

From: Narpat Mali <[email protected]>

Backport the below CVE fixes.
CVE-2023-38406: https://security-tracker.debian.org/tracker/CVE-2023-38406
CVE-2023-38407: https://security-tracker.debian.org/tracker/CVE-2023-38407
CVE-2023-46752: https://security-tracker.debian.org/tracker/CVE-2023-46752
CVE-2023-46753: https://security-tracker.debian.org/tracker/CVE-2023-46753
CVE-2023-47234: https://security-tracker.debian.org/tracker/CVE-2023-47234
CVE-2023-47235: https://security-tracker.debian.org/tracker/CVE-2023-47235

---
 .../frr/frr/CVE-2023-38406.patch              |  42 ++++++
 .../frr/frr/CVE-2023-38407.patch              |  63 +++++++++
 .../frr/frr/CVE-2023-46752.patch              | 127 ++++++++++++++++++
 .../frr/frr/CVE-2023-46753.patch              | 119 ++++++++++++++++
 .../frr/frr/CVE-2023-47234.patch              |  98 ++++++++++++++
 .../frr/frr/CVE-2023-47235.patch              | 114 ++++++++++++++++
 .../recipes-protocols/frr/frr_8.2.2.bb        |   6 +
 7 files changed, 569 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/frr/frr/CVE-2023-38406.patch
 create mode 100644 meta-networking/recipes-protocols/frr/frr/CVE-2023-38407.patch
 create mode 100644 meta-networking/recipes-protocols/frr/frr/CVE-2023-46752.patch
 create mode 100644 meta-networking/recipes-protocols/frr/frr/CVE-2023-46753.patch
 create mode 100644 meta-networking/recipes-protocols/frr/frr/CVE-2023-47234.patch
 create mode 100644 meta-networking/recipes-protocols/frr/frr/CVE-2023-47235.patch
meta-networking/recipes-protocols/frr/frr/CVE-2023-38406.patch new file +42 -0
new file mode 100644
index 0000000000..9d5f306fe4
@@ -0,0 +1,42 @@
+From f2a5c583fc8f7c515f3d6e6f929dcbcc61f7e4b7 Mon Sep 17 00:00:00 2001
+From: Donald Sharp <[email protected]>
+Date: Mon, 20 Nov 2023 11:43:27 +0000
+Subject: [PATCH 1/6] bgpd: Flowspec overflow issue
+
+According to the flowspec RFC 8955 a flowspec nlri is <length, <nlri data>>
+Specifying 0 as a length makes BGP get all warm on the inside.  Which
+in this case is not a good thing at all.  Prevent warmth, stay cold
+on the inside.
+
+Reported-by: Iggy Frankovic <[email protected]>
+Signed-off-by: Donald Sharp <[email protected]>
+
+CVE: CVE-2023-38406
+
+Upstream-Status: Backport [https://github.com/FRRouting/frr/commit/0b999c886e241c52bd1f7ef0066700e4b618ebb3]
+
+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 3e2b1ac49..95fbd340a 100644
+--- a/bgpd/bgp_flowspec.c
++++ b/bgpd/bgp_flowspec.c
+@@ -148,6 +148,13 @@ int bgp_nlri_parse_flowspec(struct peer *peer, struct attr *attr,
+				psize);
+			return BGP_NLRI_PARSE_ERROR_PACKET_OVERFLOW;
+		}
++
++		if (psize == 0) {
++			flog_err(EC_BGP_FLOWSPEC_PACKET,
++				 "Flowspec NLRI length 0 which makes no sense");
++			return BGP_NLRI_PARSE_ERROR_PACKET_OVERFLOW;
++		}
++
+		if (bgp_fs_nlri_validate(pnt, psize, afi) < 0) {
+			flog_err(
+				EC_BGP_FLOWSPEC_PACKET,
+--
+2.40.0
meta-networking/recipes-protocols/frr/frr/CVE-2023-38407.patch new file +63 -0

63 lines not on this page · raw message

meta-networking/recipes-protocols/frr/frr/CVE-2023-46752.patch new file +127 -0

127 lines not on this page · raw message

meta-networking/recipes-protocols/frr/frr/CVE-2023-46753.patch new file +119 -0

119 lines not on this page · raw message

meta-networking/recipes-protocols/frr/frr/CVE-2023-47234.patch new file +98 -0

98 lines not on this page · raw message

meta-networking/recipes-protocols/frr/frr/CVE-2023-47235.patch new file +114 -0

114 lines not on this page · raw message

meta-networking/recipes-protocols/frr/frr_8.2.2.bb +6 -0
index 58754b8256..03b106131f 100644
@@ -21,6 +21,12 @@ SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/8.2 \
            file://CVE-2023-38802.patch \
            file://CVE-2023-41358.patch \
            file://CVE-2023-41909.patch \
+           file://CVE-2023-38406.patch \
+           file://CVE-2023-38407.patch \
+           file://CVE-2023-46752.patch \
+           file://CVE-2023-46753.patch \
+           file://CVE-2023-47234.patch \
+           file://CVE-2023-47235.patch \
            file://frr.pam \
 	      "
 
Signature · 1 line
2.40.0