Skip to contentSkip to conversation

package/libexif: security bump to version 0.6.22

PATCH Superseded Fabrice Fontaine 2 participants 2 messages May 18, 2020 – May 29, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libexif: security bump to version 0.6.22

- Switch site to github
- Drop patches (already in version)
- Fix the following CVEs:
- CVE-2020-13114: Time consumption DoS when parsing canon array markers
- CVE-2020-13113: Potential use of uninitialized memory
- CVE-2020-13112: Various buffer overread fixes due to integer overflows in maker notes
- CVE-2020-0093: read overflow
- CVE-2020-12767: fixed division by zero

https://github.com/libexif/libexif/releases/tag/libexif-0_6_22-release

---
 ...1-configure.ac-remove-po-Makefile.in.patch |  30 +++++
 ...ll-buffer-overreads-during-decoding-.patch |  65 ----------
 ...otes-make-sure-the-makernote-contain.patch |  41 ------
 ...ecursion-depth-in-exif_data_load_dat.patch |  30 -----
 ...ursion-detection-in-exif_data_load_d.patch | 120 ------------------
 package/libexif/0005-fix-CVE-2019-9278.patch  |  90 -------------
 package/libexif/Config.in                     |   2 +-
 package/libexif/libexif.hash                  |   2 +-
 package/libexif/libexif.mk                    |  18 +--
 9 files changed, 38 insertions(+), 360 deletions(-)
 create mode 100644 package/libexif/0001-configure.ac-remove-po-Makefile.in.patch
 delete mode 100644 package/libexif/0001-fixes-some-not-all-buffer-overreads-during-decoding-.patch
 delete mode 100644 package/libexif/0002-On-saving-makernotes-make-sure-the-makernote-contain.patch
 delete mode 100644 package/libexif/0003-Reduce-maximum-recursion-depth-in-exif_data_load_dat.patch
 delete mode 100644 package/libexif/0004-Improve-deep-recursion-detection-in-exif_data_load_d.patch
 delete mode 100644 package/libexif/0005-fix-CVE-2019-9278.patch
