diff --git a/CVE-2019-16319.patch b/CVE-2019-16319.patch new file mode 100644 index 0000000000000000000000000000000000000000..e5fe8d56ea80d1573fc0c04413ba7be4b162e0af --- /dev/null +++ b/CVE-2019-16319.patch @@ -0,0 +1,33 @@ +From 627917faff4889f763bf8e6570f62d66656047bd Mon Sep 17 00:00:00 2001 +From: Michael Mann +Date: Wed, 28 Aug 2019 22:27:58 -0400 +Subject: [PATCH] Gryphon: Prevent endless loop + +Bug: 16020 +Change-Id: I59c24d3bdb3f3a85f6e498683594ee12db9642a8 +Reviewed-on: https://code.wireshark.org/review/34392 +Reviewed-by: Michael Mann +Petri-Dish: Michael Mann +Tested-by: Petri Dish Buildbot +Reviewed-by: Anders Broman +--- + plugins/epan/gryphon/packet-gryphon.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/plugins/epan/gryphon/packet-gryphon.c b/plugins/epan/gryphon/packet-gryphon.c +index 82d14eaca4..334c47611a 100644 +--- a/plugins/epan/gryphon/packet-gryphon.c ++++ b/plugins/epan/gryphon/packet-gryphon.c +@@ -1193,7 +1193,11 @@ dissect_gryphon_message_with_offset(tvbuff_t *tvb, int offset, packet_info *pinf + * Unknown message type. + */ + proto_tree_add_item(gryphon_tree, hf_gryphon_data, tvb, offset, msglen, ENC_NA); +- offset += msglen; ++ if (msglen != 0) { ++ offset += msglen; ++ } else { ++ offset = tvb_reported_length_remaining(tvb, offset); ++ } + return offset; + } + diff --git a/wireshark.spec b/wireshark.spec index 2803178446f68cbe4f7c0ec8d066b43aa7e2ed89..8d9ed9ee7ef89f31dc5d996bcb04bee782a1a298 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -1,9 +1,9 @@ Name: wireshark Version: 2.6.2 -Release: 15 +Release: 16 Epoch: 1 Summary: Network traffic analyzer -License: GPL+ +License: GPL+ and GPL-2.0+ and GPL-3.0 and GPL-3.0+ and BSD URL: http://www.wireshark.org/ Source0: https://wireshark.org/download/src/all-versions/%{name}-%{version}.tar.xz Source1: https://www.wireshark.org/download/src/all-versions/SIGNATURES-%{version}.txt @@ -47,6 +47,7 @@ Patch6032: wireshark-initialize-point-in-end_string.patch Patch6033: CVE-2020-28030.patch Patch6034: CVE-2020-9430-1.patch Patch6035: CVE-2020-9430-2.patch +Patch6036: CVE-2019-16319.patch Requires(pre): shadow-utils Requires(post): systemd-udev @@ -153,6 +154,9 @@ getent group usbmon >/dev/null || groupadd -r usbmon %{_mandir}/man?/* %changelog +* Thu Jan 14 2021 zhanghua - 2.6.2-16 +- fix CVE-2019-16319 + * Wed Dec 16 2020 zhanghua - 2.6.2-15 - fix CVE-2020-9430