Skip to contentSkip to conversation

libarchive: upgrade 3.8.8 -> 3.8.9

PATCH New Jaipaul Cheernam 1 participant 3 messages Jul 29

lore
Share & tools
lore
#0 lore raw

cover libarchive: upgrade 3.8.8 -> 3.8.9

Upgrade libarchive to 3.8.9, a security and bugfix release fixing CVE-2026-14164, CVE-2026-15028, and CVE-2026-16517.

Also includes a fix for a new ptest that fails when no crypto library is configured (upstream PR: https://github.com/libarchive/libarchive/pull/3335).

Jaipaul Cheernam (2):
libarchive: upgrade 3.8.8 -> 3.8.9
libarchive: fix ptest failure when built without crypto library

 ...aes256-streaming-test-when-no-crypto.patch | 46 +++++++++++++++++++
 ...ibarchive_3.8.8.bb => libarchive_3.8.9.bb} |  3 +-
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/libarchive/libarchive/0001-test-skip-ppmd8-aes256-streaming-test-when-no-crypto.patch
 rename meta/recipes-extended/libarchive/{libarchive_3.8.8.bb => libarchive_3.8.9.bb} (95%)
#1 lore raw

PATCH 1/2 libarchive: upgrade 3.8.8 -> 3.8.9

CVE's Fixed:
CVE-2026-14164
CVE-2026-15028
CVE-2026-16517

Release Note: https://github.com/libarchive/libarchive/releases#release-v3.8.9
ChangeLog: https://github.com/libarchive/libarchive/compare/v3.8.8...v3.8.9

---
 .../libarchive/{libarchive_3.8.8.bb => libarchive_3.8.9.bb}     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-extended/libarchive/{libarchive_3.8.8.bb => libarchive_3.8.9.bb} (97%)
meta/recipes-extended/libarchive/libarchive_3.8.9.bb renamed from meta/recipes-extended/libarchive/libarchive_3.8.8.bb +1 -1
similarity index 97%
rename from meta/recipes-extended/libarchive/libarchive_3.8.8.bb
rename to meta/recipes-extended/libarchive/libarchive_3.8.9.bb
index 2c8bf922a6..da792374cf 100644
@@ -34,7 +34,7 @@ SRC_URI = "https://libarchive.org/downloads/libarchive-${PV}.tar.gz \
           "
 UPSTREAM_CHECK_URI = "https://www.libarchive.org/"
 
-SRC_URI[sha256sum] = "038918ea315cdd446cc63acfe880d6011832bbe1711c887de5de5441b306c190"
+SRC_URI[sha256sum] = "f5a6539059cf5e597dbeda37bfa4874b1e8dea063c8d93bf85a2b44af90a5bd4"
 
 inherit autotools update-alternatives pkgconfig ptest
 
#2 lore raw

PATCH 2/2 libarchive: fix ptest failure when built without crypto library

In reply to Jaipaul Cheernam

test_read_format_zip_ppmd8_aes256_streaming (added in 3.8.9) fails with 6 assertion failures because it attempts to decrypt an AES256 encrypted zipx file without first checking if a crypto library is available. The default PACKAGECONFIG does not include openssl/nettle/mbedtls.

Add a patch to skip the test when no crypto library is present, using the same guard as other encrypted zip tests in the same file.

Upstream: https://github.com/libarchive/libarchive/pull/3335

ptest results (qemux86-64):

                        3.8.8       3.8.9       diff

Tests run: 797 847 +50
Tests failed: 0 0 0
Assertions checked:32184686 32472682 +287996
Assertions failed: 0 0 0
Skips reported: 237 244 +7

---
 ...aes256-streaming-test-when-no-crypto.patch | 46 +++++++++++++++++++
 .../libarchive/libarchive_3.8.9.bb            |  1 +
 2 files changed, 47 insertions(+)
 create mode 100644 meta/recipes-extended/libarchive/libarchive/0001-test-skip-ppmd8-aes256-streaming-test-when-no-crypto.patch
meta/recipes-extended/libarchive/libarchive/0001-test-skip-ppmd8-aes256-streaming-test-when-no-crypto.patch new file +46 -0
new file mode 100644
index 0000000000..fc96225141
@@ -0,0 +1,46 @@
+From c2b00a5fff659bbe8d70b5e00cb6abb831170aeb Mon Sep 17 00:00:00 2001
+From: Jaipaul Cheernam <[email protected]>
+Date: Wed, 29 Jul 2026 13:33:10 +0000
+Subject: [PATCH] test: skip ppmd8 aes256 streaming test when no crypto library
+ is present
+
+test_read_format_zip_ppmd8_aes256_streaming fails with 6 assertion
+failures on systems without a crypto library (openssl/nettle/mbedtls)
+because it tries to decrypt a pre-built encrypted zipx file without
+checking crypto availability first.
+
+Add the same guard used by the other encrypted zip tests in this file.
+
+Upstream-Status: Submitted [https://github.com/libarchive/libarchive/pull/3335]
+Signed-off-by: Jaipaul Cheernam <[email protected]>
+---
+ .../test/test_read_format_zip_zipx_encrypted.c     | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/libarchive/test/test_read_format_zip_zipx_encrypted.c b/libarchive/test/test_read_format_zip_zipx_encrypted.c
+index f07e1e5c..a0a431fb 100644
+--- a/libarchive/test/test_read_format_zip_zipx_encrypted.c
++++ b/libarchive/test/test_read_format_zip_zipx_encrypted.c
+@@ -257,8 +257,22 @@ DEFINE_TEST(test_read_format_zip_zipx_zstd_encrypted_streaming)
+ DEFINE_TEST(test_read_format_zip_ppmd8_aes256_streaming)
+ {
+ 	const char *refname = "test_read_format_zip_ppmd8_aes256_streaming.zipx";
++	struct archive *a;
+ 	size_t used;
+ 	char buff[600];
++
++	/* Check if running system has cryptographic functionality. */
++	assert((a = archive_write_new()) != NULL);
++	assertEqualIntA(a, ARCHIVE_OK, archive_write_set_format_zip(a));
++	assertEqualIntA(a, ARCHIVE_OK, archive_write_add_filter_none(a));
++	if (ARCHIVE_OK != archive_write_set_options(a,
++			"zip:encryption=aes256")) {
++		skipping("This system does not have cryptographic library");
++		archive_write_free(a);
++		return;
++	}
++	archive_write_free(a);
++
+ 	extract_reference_file(refname);
+ 	FILE *f = fopen(refname, "rb");
+ 	used = fread(buff, 1, sizeof(buff), f);
meta/recipes-extended/libarchive/libarchive_3.8.9.bb +1 -0
index da792374cf..63c66eea81 100644
@@ -31,6 +31,7 @@ EXTRA_OECONF += "--enable-largefile --without-iconv"
 
 SRC_URI = "https://libarchive.org/downloads/libarchive-${PV}.tar.gz \
            file://run-ptest \
+           file://0001-test-skip-ppmd8-aes256-streaming-test-when-no-crypto.patch \
           "
 UPSTREAM_CHECK_URI = "https://www.libarchive.org/"