Control: tags 1072107 + patch Control: tags 1072107 + pending Hi Peter,
I've prepared an NMU for libarchive (versioned as 3.7.2-2.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Made as well a MR in https://salsa.debian.org/debian/libarchive/-/merge_requests/6 . libarchive requires a DSA, but see the mail from Moritz some days ago. This MR aims to get the ball rolling from top-down first unstable, to bookworm later/same time. Regards, Salvatore
diff -Nru libarchive-3.7.2/debian/changelog libarchive-3.7.2/debian/changelog --- libarchive-3.7.2/debian/changelog 2024-03-30 19:11:06.000000000 +0100 +++ libarchive-3.7.2/debian/changelog 2024-06-01 09:43:45.000000000 +0200 @@ -1,3 +1,10 @@ +libarchive (3.7.2-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * fix: OOB in rar e8 filter (CVE-2024-26256) (Closes: #1072107) + + -- Salvatore Bonaccorso <car...@debian.org> Sat, 01 Jun 2024 09:43:45 +0200 + libarchive (3.7.2-2) unstable; urgency=medium [ Luca Boccassi ] diff -Nru libarchive-3.7.2/debian/patches/fix-OOB-in-rar-e8-filter-2135.patch libarchive-3.7.2/debian/patches/fix-OOB-in-rar-e8-filter-2135.patch --- libarchive-3.7.2/debian/patches/fix-OOB-in-rar-e8-filter-2135.patch 1970-01-01 01:00:00.000000000 +0100 +++ libarchive-3.7.2/debian/patches/fix-OOB-in-rar-e8-filter-2135.patch 2024-06-01 09:42:15.000000000 +0200 @@ -0,0 +1,29 @@ +From: Wei-Cheng Pan <legnale...@gmail.com> +Date: Mon, 22 Apr 2024 01:55:41 +0900 +Subject: fix: OOB in rar e8 filter (#2135) +Origin: https://github.com/libarchive/libarchive/commit/eb7939b24a681a04648a59cdebd386b1e9dc9237 +Bug-Debian: https://bugs.debian.org/1072107 +Bug: https://github.com/libarchive/libarchive/pull/2135 +Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2024-26256 + +This patch fixes an out-of-bound error in rar e8 filter. +--- + libarchive/archive_read_support_format_rar.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c +index 99a11d170074..266d0ee9959a 100644 +--- a/libarchive/archive_read_support_format_rar.c ++++ b/libarchive/archive_read_support_format_rar.c +@@ -3615,7 +3615,7 @@ execute_filter_e8(struct rar_filter *filter, struct rar_virtual_machine *vm, siz + uint32_t filesize = 0x1000000; + uint32_t i; + +- if (length > PROGRAM_WORK_SIZE || length < 4) ++ if (length > PROGRAM_WORK_SIZE || length <= 4) + return 0; + + for (i = 0; i <= length - 5; i++) +-- +2.45.1 + diff -Nru libarchive-3.7.2/debian/patches/series libarchive-3.7.2/debian/patches/series --- libarchive-3.7.2/debian/patches/series 2024-03-30 19:11:06.000000000 +0100 +++ libarchive-3.7.2/debian/patches/series 2024-06-01 09:42:36.000000000 +0200 @@ -2,3 +2,4 @@ iso9660-hash.patch test-zstd-32bit.patch robust-error-reporting.patch +fix-OOB-in-rar-e8-filter-2135.patch