package/libexif/0001-configure.ac-remove-po-Makefile.in.patch new file +30 -0
new file mode 100644
index 0000000000..ae8401e20d
@@ -0,0 +1,30 @@
+From 5d815391a6bf3e890d2728286965eaec632ef386 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Sun, 17 May 2020 18:53:08 +0200
+Subject: [PATCH] configure.ac: remove po/Makefile.in
+
+The file po/Makefile.in is automatically added to AC_CONFIG_FILES while
+using gettexize
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Upstream status: not upstreamable]
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index b0a5881..0c9cf2d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -202,7 +202,7 @@ AC_SUBST(AM_LDFLAGS)
+ dnl ---------------------------------------------------------------------------
+ dnl Output files
+ dnl ---------------------------------------------------------------------------
+-AC_CONFIG_FILES([  po/Makefile.in
++AC_CONFIG_FILES([
+   Makefile
+   libexif.spec
+   libexif/Makefile
+-- 
+2.26.2
+
package/libexif/0001-fixes-some-not-all-buffer-overreads-during-decoding-.patch deleted +0 -65

65 lines not on this page · raw message

package/libexif/0002-On-saving-makernotes-make-sure-the-makernote-contain.patch deleted +0 -41

41 lines not on this page · raw message

package/libexif/0003-Reduce-maximum-recursion-depth-in-exif_data_load_dat.patch deleted +0 -30
deleted file mode 100644
index e662d6bfc9..0000000000
@@ -1,30 +0,0 @@
-From 5d28011c40ec86cf52cffad541093d37c263898a Mon Sep 17 00:00:00 2001
-From: Dan Fandrich <[email protected]>
-Date: Fri, 20 Apr 2018 18:05:19 +0200
-Subject: [PATCH] Reduce maximum recursion depth in exif_data_load_data_content
-
-This only needs to be a small, single digit integer for normal files,
-and reducing the maximum closer to this reduces the time and space
-needed to detect pathological cases.
-
-Signed-off-by: Peter Korsgaard <[email protected]>
----
- libexif/exif-data.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libexif/exif-data.c b/libexif/exif-data.c
-index 91f4c33..04cdda2 100644
---- a/libexif/exif-data.c
-+++ b/libexif/exif-data.c
-@@ -378,7 +378,7 @@ exif_data_load_data_content (ExifData *data, ExifIfd ifd,
- 	if ((((int)ifd) < 0) || ( ((int)ifd) >= EXIF_IFD_COUNT))
- 	  return;
- 
--	if (recursion_depth > 30) {
-+	if (recursion_depth > 12) {
- 		exif_log (data->priv->log, EXIF_LOG_CODE_CORRUPT_DATA, "ExifData",
- 			  "Deep recursion detected!");
- 		return;
--- 
-2.20.1
-
package/libexif/0004-Improve-deep-recursion-detection-in-exif_data_load_d.patch deleted +0 -120

120 lines not on this page · raw message

package/libexif/0005-fix-CVE-2019-9278.patch deleted +0 -90

90 lines not on this page · raw message

package/libexif/Config.in +1 -1
index 8a38b477b8..8064c2e9f9 100644
@@ -6,4 +6,4 @@ config BR2_PACKAGE_LIBEXIF
 	  image. The EXIF library allows you to parse an EXIF file
 	  and read the data from those tags.
 
-	  http://libexif.sf.net
+	  https://libexif.github.io
package/libexif/libexif.hash +1 -1
index aa9fcc8d89..27f01d04c0 100644
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256  16cdaeb62eb3e6dfab2435f7d7bccd2f37438d21c5218ec4e58efa9157d4d41a  libexif-0.6.21.tar.bz2
+sha256  46498934b7b931526fdee8fd8eb77a1dddedd529d5a6dbce88daf4384baecc54  libexif-0.6.22.tar.gz
 sha256  36b6d3fa47916943fd5fec313c584784946047ec1337a78b440e5992cb595f89  COPYING
package/libexif/libexif.mk +6 -12
index 643d9ed893..30933e3359 100644
@@ -4,21 +4,15 @@
 #
 ################################################################################
 
-LIBEXIF_VERSION = 0.6.21
-LIBEXIF_SOURCE = libexif-$(LIBEXIF_VERSION).tar.bz2
-LIBEXIF_SITE = http://downloads.sourceforge.net/project/libexif/libexif/$(LIBEXIF_VERSION)
+LIBEXIF_VERSION = 0.6.22
+LIBEXIF_SITE = \
+	$(call github,libexif,libexif,libexif-$(subst .,_,$(LIBEXIF_VERSION))-release)
 LIBEXIF_INSTALL_STAGING = YES
 LIBEXIF_DEPENDENCIES = host-pkgconf
 LIBEXIF_LICENSE = LGPL-2.1+
 LIBEXIF_LICENSE_FILES = COPYING
-
-# 0001-fixes-some-not-all-buffer-overreads-during-decoding-.patch
-LIBEXIF_IGNORE_CVES += CVE-2016-6328
-# 0002-On-saving-makernotes-make-sure-the-makernote-contain.patch
-LIBEXIF_IGNORE_CVES += CVE-2017-7544
-# 0004-Improve-deep-recursion-detection-in-exif_data_load_d.patch
-LIBEXIF_IGNORE_CVES += CVE-2018-20030
-# 0005-fix-CVE-2019-9278.patch
-LIBEXIF_IGNORE_CVES += CVE-2019-9278
+# From git
+LIBEXIF_AUTORECONF = YES
+LIBEXIF_GETTEXTIZE = YES
 
 $(eval $(autotools-package))
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 package/libexif: security bump to version 0.6.22

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

- Switch site to github
- Drop patches (already in version)
- Fix the following CVEs:
- CVE-2020-13114: Time consumption DoS when parsing canon array markers
- CVE-2020-13113: Potential use of uninitialized memory
- CVE-2020-13112: Various buffer overread fixes due to integer overflows in maker notes
- CVE-2020-0093: read overflow
- CVE-2020-12767: fixed division by zero

Quoted 3 lines

https://github.com/libexif/libexif/releases/tag/libexif-0_6_22-release

Committed to 2020.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard