package/rpm: security bump to version 4.16.1.3
PATCH 1/1 package/rpm: security bump to version 4.16.1.3
- Fix arbitrary data copied from signature header past signature checking (CVE-2021-3421)
- Fix signature check bypass with corrupted package (CVE-2021-20271)
- Fix missing bounds checks in headerImport() and headerCheck() (CVE-2021-20266)
- Fix missing sanity checks on header entry count and region data overlap
- Fix access past end of header if the last entry is string type
- Fix unsafe headerCopyLoad() still used in codebase
Drop all patches (already in version)
https://rpm.org/wiki/Releases/4.16.1.3.html
--- ...1-lib-rpmdb-c-include-fcntl-h-for-O_.patch | 29 ------- ...2-lib-rpmrc.c-include-fcntl.h-for-O_.patch | 31 -------- ...for-OpenMP-version-at-configure-time.patch | 78 ------------------- ...4-configure-ac-fix-cross-compilation.patch | 33 -------- ...005-Really-disable-OpenMP-if-too-old.patch | 26 ------- package/rpm/rpm.hash | 4 +- package/rpm/rpm.mk | 4 +- 7 files changed, 3 insertions(+), 202 deletions(-) delete mode 100644 package/rpm/0001-lib-rpmdb-c-include-fcntl-h-for-O_.patch delete mode 100644 package/rpm/0002-lib-rpmrc.c-include-fcntl.h-for-O_.patch delete mode 100644 package/rpm/0003-Check-for-OpenMP-version-at-configure-time.patch delete mode 100644 package/rpm/0004-configure-ac-fix-cross-compilation.patch delete mode 100644 package/rpm/0005-Really-disable-OpenMP-if-too-old.patch
package/rpm/0001-lib-rpmdb-c-include-fcntl-h-for-O_.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 9395bdc64459357631111842e7a28304b4d76301 Mon Sep 17 00:00:00 2001 -From: Leo <[email protected]> -Date: Wed, 30 Sep 2020 08:36:03 -0300 -Subject: [PATCH] lib/rpmdb.c: include fcntl.h for O_* - -Fixes compilation on musl, otherwise it fails with undefined references -to various O_* symbols as mentioned here: - -https://www.man7.org/linux/man-pages/man0/fcntl.h.0p.html - -[Retrieved from: -https://github.com/rpm-software-management/rpm/commit/9395bdc64459357631111842e7a28304b4d76301] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - lib/rpmdb.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/lib/rpmdb.c b/lib/rpmdb.c -index 4c101569f..73187630b 100644 ---- a/lib/rpmdb.c -+++ b/lib/rpmdb.c -@@ -8,6 +8,7 @@ - #include <utime.h> - #include <errno.h> - #include <dirent.h> -+#include <fcntl.h> - - #ifndef DYING /* XXX already in "system.h" */ - #include <fnmatch.h>
package/rpm/0002-lib-rpmrc.c-include-fcntl.h-for-O_.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 8d446d33a705cb37420e1fda18379d7439ee841f Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Sun, 25 Oct 2020 15:04:56 +0100 -Subject: [PATCH 2/2] lib/rpmrc.c: include fcntl.h for O_* - -Fixes compilation on musl, otherwise it fails with undefined references -to various O_* symbols as mentioned here: - -https://www.man7.org/linux/man-pages/man0/fcntl.h.0p.html - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Upstream status: -https://github.com/rpm-software-management/rpm/pull/1413] ---- - lib/rpmrc.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/lib/rpmrc.c b/lib/rpmrc.c -index 78c4a6d42..8bfe7a0ab 100644 ---- a/lib/rpmrc.c -+++ b/lib/rpmrc.c -@@ -1,5 +1,6 @@ - #include "system.h" - -+#include <fcntl.h> - #include <stdarg.h> - #include <pthread.h> - --- -2.28.0 -
package/rpm/0003-Check-for-OpenMP-version-at-configure-time.patch deleted +0 -78
78 lines not on this page · raw message
package/rpm/0004-configure-ac-fix-cross-compilation.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 13585fbbe83eb177b13d86c2d6f11ff41a68d07e Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Tue, 10 Nov 2020 18:20:24 +0100 -Subject: [PATCH] configure.ac: fix cross-compilation - -Use AC_COMPILE_IFELSE as AC_RUN_IFELSE raises a build failure when -cross-compiling - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieved from: -https://github.com/rpm-software-management/rpm/commit/13585fbbe83eb177b13d86c2d6f11ff41a68d07e] ---- - configure.ac | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 38d3c286a..a83016449 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -175,11 +175,11 @@ AS_IF([test "x$ac_cv_prog_c_openmp" != x && - old_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $OPENMP_CFLAGS" - AC_MSG_CHECKING([OpenMP is at least version 4.5]) -- AC_RUN_IFELSE( -+ AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [#include <omp.h>], - [#if _OPENMP < 201511 -- exit(1); -+ #error - #endif - ] - )],
package/rpm/0005-Really-disable-OpenMP-if-too-old.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From 662a367f427d653c6b8fbc7fbd1ace5ba120a25f Mon Sep 17 00:00:00 2001 -From: Michal Domonkos <[email protected]> -Date: Thu, 3 Dec 2020 15:11:57 +0100 -Subject: [PATCH] Really disable OpenMP if too old - -Fix up for commit 6a780f1. - -[Retrieved from: -https://github.com/rpm-software-management/rpm/pull/1455] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - configure.ac | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/configure.ac b/configure.ac -index c853cd9af..beb65ff8a 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -187,6 +187,7 @@ AS_IF([test "x$ac_cv_prog_c_openmp" != x && - AC_DEFINE(ENABLE_OPENMP, 1, [Enable multithreading support?]) - ], - [AC_MSG_RESULT([no]) -+ OPENMP_CFLAGS= - if test "$enable_openmp" = "yes"; then - AC_MSG_ERROR([OpenMP too old]) - fi
package/rpm/rpm.hash +2 -2
@@ -1,5 +1,5 @@ -# From https://rpm.org/wiki/Releases/4.16.0.html -sha256 ca5974e9da2939afb422598818ef187385061889ba766166c4a3829c5ef8d411 rpm-4.16.0.tar.bz2 +# From https://rpm.org/wiki/Releases/4.16.1.3.html +sha256 513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d rpm-4.16.1.3.tar.bz2 # Hash for license file sha256 171d94d9f1641316bff7f157a903237dc69cdb5fca405fed8c832c76ed8370f9 COPYING
package/rpm/rpm.mk +1 -3
@@ -5,7 +5,7 @@ ################################################################################ RPM_VERSION_MAJOR = 4.16 -RPM_VERSION = $(RPM_VERSION_MAJOR).0 +RPM_VERSION = $(RPM_VERSION_MAJOR).1.3 RPM_SOURCE = rpm-$(RPM_VERSION).tar.bz2 RPM_SITE = http://ftp.rpm.org/releases/rpm-$(RPM_VERSION_MAJOR).x RPM_DEPENDENCIES = \
@@ -20,8 +20,6 @@ RPM_DEPENDENCIES = \ RPM_LICENSE = GPL-2.0 or LGPL-2.0 (library only) RPM_LICENSE_FILES = COPYING RPM_CPE_ID_VENDOR = rpm -# We're patching configure.ac -RPM_AUTORECONF = YES # Don't set --{dis,en}-openmp as upstream wants to abort the build if # --enable-openmp is provided and OpenMP is < 4.5:
Signature · 1 line
2.30.2
Yann E. MORIN
AppliedPATCH 1/1 package/rpm: security bump to version 4.16.1.3
Fabrice, All,
On 2021-04-02 21:33 +0200, Fabrice Fontaine spake thusly:
Quoted 10 lines
- Fix arbitrary data copied from signature header past signature checking (CVE-2021-3421)
- Fix signature check bypass with corrupted package (CVE-2021-20271)
- Fix missing bounds checks inheaderImport()andheaderCheck()(CVE-2021-20266)
- Fix missing sanity checks on header entry count and region data overlap
- Fix access past end of header if the last entry is string type
- Fix unsafeheaderCopyLoad()still used in codebase
Quoted 5 lines
Drop all patches (already in version)
https://rpm.org/wiki/Releases/4.16.1.3.html
Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 283 lines
--- ...1-lib-rpmdb-c-include-fcntl-h-for-O_.patch | 29 ------- ...2-lib-rpmrc.c-include-fcntl.h-for-O_.patch | 31 -------- ...for-OpenMP-version-at-configure-time.patch | 78 ------------------- ...4-configure-ac-fix-cross-compilation.patch | 33 -------- ...005-Really-disable-OpenMP-if-too-old.patch | 26 ------- package/rpm/rpm.hash | 4 +- package/rpm/rpm.mk | 4 +- 7 files changed, 3 insertions(+), 202 deletions(-) delete mode 100644 package/rpm/0001-lib-rpmdb-c-include-fcntl-h-for-O_.patch delete mode 100644 package/rpm/0002-lib-rpmrc.c-include-fcntl.h-for-O_.patch delete mode 100644 package/rpm/0003-Check-for-OpenMP-version-at-configure-time.patch delete mode 100644 package/rpm/0004-configure-ac-fix-cross-compilation.patch delete mode 100644 package/rpm/0005-Really-disable-OpenMP-if-too-old.patchpackage/rpm/0001-lib-rpmdb-c-include-fcntl-h-for-O_.patch deleted +0
-29@@ -1,29 +0,0 @@ -From 9395bdc64459357631111842e7a28304b4d76301 Mon Sep 17 00:00:00 2001 -From: Leo <[email protected]> -Date: Wed, 30 Sep 2020 08:36:03 -0300 -Subject: [PATCH] lib/rpmdb.c: include fcntl.h for O_* - -Fixes compilation on musl, otherwise it fails with undefined references -to various O_* symbols as mentioned here: - -https://www.man7.org/linux/man-pages/man0/fcntl.h.0p.html - -[Retrieved from: -https://github.com/rpm-software-management/rpm/commit/9395bdc64459357631111842e7a28304b4d76301] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - lib/rpmdb.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/lib/rpmdb.c b/lib/rpmdb.c -index 4c101569f..73187630b 100644 ---- a/lib/rpmdb.c -+++ b/lib/rpmdb.c -@@ -8,6 +8,7 @@ - #include <utime.h> - #include <errno.h> - #include <dirent.h> -+#include <fcntl.h> - - #ifndef DYING /* XXX already in "system.h" */ - #include <fnmatch.h>package/rpm/0002-lib-rpmrc.c-include-fcntl.h-for-O_.patch deleted +0
-31@@ -1,31 +0,0 @@ -From 8d446d33a705cb37420e1fda18379d7439ee841f Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Sun, 25 Oct 2020 15:04:56 +0100 -Subject: [PATCH 2/2] lib/rpmrc.c: include fcntl.h for O_* - -Fixes compilation on musl, otherwise it fails with undefined references -to various O_* symbols as mentioned here: - -https://www.man7.org/linux/man-pages/man0/fcntl.h.0p.html - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Upstream status: -https://github.com/rpm-software-management/rpm/pull/1413] ---- - lib/rpmrc.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/lib/rpmrc.c b/lib/rpmrc.c -index 78c4a6d42..8bfe7a0ab 100644 ---- a/lib/rpmrc.c -+++ b/lib/rpmrc.c -@@ -1,5 +1,6 @@ - #include "system.h" - -+#include <fcntl.h> - #include <stdarg.h> - #include <pthread.h> - --- -2.28.0 -package/rpm/0003-Check-for-OpenMP-version-at-configure-time.patch deleted +0
-78@@ -1,78 +0,0 @@ -From 6a780f10c2b600cfc38f8b8f20cb7e40b979f541 Mon Sep 17 00:00:00 2001 -From: Michal Domonkos <[email protected]> -Date: Tue, 4 Aug 2020 16:50:21 +0200 -Subject: [PATCH] Check for OpenMP version at configure time - -Only accept OpenMP >= 4.5, due to the "priority" clause that we use -since commit 6f6f5e7, and also document that in the INSTALL file. - -If explicitly required with --enable-openmp, fail configuration if the -version is not available. - -https://www.openmp.org/wp-content/uploads/openmp-4.5.pdf - -Resolves: #1315 -[Retrieved from: -https://github.com/rpm-software-management/rpm/commit/6a780f10c2b600cfc38f8b8f20cb7e40b979f541] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - INSTALL | 6 ++++++ - configure.ac | 25 +++++++++++++++++++++++-- - 2 files changed, 29 insertions(+), 2 deletions(-) - -diff --git a/INSTALL b/INSTALL -index cfbe54a3e..7622b2efe 100644 ---- a/INSTALL -+++ b/INSTALL -@@ -142,6 +142,12 @@ If you plan on using cryptographic signatures you will need a version - of GPG, available from - http://www.gnupg.org/ - -+OpenMP multithreading support is automatically enabled if your C compiler has -+support for OpenMP version 4.5 or higher (to disable, pass the --disable-openmp -+option to configure). For GCC, OpenMP 4.5 is fully supported since GCC 6.1, -+which is available from -+ http://www.gnu.org/ -+ - To compile RPM: - -------------- - -diff --git a/configure.ac b/configure.ac -index 1346ee704..35003619d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -167,11 +167,32 @@ AC_SUBST(WITH_LZMA_LIB) - - # AC_OPENMP supports --enable/disable-openmp out of the box, but it doesn't - # actually give us a way to conditionalize the build based on that. Argh. -+# Version 4.5 (201511) introduced "priority" clause for tasks. - OPENMP_CFLAGS= - AC_OPENMP - AS_IF([test "x$ac_cv_prog_c_openmp" != x && -- test "x$ac_cv_prog_c_openmp" != unsupported],[ -- AC_DEFINE(ENABLE_OPENMP, 1, [Enable multithreading support?]) -+ test "x$ac_cv_prog_c_openmp" != xunsupported],[ -+ old_CFLAGS=$CFLAGS -+ CFLAGS="$CFLAGS $OPENMP_CFLAGS" -+ AC_MSG_CHECKING([OpenMP is at least version 4.5]) -+ AC_RUN_IFELSE( -+ [AC_LANG_PROGRAM( -+ [#include <omp.h>], -+ [#if _OPENMP < 201511 -+ exit(1); -+ #endif -+ ] -+ )], -+ [AC_MSG_RESULT([yes]) -+ AC_DEFINE(ENABLE_OPENMP, 1, [Enable multithreading support?]) -+ ], -+ [AC_MSG_RESULT([no]) -+ if test "$enable_openmp" = "yes"; then -+ AC_MSG_ERROR([OpenMP too old]) -+ fi -+ ] -+ ) -+ CFLAGS=$old_CFLAGS - ]) - AC_SUBST(OPENMP_CFLAGS) -package/rpm/0004-configure-ac-fix-cross-compilation.patch deleted +0
-33@@ -1,33 +0,0 @@ -From 13585fbbe83eb177b13d86c2d6f11ff41a68d07e Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Tue, 10 Nov 2020 18:20:24 +0100 -Subject: [PATCH] configure.ac: fix cross-compilation - -Use AC_COMPILE_IFELSE as AC_RUN_IFELSE raises a build failure when -cross-compiling - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieved from: -https://github.com/rpm-software-management/rpm/commit/13585fbbe83eb177b13d86c2d6f11ff41a68d07e] ---- - configure.ac | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 38d3c286a..a83016449 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -175,11 +175,11 @@ AS_IF([test "x$ac_cv_prog_c_openmp" != x && - old_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $OPENMP_CFLAGS" - AC_MSG_CHECKING([OpenMP is at least version 4.5]) -- AC_RUN_IFELSE( -+ AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [#include <omp.h>], - [#if _OPENMP < 201511 -- exit(1); -+ #error - #endif - ] - )],package/rpm/0005-Really-disable-OpenMP-if-too-old.patch deleted +0
-26@@ -1,26 +0,0 @@ -From 662a367f427d653c6b8fbc7fbd1ace5ba120a25f Mon Sep 17 00:00:00 2001 -From: Michal Domonkos <[email protected]> -Date: Thu, 3 Dec 2020 15:11:57 +0100 -Subject: [PATCH] Really disable OpenMP if too old - -Fix up for commit 6a780f1. - -[Retrieved from: -https://github.com/rpm-software-management/rpm/pull/1455] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - configure.ac | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/configure.ac b/configure.ac -index c853cd9af..beb65ff8a 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -187,6 +187,7 @@ AS_IF([test "x$ac_cv_prog_c_openmp" != x && - AC_DEFINE(ENABLE_OPENMP, 1, [Enable multithreading support?]) - ], - [AC_MSG_RESULT([no]) -+ OPENMP_CFLAGS= - if test "$enable_openmp" = "yes"; then - AC_MSG_ERROR([OpenMP too old]) - fipackage/rpm/rpm.hash +2
-2@@ -1,5 +1,5 @@ -# From https://rpm.org/wiki/Releases/4.16.0.html -sha256 ca5974e9da2939afb422598818ef187385061889ba766166c4a3829c5ef8d411 rpm-4.16.0.tar.bz2 +# From https://rpm.org/wiki/Releases/4.16.1.3.html +sha256 513dc7f972b6e7ccfc9fc7f9c01d5310cc56ee853892e4314fa2cad71478e21d rpm-4.16.1.3.tar.bz2 # Hash for license file sha256 171d94d9f1641316bff7f157a903237dc69cdb5fca405fed8c832c76ed8370f9 COPYINGpackage/rpm/rpm.mk +1
-3@@ -5,7 +5,7 @@ ################################################################################ RPM_VERSION_MAJOR = 4.16 -RPM_VERSION = $(RPM_VERSION_MAJOR).0 +RPM_VERSION = $(RPM_VERSION_MAJOR).1.3 RPM_SOURCE = rpm-$(RPM_VERSION).tar.bz2 RPM_SITE = http://ftp.rpm.org/releases/rpm-$(RPM_VERSION_MAJOR).x RPM_DEPENDENCIES = \@@ -20,8 +20,6 @@ RPM_DEPENDENCIES = \ RPM_LICENSE = GPL-2.0 or LGPL-2.0 (library only) RPM_LICENSE_FILES = COPYING RPM_CPE_ID_VENDOR = rpm -# We're patching configure.ac -RPM_AUTORECONF = YES # Don't set --{dis,en}-openmp as upstream wants to abort the build if # --enable-openmp is provided and OpenMP is < 4.5:Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/rpm: security bump to version 4.16.1.3
In reply to Fabrice FontaineQuoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
- Fix arbitrary data copied from signature header past signature checking (CVE-2021-3421)
- Fix signature check bypass with corrupted package (CVE-2021-20271)
- Fix missing bounds checks inheaderImport()andheaderCheck()(CVE-2021-20266)
- Fix missing sanity checks on header entry count and region data overlap
- Fix access past end of header if the last entry is string type
- Fix unsafeheaderCopyLoad()still used in codebase
Quoted 5 lines
Drop all patches (already in version)
https://rpm.org/wiki/Releases/4.16.1.3.html
Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2020.02.x, 2020.11.x and 2021.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard