From e79ee377e3e39a6464a69398e0f015adc734ebd3 Mon Sep 17 00:00:00 2001 From: Michal Ruprich Date: Wed, 13 May 2026 11:06:43 +0200 Subject: [PATCH] Resolves: RHEL-173218 - CVE-2026-5405 Heap-based Buffer Overflow --- wireshark-0014-cve-2026-5405.patch | 48 ++++++++++++++++++++++++++++++ wireshark.spec | 6 +++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 wireshark-0014-cve-2026-5405.patch diff --git a/wireshark-0014-cve-2026-5405.patch b/wireshark-0014-cve-2026-5405.patch new file mode 100644 index 0000000..6ec4d65 --- /dev/null +++ b/wireshark-0014-cve-2026-5405.patch @@ -0,0 +1,48 @@ +From 45eb952b12e95dfe72e0994976d2ec2714fd193a Mon Sep 17 00:00:00 2001 +From: John Thacker +Date: Mon, 23 Mar 2026 13:02:49 +0000 +Subject: [PATCH] RDP: Check for too long segments on the uncompressed path + +The RDP 8.0 compression limits the maximum number of uncompressed +bytes in a single segment to 65,535 [MS-RDPEGFX] 3.1.9.1.2. +Check for that in the uncompressed path. + +Fix #21105 + +AI-Assisted: no + + +(cherry picked from commit 87fb30a03d19bb2a0c8597e10c38f1657310fafd) + +Co-authored-by: John Thacker +--- + epan/tvbuff_rdp.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/epan/tvbuff_rdp.c b/epan/tvbuff_rdp.c +index 948ec1cf2d6..2cfb89b1e2a 100644 +--- a/epan/tvbuff_rdp.c ++++ b/epan/tvbuff_rdp.c +@@ -157,7 +157,8 @@ static const zgfx_token_t ZGFX_MATCH_TABLE[] = { + { 9, 382, 24, 17094304 }, // 101111110 + }; + +- ++/* Limits from [MS-RDPEGFX] 3.1.9.1.2 (So failures here are malformed ++ * packets, not limitations of the implementation.) */ + struct _zgfx_context_t{ + uint8_t historyBuffer[2500000]; + uint32_t historyIndex; +@@ -338,6 +339,9 @@ rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb) + len--; + + if (!(flags & ZGX_PACKET_COMPRESSED)) { ++ if (len > 65535) { ++ return false; ++ } + tvbuff_t *raw = tvb_new_subset_remaining(tvb, 1); + zgfx_write_history_buffer_tvb(zgfx, raw, len); + +-- +GitLab + diff --git a/wireshark.spec b/wireshark.spec index cd49f36..8fedce4 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -6,7 +6,7 @@ Summary: Network traffic analyzer Name: wireshark Version: 4.4.2 -Release: 8%{?dist} +Release: 9%{?dist} Epoch: 1 License: BSD-1-Clause AND BSD-2-Clause AND BSD-3-Clause AND MIT AND GPL-2.0-or-later AND LGPL-2.0-or-later AND Zlib AND ISC AND (BSD-3-Clause OR GPL-2.0-only) AND (GPL-2.0-or-later AND Zlib) Url: http://www.wireshark.org/ @@ -33,6 +33,7 @@ Patch10: wireshark-0010-cve-2025-13499.patch Patch11: wireshark-0011-cve-2025-9817.patch Patch12: wireshark-0012-cve-2026-3201.patch Patch13: wireshark-0013-cve-2026-3203.patch +Patch14: wireshark-0014-cve-2026-5405.patch #install tshark together with wireshark GUI Requires: %{name}-cli = %{epoch}:%{version}-%{release} @@ -285,6 +286,9 @@ fi %{_libdir}/pkgconfig/%{name}.pc %changelog +* Wed May 13 2026 Michal Ruprich - 1:4.4.2-9 +- Resolves: RHEL-173218 - CVE-2026-5405 Heap-based Buffer Overflow + * Thu Apr 23 2026 Michal Ruprich - 1:4.4.2-8 - Resolves: RHEL-152922 - CVE-2026-3203 Buffer Over-read