summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/libarchive/libarchive/CVE-2025-25724.patch40
-rw-r--r--meta/recipes-extended/libarchive/libarchive_3.6.2.bb1
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive/CVE-2025-25724.patch b/meta/recipes-extended/libarchive/libarchive/CVE-2025-25724.patch
new file mode 100644
index 0000000000..fe489e852f
--- /dev/null
+++ b/meta/recipes-extended/libarchive/libarchive/CVE-2025-25724.patch
@@ -0,0 +1,40 @@
1From c9bc934e7e91d302e0feca6e713ccc38d6d01532 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Peter=20K=C3=A4stle?= <peter@piie.net>
3Date: Mon, 10 Mar 2025 16:43:04 +0100
4Subject: [PATCH] fix CVE-2025-1632 and CVE-2025-25724 (#2532)
5
6Hi,
7
8please find my approach to fix the CVE-2025-1632 and CVE-2025-25724
9vulnerabilities in this pr.
10As both error cases did trigger a NULL pointer deref (and triggered
11hopefully everywhere a coredump), we can safely replace the actual
12information by a predefined invalid string without breaking any
13functionality.
14
15CVE: CVE-2025-25724
16Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/c9bc934e7e91d302e0feca6e713ccc38d6d01532]
17Signed-off-by: Peter Marko <peter.marko@siemens.com>
18---------
19
20Signed-off-by: Peter Kaestle <peter@piie.net>
21---
22 tar/util.c | 5 ++++-
23 1 file changed, 4 insertions(+), 1 deletion(-)
24
25diff --git a/tar/util.c b/tar/util.c
26index 3b099cb5..f3cbdf0b 100644
27--- a/tar/util.c
28+++ b/tar/util.c
29@@ -758,7 +758,10 @@ list_item_verbose(struct bsdtar *bsdtar, FILE *out, struct archive_entry *entry)
30 #else
31 ltime = localtime(&tim);
32 #endif
33- strftime(tmp, sizeof(tmp), fmt, ltime);
34+ if (ltime)
35+ strftime(tmp, sizeof(tmp), fmt, ltime);
36+ else
37+ sprintf(tmp, "-- -- ----");
38 fprintf(out, " %s ", tmp);
39 safe_fprintf(out, "%s", archive_entry_pathname(entry));
40
diff --git a/meta/recipes-extended/libarchive/libarchive_3.6.2.bb b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
index 6af01cf408..4ceb0df2c0 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
@@ -34,6 +34,7 @@ SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \
34 file://CVE-2024-48957.patch \ 34 file://CVE-2024-48957.patch \
35 file://CVE-2024-48958.patch \ 35 file://CVE-2024-48958.patch \
36 file://CVE-2024-20696.patch \ 36 file://CVE-2024-20696.patch \
37 file://CVE-2025-25724.patch \
37 " 38 "
38UPSTREAM_CHECK_URI = "http://libarchive.org/" 39UPSTREAM_CHECK_URI = "http://libarchive.org/"
39 40