summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon/CVE-2023-36321.patch32
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.8.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/CVE-2023-36321.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/CVE-2023-36321.patch
new file mode 100644
index 0000000000..05f3fd4343
--- /dev/null
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/CVE-2023-36321.patch
@@ -0,0 +1,32 @@
1From 8ac9a080bee25e67e49bd138d81c992ce7b6d899 Mon Sep 17 00:00:00 2001
2From: Michael Methner <mmethner@de.adit-jv.com>
3Date: Fri, 27 Jan 2023 10:51:07 +0100
4Subject: [PATCH] Check for negative index in dlt_file_message
5
6Fixes #436
7
8Signed-off-by: Michael Methner <mmethner@de.adit-jv.com>
9
10CVE: CVE-2023-36321
11Upstream-Status: Backport [https://github.com/michael-methner/dlt-daemon/commit/8ac9a080bee25e67e49bd138d81c992ce7b6d899]
12
13Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
14---
15 src/shared/dlt_common.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
19index 4303c50..34da70a 100644
20--- a/src/shared/dlt_common.c
21+++ b/src/shared/dlt_common.c
22@@ -1718,7 +1718,7 @@ DltReturnValue dlt_file_message(DltFile *file, int index, int verbose)
23 return DLT_RETURN_WRONG_PARAMETER;
24
25 /* check if message is in range */
26- if (index >= file->counter) {
27+ if (index < 0 || index >= file->counter) {
28 dlt_vlog(LOG_WARNING, "Message %d out of range!\r\n", index);
29 return DLT_RETURN_WRONG_PARAMETER;
30 }
31--
322.40.0
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.8.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.8.bb
index 8ef056651b..d3ae2a460e 100644
--- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.8.bb
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.8.bb
@@ -20,6 +20,7 @@ SRC_URI = "git://github.com/GENIVI/${BPN}.git;protocol=https;branch=master \
20 file://0001-cmake-Link-with-libatomic-on-rv32-rv64.patch \ 20 file://0001-cmake-Link-with-libatomic-on-rv32-rv64.patch \
21 file://0001-Fix-memory-leak.patch \ 21 file://0001-Fix-memory-leak.patch \
22 file://CVE-2022-39836-CVE-2022-39837.patch \ 22 file://CVE-2022-39836-CVE-2022-39837.patch \
23 file://CVE-2023-36321.patch \
23 " 24 "
24SRCREV = "6a3bd901d825c7206797e36ea98e10a218f5aad2" 25SRCREV = "6a3bd901d825c7206797e36ea98e10a218f5aad2"
25 26