package/{lib, minizip-}zlib: security bump version to 1.4
PATCH 1/1 package/{lib, minizip-}zlib: security bump version to 1.4
https://github.com/madler/zlib/releases/tag/v1.4
https://github.com/madler/zlib/blob/v1.4/ChangeLog
https://madler.net/pipermail/zlib-announce_madler.net/2026/000017.html
"This version remedies several security vulnerabilities, fixes other
bugs, and has many other enhancements and portability improvements."
Removed patches which are included in this release.
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/abfccd119bdc40abb2bf9125c83410f519ab594a
...overflow-bug-in-non-blocking-gzwrite.patch | 31 ------------------- package/libzlib/libzlib.hash | 2 +- package/libzlib/libzlib.mk | 4 +-- ...ncy-to-ints.h-in-minizip-Makefile.am.patch | 26 ---------------- package/minizip-zlib/minizip-zlib.mk | 2 +- 5 files changed, 3 insertions(+), 62 deletions(-) delete mode 100644 package/libzlib/0001-fix-buffer-overflow-bug-in-non-blocking-gzwrite.patch delete mode 100644 package/minizip-zlib/0001-Add-dependency-to-ints.h-in-minizip-Makefile.am.patch
package/libzlib/0001-fix-buffer-overflow-bug-in-non-blocking-gzwrite.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From df84af25dc1942490e1d1c899a07619152a46148 Mon Sep 17 00:00:00 2001 -From: Mark Adler <[email protected]> -Date: Wed, 16 Sep 2026 16:26:14 -0700 -Subject: [PATCH] Fix buffer overflow bug in non-blocking gzwrite. - -This addresses CVE-2026-85091. - -Upstream: https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148.patch -CVE: CVE-2026-85091 -Signed-off-by: Thomas Perale <[email protected]> ---- - gzwrite.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/gzwrite.c b/gzwrite.c -index b217b85ce..512329244 100644 ---- a/gzwrite.c -+++ b/gzwrite.c -@@ -242,8 +242,11 @@ local z_size_t gz_write(gz_statep state, voidpc buf, z_size_t len) { - n -= state->strm.avail_in; - state->x.pos += n; - len -= n; -- if (ret == -1) -+ if (ret == -1) { -+ state->strm.avail_in = 0; -+ state->strm.next_in = state->in; - return state->again ? put - len : 0; -+ } - } while (len); - } -
package/libzlib/libzlib.hash +1 -1
@@ -1,4 +1,4 @@ # From http://www.zlib.net/ -sha256 d7a0654783a4da529d1bb793b7ad9c3318020af77667bcae35f95d0e42a792f3 zlib-1.3.2.tar.xz +sha256 4f11c512053d7bab8d9e9b89bde3575add3e4c50a383b42ef6cb837035fc5a7c zlib-1.4.tar.xz # License files, locally calculated sha256 e32ff4e00d9d94930537635291da39e7e612703334bf6fde8c7f1686fe8a45a2 LICENSE
package/libzlib/libzlib.mk +1 -3
@@ -5,7 +5,7 @@ ################################################################################ # When updating the version here, please also update the minizip-zlib package -LIBZLIB_VERSION = 1.3.2 +LIBZLIB_VERSION = 1.4 LIBZLIB_SOURCE = zlib-$(LIBZLIB_VERSION).tar.xz LIBZLIB_SITE = https://www.zlib.net LIBZLIB_LICENSE = Zlib
@@ -15,8 +15,6 @@ LIBZLIB_PROVIDES = zlib LIBZLIB_CPE_ID_VENDOR = zlib LIBZLIB_CPE_ID_PRODUCT = zlib -LIBZLIB_IGNORE_CVES += CVE-2026-85091 - # It is not possible to build only a shared version of zlib, so we build both # shared and static, unless we only want the static libs, and we eventually # selectively remove what we do not want
package/minizip-zlib/0001-Add-dependency-to-ints.h-in-minizip-Makefile.am.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From cb14dc9ade3759352417a300e6c2ed73268f1d97 Mon Sep 17 00:00:00 2001 -From: Rui Chen <[email protected]> -Date: Tue, 17 Feb 2026 10:48:39 -0500 -Subject: [PATCH] Add dependency to ints.h in minizip Makefile.am. - -So that ints.h is part of the installation. - -Upstream: https://github.com/madler/zlib/commit/cb14dc9ade3759352417a300e6c2ed73268f1d97 - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - contrib/minizip/Makefile.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/contrib/minizip/Makefile.am b/contrib/minizip/Makefile.am -index d343011eb..b7dea4f7e 100644 ---- a/contrib/minizip/Makefile.am -+++ b/contrib/minizip/Makefile.am -@@ -27,6 +27,7 @@ libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz - minizip_includedir = $(includedir)/minizip - minizip_include_HEADERS = \ - crypt.h \ -+ ints.h \ - ioapi.h \ - mztools.h \ - unzip.h \
package/minizip-zlib/minizip-zlib.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ # When updating the version here, please also update the libzlib package -MINIZIP_ZLIB_VERSION = 1.3.2 +MINIZIP_ZLIB_VERSION = 1.4 MINIZIP_ZLIB_SOURCE = zlib-$(MINIZIP_ZLIB_VERSION).tar.xz MINIZIP_ZLIB_SITE = https://www.zlib.net MINIZIP_ZLIB_DL_SUBDIR = libzlib
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · Bernd Kuhls
https://github.com/madler/zlib/releases/tag/v1.4
https://github.com/madler/zlib/blob/v1.4/ChangeLog
https://madler.net/pipermail/zlib-announce_madler.net/2026/000017.html
"This version remedies several security vulnerabilities, fixes other
bugs, and has many other enhancements and portability improvements."Removed patches which are included in this release.
Signed-off-by Bernd Kuhls <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 9 lines
https://github.com/madler/zlib/releases/tag/v1.4
https://github.com/madler/zlib/blob/v1.4/ChangeLog
https://madler.net/pipermail/zlib-announce_madler.net/2026/000017.html
"This version remedies several security vulnerabilities, fixes other
bugs, and has many other enhancements and portability improvements."Removed patches which are included in this release.
Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 119 lines
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/abfccd119bdc40abb2bf9125c83410f519ab594a...overflow-bug-in-non-blocking-gzwrite.patch | 31 ------------------- package/libzlib/libzlib.hash | 2 +- package/libzlib/libzlib.mk | 4 +-- ...ncy-to-ints.h-in-minizip-Makefile.am.patch | 26 ---------------- package/minizip-zlib/minizip-zlib.mk | 2 +- 5 files changed, 3 insertions(+), 62 deletions(-) delete mode 100644 package/libzlib/0001-fix-buffer-overflow-bug-in-non-blocking-gzwrite.patch delete mode 100644 package/minizip-zlib/0001-Add-dependency-to-ints.h-in-minizip-Makefile.am.patchpackage/libzlib/0001-fix-buffer-overflow-bug-in-non-blocking-gzwrite.patch deleted +0
-31@@ -1,31 +0,0 @@ -From df84af25dc1942490e1d1c899a07619152a46148 Mon Sep 17 00:00:00 2001 -From: Mark Adler <[email protected]> -Date: Wed, 16 Sep 2026 16:26:14 -0700 -Subject: [PATCH] Fix buffer overflow bug in non-blocking gzwrite. - -This addresses CVE-2026-85091. - -Upstream: https://github.com/madler/zlib/commit/df84af25dc1942490e1d1c899a07619152a46148.patch -CVE: CVE-2026-85091 -Signed-off-by: Thomas Perale <[email protected]> ---- - gzwrite.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/gzwrite.c b/gzwrite.c -index b217b85ce..512329244 100644 ---- a/gzwrite.c -+++ b/gzwrite.c -@@ -242,8 +242,11 @@ local z_size_t gz_write(gz_statep state, voidpc buf, z_size_t len) { - n -= state->strm.avail_in; - state->x.pos += n; - len -= n; -- if (ret == -1) -+ if (ret == -1) { -+ state->strm.avail_in = 0; -+ state->strm.next_in = state->in; - return state->again ? put - len : 0; -+ } - } while (len); - } -package/libzlib/libzlib.hash +1
-1@@ -1,4 +1,4 @@ # From http://www.zlib.net/ -sha256 d7a0654783a4da529d1bb793b7ad9c3318020af77667bcae35f95d0e42a792f3 zlib-1.3.2.tar.xz +sha256 4f11c512053d7bab8d9e9b89bde3575add3e4c50a383b42ef6cb837035fc5a7c zlib-1.4.tar.xz # License files, locally calculated sha256 e32ff4e00d9d94930537635291da39e7e612703334bf6fde8c7f1686fe8a45a2 LICENSEpackage/libzlib/libzlib.mk +1
-3@@ -5,7 +5,7 @@ ################################################################################ # When updating the version here, please also update the minizip-zlib package -LIBZLIB_VERSION = 1.3.2 +LIBZLIB_VERSION = 1.4 LIBZLIB_SOURCE = zlib-$(LIBZLIB_VERSION).tar.xz LIBZLIB_SITE = https://www.zlib.net LIBZLIB_LICENSE = Zlib@@ -15,8 +15,6 @@ LIBZLIB_PROVIDES = zlib LIBZLIB_CPE_ID_VENDOR = zlib LIBZLIB_CPE_ID_PRODUCT = zlib -LIBZLIB_IGNORE_CVES += CVE-2026-85091 - # It is not possible to build only a shared version of zlib, so we build both # shared and static, unless we only want the static libs, and we eventually # selectively remove what we do not wantpackage/minizip-zlib/0001-Add-dependency-to-ints.h-in-minizip-Makefile.am.patch deleted +0
-26@@ -1,26 +0,0 @@ -From cb14dc9ade3759352417a300e6c2ed73268f1d97 Mon Sep 17 00:00:00 2001 -From: Rui Chen <[email protected]> -Date: Tue, 17 Feb 2026 10:48:39 -0500 -Subject: [PATCH] Add dependency to ints.h in minizip Makefile.am. - -So that ints.h is part of the installation. - -Upstream: https://github.com/madler/zlib/commit/cb14dc9ade3759352417a300e6c2ed73268f1d97 - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - contrib/minizip/Makefile.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/contrib/minizip/Makefile.am b/contrib/minizip/Makefile.am -index d343011eb..b7dea4f7e 100644 ---- a/contrib/minizip/Makefile.am -+++ b/contrib/minizip/Makefile.am -@@ -27,6 +27,7 @@ libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz - minizip_includedir = $(includedir)/minizip - minizip_include_HEADERS = \ - crypt.h \ -+ ints.h \ - ioapi.h \ - mztools.h \ - unzip.h \package/minizip-zlib/minizip-zlib.mk +0
-0
package/minizip-zlib/minizip-zlib.mk line 11
Quoted 8 lines
package/minizip-zlib/minizip-zlib.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ # When updating the version here, please also update the libzlib package -MINIZIP_ZLIB_VERSION = 1.3.2 +MINIZIP_ZLIB_VERSION = 1.4 MINIZIP_ZLIB_SOURCE = zlib-$(MINIZIP_ZLIB_VERSION).tar.xz MINIZIP_ZLIB_SITE = https://www.zlib.net MINIZIP_ZLIB_DL_SUBDIR = libzlib
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot