Skip to contentSkip to conversation

zlib: upgrade 1.3.2 -> 1.4

PATCH In review Prasanth R 3 participants 7 messages Nov 6

lore
Share & tools
lore

Prasanth R

author
#0 lore raw

PATCH v2 1/2 zlib: upgrade 1.3.2 -> 1.4

Bug fix and security release. It fixes CVE-2026-85091, a heap buffer overflow in gzwrite(), and several inflate, deflate and gzread issues.

Drop the -fuse-ld=bfd workaround. 1.4 fixes the configure test that failed with lld 17+ (upstream commit 6ddc2d0, "Fix configure when using zlib.map with some linkers"). PR #936, named in the old comment, is about --zprefix builds, which we don't use.

License checksum is unchanged.

Changelog: https://github.com/madler/zlib/blob/v1.4/ChangeLog

AI-Generated: Uses Claude

---

Notes:
v2: zlib 1.4 is out, so upgrade instead of the backport (Peter), and mark CVE-2026-76844 cpe-incorrect in a separate patch (Paul). Also drop the lld workaround: tested a 1.4 build with gcc + ld.lld, same exported symbols as with bfd. ptest passes on Test.

 meta/recipes-core/zlib/{zlib_1.3.2.bb => zlib_1.4.bb} | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
 rename meta/recipes-core/zlib/{zlib_1.3.2.bb => zlib_1.4.bb} (85%)
meta/recipes-core/zlib/zlib_1.4.bb renamed from meta/recipes-core/zlib/zlib_1.3.2.bb +1 -4
similarity index 85%
rename from meta/recipes-core/zlib/zlib_1.3.2.bb
rename to meta/recipes-core/zlib/zlib_1.4.bb
index 8a23d98cd3..18b27df878 100644
@@ -12,16 +12,13 @@ SRC_URI = "https://zlib.net/${BP}.tar.gz \
            "
 UPSTREAM_CHECK_URI = "http://zlib.net/"
 
-SRC_URI[sha256sum] = "bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16"
+SRC_URI[sha256sum] = "02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584"
 
 # When a new release is made the previous release is moved to fossils/, so add this
 # to PREMIRRORS so it is also searched automatically.
 PREMIRRORS:append = " https://zlib.net/ https://zlib.net/fossils/"
 
 CFLAGS += "-D_REENTRANT -fPIE"
-# zlib does not build with lld, keep it until https://github.com/madler/zlib/pull/936
-# is addressed
-LDFLAGS:append = " -fuse-ld=bfd"
 
 RDEPENDS:${PN}-ptest += "make"
 
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 2/2 zlib: ignore CVE-2026-76844

CVE-2026-76844 is a webpack-dev-middleware CVE. Its record got the zlib gz_vacate details by mistake; the zlib CVE for that bug is CVE-2026-85091 [1].

[1] https://github.com/madler/zlib/issues/1330

AI-Generated: Uses Claude

---
 meta/recipes-core/zlib/zlib_1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/zlib/zlib_1.4.bb +2 -0
index 18b27df878..2bc1967c0e 100644
@@ -47,3 +47,5 @@ BBCLASSEXTEND = "native nativesdk"
 
 # Adding 'CVE_PRODUCT' to avoid false detection of CVEs
 CVE_PRODUCT = "zlib:zlib gnu:zlib"
+
+CVE_STATUS[CVE-2026-76844] = "cpe-incorrect: this CVE is for webpack-dev-middleware, the zlib details were added in error"
Signature · 1 line
2.34.1
#2 lore raw

RE: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

zlib recipe version 1.4 does not assert this CVE as unpatched.
I think it's not worth to carry patches which just switch patched:fixed-version to patched:cpe-incorrect.

Peter

Quoted 33 lines

-----Original Message-----
From: Prasanth R <[email protected]>
Sent: Friday, November 6, 2026 2:13 AM
To: [email protected]
Cc: [email protected]; Marko, Peter (FT D EU SK BFS1) <[email protected]>; Prasanth R <[email protected]>
Subject: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

CVE-2026-76844 is a webpack-dev-middleware CVE. Its record got the zlib gz_vacate details by mistake; the zlib CVE for that bug is CVE-2026-85091 [1].

[1] https://github.com/madler/zlib/issues/1330

AI-Generated: Uses Claude

---
 meta/recipes-core/zlib/zlib_1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/zlib/zlib_1.4.bb +2 -0
index 18b27df878..2bc1967c0e 100644
@@ -47,3 +47,5 @@ BBCLASSEXTEND = "native nativesdk"
 
 # Adding 'CVE_PRODUCT' to avoid false detection of CVEs
 CVE_PRODUCT = "zlib:zlib gnu:zlib"
