summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-12-28 08:37:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-15 11:05:14 +0000
commit60f1d08fa602f931e2a5f89bf53087c1bcc92dbc (patch)
tree4b564b60719cb52a602300785b5acb758f426a39 /meta/recipes-extended
parentfd2d94582063f8e6fa4131f0393ae2fec3d11cd8 (diff)
downloadpoky-60f1d08fa602f931e2a5f89bf53087c1bcc92dbc.tar.gz
libarchive: upgrade 3.6.1 -> 3.6.2
Libarchive 3.6.2 is a bugfix and security release. Important security fixes: NULL pointer dereference vulnerability in archive_write.c (#1754, #1759, CVE-2022-36227) Important bug fixes: include ZSTD in Windows builds (#1688) SSL fixes on Windows (#1714, #1723, #1724) rar5 reader: fix possible garbled output with bsdtar -O (#1745) mtree reader: support reading mtree files with tabs (#1783) various small fixes for issues found by CodeQL Use --without-iconv as otherwise autotools write a bogus iconv dependency into .pc file. (From OE-Core rev: 41e1b4c29e45a9022eea8f89dfb09b6eb2eae60b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit edce1bce81fe2f47fb2c5e2b94ebda73f95cbaea) Signed-off-by: Steve Sakoman <steve@sakoman.com> (cherry picked from commit 93b972845a28b62ea01ee0f4a1e043bd58fc0892) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/libarchive/libarchive/CVE-2022-36227.patch42
-rw-r--r--meta/recipes-extended/libarchive/libarchive_3.6.2.bb (renamed from meta/recipes-extended/libarchive/libarchive_3.6.1.bb)8
2 files changed, 3 insertions, 47 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive/CVE-2022-36227.patch b/meta/recipes-extended/libarchive/libarchive/CVE-2022-36227.patch
deleted file mode 100644
index d0d143710c..0000000000
--- a/meta/recipes-extended/libarchive/libarchive/CVE-2022-36227.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From b5332ed6d59ba5113a0a2c67fd82b69fcd5cde68 Mon Sep 17 00:00:00 2001
2From: obiwac <obiwac@gmail.com>
3Date: Fri, 22 Jul 2022 22:41:10 +0200
4Subject: [PATCH] libarchive: CVE-2022-36227 Handle a `calloc` returning NULL
5 (fixes #1754)
6
7Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/bff38efe8c110469c5080d387bec62a6ca15b1a5]
8CVE: CVE-2022-36227
9Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com
10---
11 libarchive/archive_write.c | 8 ++++++++
12 1 file changed, 8 insertions(+)
13
14diff --git a/libarchive/archive_write.c b/libarchive/archive_write.c
15index 66592e8..27626b5 100644
16--- a/libarchive/archive_write.c
17+++ b/libarchive/archive_write.c
18@@ -201,6 +201,10 @@ __archive_write_allocate_filter(struct archive *_a)
19 struct archive_write_filter *f;
20
21 f = calloc(1, sizeof(*f));
22+
23+ if (f == NULL)
24+ return (NULL);
25+
26 f->archive = _a;
27 f->state = ARCHIVE_WRITE_FILTER_STATE_NEW;
28 if (a->filter_first == NULL)
29@@ -548,6 +552,10 @@ archive_write_open2(struct archive *_a, void *client_data,
30 a->client_data = client_data;
31
32 client_filter = __archive_write_allocate_filter(_a);
33+
34+ if (client_filter == NULL)
35+ return (ARCHIVE_FATAL);
36+
37 client_filter->open = archive_write_client_open;
38 client_filter->write = archive_write_client_write;
39 client_filter->close = archive_write_client_close;
40--
412.25.1
42
diff --git a/meta/recipes-extended/libarchive/libarchive_3.6.1.bb b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
index df9df5e0a6..acc84de9da 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.6.1.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb
@@ -30,14 +30,12 @@ PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
30PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls," 30PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,"
31PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd," 31PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd,"
32 32
33EXTRA_OECONF += "--enable-largefile" 33EXTRA_OECONF += "--enable-largefile --without-iconv"
34 34
35SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \ 35SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz"
36 file://CVE-2022-36227.patch \
37 "
38UPSTREAM_CHECK_URI = "http://libarchive.org/" 36UPSTREAM_CHECK_URI = "http://libarchive.org/"
39 37
40SRC_URI[sha256sum] = "c676146577d989189940f1959d9e3980d28513d74eedfbc6b7f15ea45fe54ee2" 38SRC_URI[sha256sum] = "ba6d02f15ba04aba9c23fd5f236bb234eab9d5209e95d1c4df85c44d5f19b9b3"
41 39
42inherit autotools update-alternatives pkgconfig 40inherit autotools update-alternatives pkgconfig
43 41