[packages/mtr] Rel 2. Backport the ASN lookup DNS reply length clip.
arekm
arekm at pld-linux.org
Thu Oct 29 08:48:49 CET 2026
commit c0fddfa3cf926f9eb561480fc1498b5720f31934
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 00:16:30 2026 +0100
Rel 2. Backport the ASN lookup DNS reply length clip.
Fixes CVE-2026-14461.
mtr-CVE-2026-14461.patch | 29 +++++++++++++++++++++++++++++
mtr.spec | 7 ++++---
2 files changed, 33 insertions(+), 3 deletions(-)
---
diff --git a/mtr.spec b/mtr.spec
index f304bae..446cbfd 100644
--- a/mtr.spec
+++ b/mtr.spec
@@ -10,7 +10,7 @@ Summary(ru.UTF-8): Matt's Traceroute - утилита для диагности
Summary(uk.UTF-8): Matt's Traceroute - утиліта для діагностики мережі
Name: mtr
Version: 0.96
-Release: 1
+Release: 2
Epoch: 1
License: GPL v2
Group: Networking/Utilities
@@ -27,17 +27,16 @@ Patch2: %{name}-display.patch
Patch3: %{name}-curses-clear_colors.patch
Patch4: %{name}-completion.patch
Patch5: %{name}-asn_print_fix.patch
+Patch6: %{name}-CVE-2026-14461.patch
URL: http://www.bitwizard.nl/mtr/
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.7.9
-BuildRequires: glib2-devel >= 1:2.6.0
%{?with_x:BuildRequires: gtk+3-devel >= 3.0}
BuildRequires: jansson-devel
BuildRequires: libcap-devel
BuildRequires: ncurses-devel >= 5.2
BuildRequires: pkgconfig
Obsoletes: mtr-ncurses
-Requires: glib2 >= 1:2.6.0
Requires(post): /sbin/setcap
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -93,6 +92,7 @@ Summary(pt_BR.UTF-8): Interface GTK+ para o mtr
Summary(ru.UTF-8): Matt's Traceroute - утилита для диагностики сети
Summary(uk.UTF-8): Matt's Traceroute - утиліта для діагностики мережі
Group: Networking/Utilities
+Requires: %{name} = %{epoch}:%{version}-%{release}
Obsoletes: mtr-gtk
%description X11
@@ -161,6 +161,7 @@ Pakiet ten dostarcza bashowe uzupełnianie parametrów polecenia mtr.
%patch -P3 -p1
%patch -P4 -p1
%patch -P5 -p1
+%patch -P6 -p1
echo %{version} > .tarball-version
diff --git a/mtr-CVE-2026-14461.patch b/mtr-CVE-2026-14461.patch
new file mode 100644
index 0000000..debf3c3
--- /dev/null
+++ b/mtr-CVE-2026-14461.patch
@@ -0,0 +1,29 @@
+CVE-2026-14461: clip the res_query() length so dn_expand() stays inside answer[]
+https://github.com/traviscross/mtr/commit/48e1794414d338ce47abc0f27c25ade8788af9c3
+
+From 48e1794414d338ce47abc0f27c25ade8788af9c3 Mon Sep 17 00:00:00 2001
+From: "R.E. Wolff" <R.E.Wolff at BitWizard.nl>
+Date: Tue, 16 Jun 2026 11:03:39 +0200
+Subject: [PATCH] =?UTF-8?q?Fixed=20possible=20buffer=20overrun=20in=20asn?=
+ =?UTF-8?q?=20code--=20Micha=C5=82=20Majchrowicz?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ ui/asn.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/ui/asn.c b/ui/asn.c
+index 432a84a4..50d3147a 100644
+--- a/ui/asn.c
++++ b/ui/asn.c
+@@ -199,6 +199,8 @@ static char *ipinfo_lookup(
+ DEB_syslog(LOG_INFO, "Malloc-txt: %s", UNKN);
+ return xstrdup(UNKN);
+ }
++ // Clip len to PACKETSZ. -- Michał Majchrowicz
++ if (len > PACKETSZ) len = PACKETSZ;
+
+ pt = answer + sizeof(HEADER);
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mtr.git/commitdiff/c0fddfa3cf926f9eb561480fc1498b5720f31934
More information about the pld-cvs-commit
mailing list