+
+CVE_STATUS[CVE-2026-76844] = "cpe-incorrect: this CVE is for webpack-dev-

middleware, the zlib details were added in error"
--
2.34.1

#3 lore raw

Re: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

Hi Peter,

Makes sense for 1.4. I think we can drop patch 2/2, as patch 1/2 doesn't depend on it.
I'll add the CVE_STATUS to the backport branches instead, if needed, there.

Thanks,
Prasanth

Quoted 43 lines · Peter

zlib recipe version 1.4 does not assert this CVE as unpatched. I think it's not worth to carry patches which just switch patched:fixed-version to patched:cpe-incorrect.

Peter

Quoted 14 lines

-----Original Message-----
From: Prasanth R <[email protected]>
Sent: Friday, November 6, 2026 2:13 AM
To: [email protected]
Cc: [email protected]; Marko, Peter (FT D EU SK BFS1) <[email protected]>; Prasanth R <[email protected]>
Subject: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

CVE-2026-76844 is a webpack-dev-middleware CVE. Its record got the zlib gz_vacate details by mistake; the zlib CVE for that bug is CVE-2026-85091 [1].

[1] https://github.com/madler/zlib/issues/1330

Review

Quoted 7 lines

AI-Generated: Uses Claude

---
 meta/recipes-core/zlib/zlib_1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/meta/recipes-core/zlib/zlib_1.4.bb

meta/recipes-core/zlib/zlib_1.4.bb BBCLASSEXTEND = "native nativesdk" · line 51

Quoted 9 lines

index 18b27df878..2bc1967c0e 100644

meta/recipes-core/zlib/zlib_1.4.bb +2 -0
@@ -47,3 +47,5 @@ BBCLASSEXTEND = "native nativesdk"
 
 # Adding 'CVE_PRODUCT' to avoid false detection of CVEs
 CVE_PRODUCT = "zlib:zlib gnu:zlib"
+
+CVE_STATUS[CVE-2026-76844] = "cpe-incorrect: this CVE is for

webpack-dev-

Quoted 3 lines

middleware, the zlib details were added in error"
--
2.34.1

#4 lore raw

Re: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

Hi Paul,

are you ok with dropping 2/2?

Thanks,
Prasanth

Quoted 56 lines · Prasanth Ramesh

Hi Peter,

Makes sense for 1.4. I think we can drop patch 2/2, as patch 1/2 doesn't depend on it.
I'll add the CVE_STATUS to the backport branches instead, if needed, there.

Thanks,
Prasanth

Quoted 43 lines · Peter

zlib recipe version 1.4 does not assert this CVE as unpatched. I think it's not worth to carry patches which just switch patched:fixed-version to patched:cpe-incorrect.

Peter

Quoted 14 lines

-----Original Message-----
From: Prasanth R <[email protected]>
Sent: Friday, November 6, 2026 2:13 AM
To: [email protected]
Cc: [email protected]; Marko, Peter (FT D EU SK BFS1) <[email protected]>; Prasanth R <[email protected]>
Subject: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

CVE-2026-76844 is a webpack-dev-middleware CVE. Its record got the zlib gz_vacate details by mistake; the zlib CVE for that bug is CVE-2026-85091 [1].

[1] https://github.com/madler/zlib/issues/1330

Review

Quoted 7 lines

AI-Generated: Uses Claude

---
 meta/recipes-core/zlib/zlib_1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/meta/recipes-core/zlib/zlib_1.4.bb

meta/recipes-core/zlib/zlib_1.4.bb BBCLASSEXTEND = "native nativesdk" · line 51

Quoted 9 lines

index 18b27df878..2bc1967c0e 100644

meta/recipes-core/zlib/zlib_1.4.bb +2 -0
@@ -47,3 +47,5 @@ BBCLASSEXTEND = "native nativesdk"
 
 # Adding 'CVE_PRODUCT' to avoid false detection of CVEs
 CVE_PRODUCT = "zlib:zlib gnu:zlib"
+
+CVE_STATUS[CVE-2026-76844] = "cpe-incorrect: this CVE is for

webpack-dev-

Quoted 3 lines

middleware, the zlib details were added in error"
--
2.34.1

#5 lore raw

Re: [PATCH v2 2/2] zlib: ignore CVE-2026-76844

Quoted 3 lines · Prasanth Ramesh

Hi Paul,

are you ok with dropping 2/2?

Hi Prasanth,

https://app.opencve.io/cve/CVE-2026-76844 still shows this as a zlib CVE, but unaffected after v1.3.2. So yes, this can probably be dropped. Hopefully the upstream data will get fixed soon.

Best regards,

Signature · 1 line
Paul Barker