summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoonam Jadhav <poonam.jadhav@kpit.com>2024-07-25 17:32:52 +0530
committerArmin Kuster <akuster808@gmail.com>2024-07-30 09:42:51 -0400
commite488bc8305e6be6e1160546eeb0f1d0b8028d152 (patch)
treecce5750da6101fca304d69df798e80a27074c709
parent4052c97dc83d0c88fc277d6fc1815e0699020daa (diff)
downloadmeta-openembedded-e488bc8305e6be6e1160546eeb0f1d0b8028d152.tar.gz
tcpreplay: Fix CVE-2023-4256
Add patch to fix tcpreplay CVE-2023-4256 dlt_jnpr_ether_cleanup: check config before cleanup Links: https://github.com/appneta/tcpreplay/pull/851 https://github.com/appneta/tcpreplay/issues/813#issuecomment-2245557093 Signed-off-by: Poonam Jadhav <poonam.jadhav@kpit.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch27
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb4
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch
new file mode 100644
index 0000000000..2e4eee025b
--- /dev/null
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch
@@ -0,0 +1,27 @@
1From 62bc10d4f1d2c9e2833ef2898fb0170e9300a9dd Mon Sep 17 00:00:00 2001
2From: Marsman1996 <lqliuyuwei@outlook.com>
3Date: Tue, 2 Apr 2024 17:29:21 +0800
4Subject: [PATCH] dlt_jnpr_ether_cleanup: check config before cleanup
5
6CVE: CVE-2023-4256
7Upstream-Status: Backport [https://github.com/appneta/tcpreplay/pull/851]
8Signed-off-by: Poonam Jadhav <poonam.jadhav@kpit.com>
9---
10 src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13diff --git a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c
14index c53ec297..9642a2c2 100644
15--- a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c
16+++ b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c
17@@ -164,8 +164,9 @@ dlt_jnpr_ether_cleanup(tcpeditdlt_t *ctx)
18 jnpr_ether_config_t *config;
19
20 config = (jnpr_ether_config_t *)ctx->encoder->config;
21- if (config->subctx != NULL)
22+ if (config != NULL && config->subctx != NULL) {
23 tcpedit_dlt_cleanup(config->subctx);
24+ }
25 safe_free(plugin->config);
26 plugin->config = NULL;
27 plugin->config_size = 0;
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
index 1e2495efd6..32c978c1e0 100644
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
@@ -7,7 +7,9 @@ SECTION = "net"
7LICENSE = "GPL-3.0-only" 7LICENSE = "GPL-3.0-only"
8LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8" 8LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8"
9 9
10SRC_URI = "https://github.com/appneta/tcpreplay/releases/download/v${PV}/tcpreplay-${PV}.tar.gz" 10SRC_URI = "https://github.com/appneta/tcpreplay/releases/download/v${PV}/tcpreplay-${PV}.tar.gz \
11 file://CVE-2023-4256.patch \
12"
11 13
12SRC_URI[sha256sum] = "44f18fb6d3470ecaf77a51b901a119dae16da5be4d4140ffbb2785e37ad6d4bf" 14SRC_URI[sha256sum] = "44f18fb6d3470ecaf77a51b901a119dae16da5be4d4140ffbb2785e37ad6d4bf"
13 15