Resolves: RHEL-152913 - CVE-2026-3201 Improperly Controlled Sequential Memory Allocation

This commit is contained in:
Michal Ruprich 2026-04-23 11:01:55 +02:00
commit b270031891
2 changed files with 54 additions and 1 deletions

View file

@ -0,0 +1,49 @@
From 6f753c79b7c8ac382e6383dfabd7d5be6e2b722c Mon Sep 17 00:00:00 2001
From: Michael Mann <mmann78@netscape.net>
Date: Mon, 26 Jan 2026 00:17:11 -0500
Subject: [PATCH] USB-HID: Bugfix resource exhaustion in
parse_report_descriptor()
Sanity range check was removed in 739666a7f5acc270204980e01b4069caf5060f30, restore it
AI-Assisted: no
Fixes #20972
---
epan/dissectors/packet-usb-hid.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/epan/dissectors/packet-usb-hid.c b/epan/dissectors/packet-usb-hid.c
index 92c043e3c04..efd6e5a5e44 100644
--- a/epan/dissectors/packet-usb-hid.c
+++ b/epan/dissectors/packet-usb-hid.c
@@ -3729,6 +3729,7 @@ hid_unpack_signed(uint8_t *data, unsigned int idx, unsigned int size, int32_t *v
return false;
}
+#define MAX_REPORT_DESCRIPTOR_COUNT 100000 // Arbitrary
static bool
parse_report_descriptor(report_descriptor_t *rdesc)
{
@@ -3910,7 +3911,7 @@ parse_report_descriptor(report_descriptor_t *rdesc)
}
/* Usage min and max must be on the same page */
- if (USAGE_PAGE(usage_min) != USAGE_PAGE(usage_max)) {
+ if (USAGE_PAGE(usage_min) != USAGE_PAGE(usage_max)) {
goto err;
}
@@ -3918,6 +3919,10 @@ parse_report_descriptor(report_descriptor_t *rdesc)
goto err;
}
+ if (wmem_array_get_count(field.usages) + usage_max - usage_min >= MAX_REPORT_DESCRIPTOR_COUNT) {
+ goto err;
+ }
+
/* min and max are inclusive */
wmem_array_grow(field.usages, usage_max - usage_min + 1);
for (uint32_t j = usage_min; j <= usage_max; j++) {
--
GitLab

View file

@ -6,7 +6,7 @@
Summary: Network traffic analyzer
Name: wireshark
Version: 4.4.2
Release: 6%{?dist}
Release: 7%{?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/
@ -31,6 +31,7 @@ Patch8: wireshark-0008-pkgconfig.patch
Patch9: wireshark-0009-cve-2025-1492.patch
Patch10: wireshark-0010-cve-2025-13499.patch
Patch11: wireshark-0011-cve-2025-9817.patch
Patch12: wireshark-0012-cve-2026-3201.patch
#install tshark together with wireshark GUI
Requires: %{name}-cli = %{epoch}:%{version}-%{release}
@ -283,6 +284,9 @@ fi
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Thu Apr 23 2026 Michal Ruprich <mruprich@redhat.com> - 1:4.4.2-7
- Resolves: RHEL-152913 - CVE-2026-3201 Improperly Controlled Sequential Memory Allocation
* Sun Jan 25 2026 Michal Ruprich <mruprich@redhat.com> - 1:4.4.2-6
- Resolves: RHEL-136919 - NULL Pointer Dereference in Wireshark (CVE-2025-9817)