summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin McAllister <colin.mcallister@garmin.com>2024-12-30 15:47:33 -0600
committerArmin Kuster <akuster808@gmail.com>2024-12-31 09:04:11 -0500
commitaa423dfd81b52d7f3a6d7c2a86afbe80473f3e45 (patch)
treef836987b59ef8f58c979d84a0a0002c6a5f7eb46
parentc59e8e9dbcec838eb7699f40a1768bbe7adb3288 (diff)
downloadmeta-openembedded-aa423dfd81b52d7f3a6d7c2a86afbe80473f3e45.tar.gz
lldpd: Fix CVE-2023-41910
Adds patch to backport fix for CVE-2023-41910. Signed-off-by: Colin McAllister <colin.mcallister@garmin.com> Change-Id: Iab619f1f5ba26b1141dffea065c90ef0b180b46e Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/lldpd/files/CVE-2023-41910.patch26
-rw-r--r--meta-networking/recipes-daemons/lldpd/lldpd_1.0.8.bb1
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/lldpd/files/CVE-2023-41910.patch b/meta-networking/recipes-daemons/lldpd/files/CVE-2023-41910.patch
new file mode 100644
index 0000000000..11f6fffd7c
--- /dev/null
+++ b/meta-networking/recipes-daemons/lldpd/files/CVE-2023-41910.patch
@@ -0,0 +1,26 @@
1From ce7c3f84d80435a1bfad77ab8cb0e9ba401f1eea Mon Sep 17 00:00:00 2001
2From: Vincent Bernat <vincent@bernat.ch>
3Date: Wed, 12 Apr 2023 07:38:31 +0200
4Subject: [PATCH] daemon: fix read overflow when parsing CDP addresses
5
6Upstream-status: Backport [https://github.com/lldpd/lldpd/commit/a9aeabdf879c25c584852a0bb5523837632f099b]
7CVE: CVE-2023-41910
8---
9 src/daemon/protocols/cdp.c | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/src/daemon/protocols/cdp.c b/src/daemon/protocols/cdp.c
13index 4a14ff0..c3a7c22 100644
14--- a/src/daemon/protocols/cdp.c
15+++ b/src/daemon/protocols/cdp.c
16@@ -483,6 +483,7 @@ cdp_decode(struct lldpd *cfg, char *frame, int s,
17 goto malformed;
18 }
19 PEEK_DISCARD(address_len);
20+ addresses_len -= address_len;
21 (void)PEEK_SAVE(pos_next_address);
22 /* Next, we go back and try to extract
23 IPv4 address */
24--
252.47.1
26
diff --git a/meta-networking/recipes-daemons/lldpd/lldpd_1.0.8.bb b/meta-networking/recipes-daemons/lldpd/lldpd_1.0.8.bb
index cf2b156fe7..022bb62dd8 100644
--- a/meta-networking/recipes-daemons/lldpd/lldpd_1.0.8.bb
+++ b/meta-networking/recipes-daemons/lldpd/lldpd_1.0.8.bb
@@ -9,6 +9,7 @@ SRC_URI = "\
9 http://media.luffy.cx/files/${BPN}/${BPN}-${PV}.tar.gz \ 9 http://media.luffy.cx/files/${BPN}/${BPN}-${PV}.tar.gz \
10 file://lldpd.init.d \ 10 file://lldpd.init.d \
11 file://lldpd.default \ 11 file://lldpd.default \
12 file://CVE-2023-41910.patch \
12 " 13 "
13 14
14SRC_URI[md5sum] = "000042dbf5b445f750b5ba01ab25c8ba" 15SRC_URI[md5sum] = "000042dbf5b445f750b5ba01ab25c8ba"