Skip to content

Commit cecb7c4

Browse files
lldpd: fix CVE-2023-41910 for kirkstone
Apply changes to match fix of lldpd/lldpd@a9aeabd More information about issue: - https://nvd.nist.gov/vuln/detail/CVE-2023-41910 Suggested-by: Vincent Bernat (vincent@bernat.ch) Signed-off-by: Georg Gebauer <georg.gebauer@zeiss.com>
1 parent 8bb1653 commit cecb7c4

2 files changed

Lines changed: 30 additions & 5 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From b961961e5eff35c233a5cb8484d2e51d4b513247 Mon Sep 17 00:00:00 2001
2+
From: Georg Gebauer <georg.gebauer@zeiss.com>
3+
Date: Thu, 25 Apr 2024 16:37:25 +0200
4+
Subject: [PATCH] Fix for CVE-2023-41910 Critical (9.8) issue - Fix Read
5+
overflow when parsing CDP address
6+
7+
References:
8+
- https://nvd.nist.gov/vuln/detail/CVE-2023-41910
9+
- https://github.com/lldpd/lldpd/commit/a9aeabdf879c25c584852a0bb5523837632f099b
10+
---
11+
src/daemon/protocols/cdp.c | 1 +
12+
1 file changed, 1 insertion(+)
13+
14+
diff --git a/src/daemon/protocols/cdp.c b/src/daemon/protocols/cdp.c
15+
index 4a14ff0..c3a7c22 100644
16+
--- a/src/daemon/protocols/cdp.c
17+
+++ b/src/daemon/protocols/cdp.c
18+
@@ -483,6 +483,7 @@ cdp_decode(struct lldpd *cfg, char *frame, int s,
19+
goto malformed;
20+
}
21+
PEEK_DISCARD(address_len);
22+
+ addresses_len -= address_len;
23+
(void)PEEK_SAVE(pos_next_address);
24+
/* Next, we go back and try to extract
25+
IPv4 address */

meta-networking/recipes-daemons/lldpd/lldpd_1.0.8.bb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/ISC;md5=f3b90e
55

66
DEPENDS = "libbsd libevent"
77

8-
SRC_URI = "\
9-
http://media.luffy.cx/files/${BPN}/${BPN}-${PV}.tar.gz \
10-
file://lldpd.init.d \
11-
file://lldpd.default \
12-
"
8+
SRC_URI = "http://media.luffy.cx/files/${BPN}/${BPN}-${PV}.tar.gz \
9+
file://lldpd.init.d \
10+
file://lldpd.default \
11+
file://CVE-2023-41910.patch \
12+
"
1313

1414
SRC_URI[md5sum] = "000042dbf5b445f750b5ba01ab25c8ba"
1515
SRC_URI[sha256sum] = "98d200e76e30f6262c4a4493148c1840827898329146a57a34f8f0f928ca3def"

0 commit comments

Comments
 (0)