forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source: meta-openembedded MR: 158406 Type: Integration Disposition: Merged from meta-openembedded ChangeID: 4d7c91e Description: Add patch to fix tcpreplay CVE-2023-4256 dlt_jnpr_ether_cleanup: check config before cleanup Links: appneta/tcpreplay#851 appneta/tcpreplay#813 (comment) Signed-off-by: Poonam Jadhav <[email protected]> Signed-off-by: Armin Kuster <[email protected]> Signed-off-by: Jeremy A. Puhlman <[email protected]>
- Loading branch information
1 parent
59f01d4
commit 5e8ea3e
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
meta-networking/recipes-support/tcpreplay/tcpreplay/CVE-2023-4256.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 62bc10d4f1d2c9e2833ef2898fb0170e9300a9dd Mon Sep 17 00:00:00 2001 | ||
From: Marsman1996 <[email protected]> | ||
Date: Tue, 2 Apr 2024 17:29:21 +0800 | ||
Subject: [PATCH] dlt_jnpr_ether_cleanup: check config before cleanup | ||
|
||
CVE: CVE-2023-4256 | ||
Upstream-Status: Backport [https://github.com/appneta/tcpreplay/pull/851] | ||
Signed-off-by: Poonam Jadhav <[email protected]> | ||
--- | ||
src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c | ||
index c53ec297..9642a2c2 100644 | ||
--- a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c | ||
+++ b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c | ||
@@ -164,8 +164,9 @@ dlt_jnpr_ether_cleanup(tcpeditdlt_t *ctx) | ||
jnpr_ether_config_t *config; | ||
|
||
config = (jnpr_ether_config_t *)ctx->encoder->config; | ||
- if (config->subctx != NULL) | ||
+ if (config != NULL && config->subctx != NULL) { | ||
tcpedit_dlt_cleanup(config->subctx); | ||
+ } | ||
safe_free(plugin->config); | ||
plugin->config = NULL; | ||
plugin->config_size = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters