summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHitendra Prajapati <hprajapati@mvista.com>2023-09-11 12:18:39 +0530
committerArmin Kuster <akuster808@gmail.com>2023-09-19 07:34:28 -0400
commit964979d26ddb8e74bc08d0a92236d433058bbec3 (patch)
treeac954ffde32c34bbcc05cefd7c3cdfdf8abd3f9a
parent0fb607b8db16e074cfd9b2f66f18cfb2eb02cfb6 (diff)
downloadmeta-openembedded-964979d26ddb8e74bc08d0a92236d433058bbec3.tar.gz
wireshark: Fix CVE-2023-2906
Upstream-Status: Backport from https://gitlab.com/wireshark/wireshark/-/commit/44dc70cc5aadca91cb8ba3710c59c3651b7b0d4d Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-support/wireshark/files/CVE-2023-2906.patch38
-rw-r--r--meta-networking/recipes-support/wireshark/wireshark_3.2.18.bb1
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/files/CVE-2023-2906.patch b/meta-networking/recipes-support/wireshark/files/CVE-2023-2906.patch
new file mode 100644
index 0000000000..3a81a3c714
--- /dev/null
+++ b/meta-networking/recipes-support/wireshark/files/CVE-2023-2906.patch
@@ -0,0 +1,38 @@
1From 44dc70cc5aadca91cb8ba3710c59c3651b7b0d4d Mon Sep 17 00:00:00 2001
2From: Jaap Keuter <jaap.keuter@xs4all.nl>
3Date: Thu, 27 Jul 2023 20:21:19 +0200
4Subject: [PATCH] CP2179: Handle timetag info response without records
5
6Fixes #19229
7
8Upstream-Status: Backport [https://gitlab.com/wireshark/wireshark/-/commit/44dc70cc5aadca91cb8ba3710c59c3651b7b0d4d]
9CVE: CVE-2023-2906
10Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
11---
12 epan/dissectors/packet-cp2179.c | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
14
15diff --git a/epan/dissectors/packet-cp2179.c b/epan/dissectors/packet-cp2179.c
16index 142cac3..9fc9a47 100644
17--- a/epan/dissectors/packet-cp2179.c
18+++ b/epan/dissectors/packet-cp2179.c
19@@ -721,11 +721,14 @@ dissect_response_frame(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, int
20 proto_tree_add_item(cp2179_proto_tree, hf_cp2179_timetag_numsets, tvb, offset, 1, ENC_LITTLE_ENDIAN);
21
22 num_records = tvb_get_guint8(tvb, offset) & 0x7F;
23+ offset += 1;
24+
25+ if (num_records == 0 || numberofcharacters <= 1)
26+ break;
27+
28 recordsize = (numberofcharacters-1) / num_records;
29 num_values = (recordsize-6) / 2; /* Determine how many 16-bit analog values are present in each event record */
30
31- offset += 1;
32-
33 for (x = 0; x < num_records; x++)
34 {
35 cp2179_event_tree = proto_tree_add_subtree_format(cp2179_proto_tree, tvb, offset, recordsize, ett_cp2179_event, NULL, "Event Record # %d", x+1);
36--
372.25.1
38
diff --git a/meta-networking/recipes-support/wireshark/wireshark_3.2.18.bb b/meta-networking/recipes-support/wireshark/wireshark_3.2.18.bb
index 361123d1c5..64e436df38 100644
--- a/meta-networking/recipes-support/wireshark/wireshark_3.2.18.bb
+++ b/meta-networking/recipes-support/wireshark/wireshark_3.2.18.bb
@@ -17,6 +17,7 @@ SRC_URI = "https://1.eu.dl.wireshark.org/src/all-versions/wireshark-${PV}.tar.xz
17 file://CVE-2023-0667-pre1.patch \ 17 file://CVE-2023-0667-pre1.patch \
18 file://CVE-2023-0667.patch \ 18 file://CVE-2023-0667.patch \
19 file://CVE-2023-0668.patch \ 19 file://CVE-2023-0668.patch \
20 file://CVE-2023-2906.patch \
20 " 21 "
21UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" 22UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src"
22 23