[packages/aria2] Up to 1.37.0
arekm
arekm at pld-linux.org
Thu Oct 29 08:24:36 CET 2026
commit 90e2469aba4e90af477b3ee56fd1c92f0ba52074
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 02:43:04 2026 +0100
Up to 1.37.0
Fixes CVE-2026-75421, CVE-2026-71832, CVE-2026-8367.
CVE-2026-71832.patch | 23 ++++++++++++++++++++++
CVE-2026-75421.patch | 22 +++++++++++++++++++++
CVE-2026-8367.patch | 43 ++++++++++++++++++++++++++++++++++++++++++
aria2-tests-no-multicast.patch | 23 ++++++++++++++++++++++
aria2.spec | 26 ++++++++++++++++++++-----
5 files changed, 132 insertions(+), 5 deletions(-)
---
diff --git a/aria2.spec b/aria2.spec
index 2a699b5..fbeb670 100644
--- a/aria2.spec
+++ b/aria2.spec
@@ -2,20 +2,28 @@
# Conditional build:
%bcond_with openssl # OpenSSL instead of GnuTLS
%bcond_with libuv # libuv usage
+%bcond_without tests # unit tests
Summary: Aria2 is a download utility with resuming and segmented downloading
Summary(pl.UTF-8): Narzędzie do pobierania plików z obsługą wznawiania i pobierania segmentowego
Name: aria2
-Version: 1.35.0
-Release: 3
+Version: 1.37.0
+Release: 1
License: GPL v2+ with OpenSSL exception
Group: Applications/Networking
#Source0Download: https://github.com/aria2/aria2/releases
-Source0: https://github.com/aria2/aria2/releases/download/release-1.35.0/%{name}-%{version}.tar.gz
-# Source0-md5: 6057c91559a3e82e44a89689944b5d0c
+Source0: https://github.com/aria2/aria2/releases/download/release-%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: dd00565c2f671331735089e6b807ece0
+# https://github.com/aria2/aria2/commit/44aa33d40901b0f3751231c8029b6743cf31f789
+Patch0: CVE-2026-8367.patch
+# https://github.com/aria2/aria2/pull/2376
+Patch1: CVE-2026-75421.patch
+# https://github.com/aria2/aria2/pull/2372
+Patch2: CVE-2026-71832.patch
+Patch3: %{name}-tests-no-multicast.patch
URL: https://aria2.github.io/
BuildRequires: c-ares-devel >= 1.7.0
-BuildRequires: cppunit-devel >= 1.10.2
+%{?with_tests:BuildRequires: cppunit-devel >= 1.10.2}
%{!?with_openssl:BuildRequires: gmp-devel}
%{!?with_openssl:BuildRequires: gnutls-devel >= 2.2.0}
BuildRequires: libssh2-devel
@@ -69,6 +77,10 @@ Bashowe dopełnianie parametrów poleceń aria2.
%prep
%setup -q
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
%build
%configure \
@@ -78,6 +90,10 @@ Bashowe dopełnianie parametrów poleceń aria2.
%{__make}
+%if %{with tests}
+%{__make} check
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/CVE-2026-71832.patch b/CVE-2026-71832.patch
new file mode 100644
index 0000000..25c6669
--- /dev/null
+++ b/CVE-2026-71832.patch
@@ -0,0 +1,23 @@
+From 8f3d7eb49abdf707bd01fa812c9d4ef7c9714e2f Mon Sep 17 00:00:00 2001
+From: Zhai Liangliang <zhailiangliang at loongson.cn>
+Date: Tue, 28 Jul 2026 17:06:58 +0800
+Subject: [PATCH] fix undefined-behavior in function processRootDictionary
+
+---
+ src/bittorrent_helper.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/bittorrent_helper.cc b/src/bittorrent_helper.cc
+index d3df0b4ba7..4dc9479f62 100644
+--- a/src/bittorrent_helper.cc
++++ b/src/bittorrent_helper.cc
+@@ -495,6 +495,9 @@ void processRootDictionary(const std::shared_ptr<DownloadContext>& ctx,
+ // retrieve file entries
+ extractFileEntries(ctx, torrent.get(), infoDict, option, defaultName,
+ overrideName, urlList);
++ if (pieceLength == 0) {
++ throw DL_ABORT_EX("piece length must not be 0");
++ }
+ if ((ctx->getTotalLength() + pieceLength - 1) / pieceLength != numPieces) {
+ throw DL_ABORT_EX2("Too few/many piece hash.",
+ error_code::BITTORRENT_PARSE_ERROR);
diff --git a/CVE-2026-75421.patch b/CVE-2026-75421.patch
new file mode 100644
index 0000000..c50484a
--- /dev/null
+++ b/CVE-2026-75421.patch
@@ -0,0 +1,22 @@
+From cc516929944474e9c992d6d9bcd8ed217e04fb5f Mon Sep 17 00:00:00 2001
+From: Zhai Liangliang <zhailiangliang at loongson.cn>
+Date: Fri, 7 Aug 2026 17:05:07 +0800
+Subject: [PATCH] stack-buffer-underflow in function aria2::IOFile::getLine
+
+---
+ src/IOFile.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/IOFile.cc b/src/IOFile.cc
+index 3302dda2c5..edc6cafdb2 100644
+--- a/src/IOFile.cc
++++ b/src/IOFile.cc
+@@ -87,7 +87,7 @@ std::string IOFile::getLine()
+ while (gets(buf.data(), buf.size())) {
+ size_t len = strlen(buf.data());
+ bool lineBreak = false;
+- if (buf[len - 1] == '\n') {
++ if (len > 0 && buf[len - 1] == '\n') {
+ --len;
+ lineBreak = true;
+ }
diff --git a/CVE-2026-8367.patch b/CVE-2026-8367.patch
new file mode 100644
index 0000000..09af77b
--- /dev/null
+++ b/CVE-2026-8367.patch
@@ -0,0 +1,43 @@
+From 44aa33d40901b0f3751231c8029b6743cf31f789 Mon Sep 17 00:00:00 2001
+From: Tatsuhiro Tsujikawa <tatsuhiro.t at gmail.com>
+Date: Fri, 15 May 2026 18:56:06 +0900
+Subject: [PATCH] gnutls: Perform ExtendedKeyUsage validation
+
+Adopt gnutls_certificate_verify_peers to perform ExtendedKeyUsage
+validation.
+---
+ src/LibgnutlsTLSSession.cc | 13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
+
+diff --git a/src/LibgnutlsTLSSession.cc b/src/LibgnutlsTLSSession.cc
+index 9fd83fc433..8f3e449676 100644
+--- a/src/LibgnutlsTLSSession.cc
++++ b/src/LibgnutlsTLSSession.cc
+@@ -252,8 +252,16 @@ int GnuTLSSession::tlsConnect(const std::string& hostname, TLSVersion& version,
+ }
+ if (tlsContext_->getVerifyPeer()) {
+ // verify peer
++ gnutls_typed_vdata_st data[] = {
++ {
++ GNUTLS_DT_KEY_PURPOSE_OID,
++ reinterpret_cast<unsigned char*>(
++ const_cast<char*>(GNUTLS_KP_TLS_WWW_SERVER)),
++ },
++ };
+ unsigned int status;
+- rv_ = gnutls_certificate_verify_peers2(sslSession_, &status);
++ rv_ = gnutls_certificate_verify_peers(
++ sslSession_, data, sizeof(data) / sizeof(data[0]), &status);
+ if (rv_ != GNUTLS_E_SUCCESS) {
+ return TLS_ERR_ERROR;
+ }
+@@ -278,6 +286,9 @@ int GnuTLSSession::tlsConnect(const std::string& hostname, TLSVersion& version,
+ if (status & GNUTLS_CERT_EXPIRED) {
+ handshakeErr += " `expired'";
+ }
++ if (status & GNUTLS_CERT_PURPOSE_MISMATCH) {
++ handshakeErr += " `unsuitable certificate purpose`";
++ }
+ // TODO Add GNUTLS_CERT_SIGNATURE_FAILURE here
+ if (!handshakeErr.empty()) {
+ return TLS_ERR_ERROR;
diff --git a/aria2-tests-no-multicast.patch b/aria2-tests-no-multicast.patch
new file mode 100644
index 0000000..c2d809f
--- /dev/null
+++ b/aria2-tests-no-multicast.patch
@@ -0,0 +1,23 @@
+LPD tests join a multicast group, which fails with ENODEV in the builders'
+network-isolated namespace (only lo, no multicast route).
+
+--- aria2-1.37.0/test/Makefile.in.orig
++++ aria2-1.37.0/test/Makefile.in
+@@ -191,8 +191,6 @@
+ @ENABLE_BITTORRENT_TRUE@ PriorityPieceSelectorTest.cc\
+ @ENABLE_BITTORRENT_TRUE@ MockPieceSelector.h\
+ @ENABLE_BITTORRENT_TRUE@ extension_message_test_helper.h\
+- at ENABLE_BITTORRENT_TRUE@ LpdMessageDispatcherTest.cc\
+- at ENABLE_BITTORRENT_TRUE@ LpdMessageReceiverTest.cc\
+ @ENABLE_BITTORRENT_TRUE@ Bencode2Test.cc\
+ @ENABLE_BITTORRENT_TRUE@ PeerConnectionTest.cc\
+ @ENABLE_BITTORRENT_TRUE@ ValueBaseBencodeParserTest.cc\
+@@ -412,8 +410,6 @@
+ @ENABLE_BITTORRENT_TRUE@ MSEHandshakeTest.$(OBJEXT) \
+ @ENABLE_BITTORRENT_TRUE@ BittorrentHelperTest.$(OBJEXT) \
+ @ENABLE_BITTORRENT_TRUE@ PriorityPieceSelectorTest.$(OBJEXT) \
+- at ENABLE_BITTORRENT_TRUE@ LpdMessageDispatcherTest.$(OBJEXT) \
+- at ENABLE_BITTORRENT_TRUE@ LpdMessageReceiverTest.$(OBJEXT) \
+ @ENABLE_BITTORRENT_TRUE@ Bencode2Test.$(OBJEXT) \
+ @ENABLE_BITTORRENT_TRUE@ PeerConnectionTest.$(OBJEXT) \
+ @ENABLE_BITTORRENT_TRUE@ ValueBaseBencodeParserTest.$(OBJEXT) \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aria2.git/commitdiff/90e2469aba4e90af477b3ee56fd1c92f0ba52074
More information about the pld-cvs-commit
mailing list