diff options
| author | Yogita Urade <yogita.urade@windriver.com> | 2025-02-21 06:33:25 +0000 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2025-03-06 09:44:32 -0500 |
| commit | bb683b3777f4ff8bcdd529dec6b557d9248d024b (patch) | |
| tree | 511d48739701afbea412c08115a57fa939161b6f | |
| parent | 92a5b3ebf07b3a5498cf8266ef6e64ea2e6d6b4c (diff) | |
| download | meta-openembedded-bb683b3777f4ff8bcdd529dec6b557d9248d024b.tar.gz | |
dlt-daemon: fix CVE-2023-36321
Connected Vehicle Systems Alliance (COVESA) up to v2.18.8 wwas
discovered to contain a buffer overflow via the component
/shared/dlt_common.c.
Reference:
https://nvd.nist.gov/vuln/detail/CVE-2023-36321
Upstream patch:
https://github.com/michael-methner/dlt-daemon/commit/8ac9a080bee25e67e49bd138d81c992ce7b6d899
Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/dlt-daemon/dlt-daemon/CVE-2023-36321.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.8.bb | 1 |
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 @@ | |||
| 1 | From 8ac9a080bee25e67e49bd138d81c992ce7b6d899 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Methner <mmethner@de.adit-jv.com> | ||
| 3 | Date: Fri, 27 Jan 2023 10:51:07 +0100 | ||
| 4 | Subject: [PATCH] Check for negative index in dlt_file_message | ||
| 5 | |||
| 6 | Fixes #436 | ||
| 7 | |||
| 8 | Signed-off-by: Michael Methner <mmethner@de.adit-jv.com> | ||
| 9 | |||
| 10 | CVE: CVE-2023-36321 | ||
| 11 | Upstream-Status: Backport [https://github.com/michael-methner/dlt-daemon/commit/8ac9a080bee25e67e49bd138d81c992ce7b6d899] | ||
| 12 | |||
| 13 | Signed-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 | |||
| 18 | diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c | ||
| 19 | index 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 | -- | ||
| 32 | 2.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 | " |
| 24 | SRCREV = "6a3bd901d825c7206797e36ea98e10a218f5aad2" | 25 | SRCREV = "6a3bd901d825c7206797e36ea98e10a218f5aad2" |
| 25 | 26 | ||
