Skip to contentSkip to conversation

libmspack: patch CVE-2026-110602

PATCH New [email protected] 1 participant 10 messages Oct 26

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 libmspack: patch CVE-2026-110602

From: Ankur Tyagi <[email protected]>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-110602

---
 .../libmspack/CVE-2026-110602.patch           | 41 +++++++++++++++++++
 .../cabextract/libmspack_0.11alpha.bb         |  4 +-
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/cabextract/libmspack/CVE-2026-110602.patch
meta-oe/recipes-support/cabextract/libmspack/CVE-2026-110602.patch new file +41 -0
new file mode 100644
index 0000000000..15d690945f
@@ -0,0 +1,41 @@
+From aca3603bed20772fd86ce5b901005668cee835ad Mon Sep 17 00:00:00 2001
+From: Stuart Caie <[email protected]>
+Date: Mon, 15 Jun 2026 16:33:33 +0000
+Subject: [PATCH] kwajd_read_headers(): initialise pointers before returning
+ any error
+
+CVE: CVE-2026-110602
+Upstream-Status: Backport [https://github.com/kyz/libmspack/commit/4d868504114346aa767d435fbb89a8b76603493f]
+
+Dropped changes for test and ChangeLog file.
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ mspack/kwajd.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/mspack/kwajd.c b/mspack/kwajd.c
+index 30caa89..ede91dd 100644
+--- a/mspack/kwajd.c
++++ b/mspack/kwajd.c
+@@ -160,6 +160,11 @@ static int kwajd_read_headers(struct mspack_system *sys,
+     unsigned char buf[16];
+     int i;
+ 
++
++    /* initialise pointers */
++    hdr->filename = NULL;
++    hdr->extra    = NULL;
++
+     /* read in the header */
+     if (sys->read(fh, &buf[0], kwajh_SIZEOF) != kwajh_SIZEOF) {
+         return MSPACK_ERR_READ;
+@@ -177,8 +182,6 @@ static int kwajd_read_headers(struct mspack_system *sys,
+     hdr->data_offset  = EndGetI16(&buf[kwajh_DataOffset]);
+     hdr->headers      = EndGetI16(&buf[kwajh_Flags]);
+     hdr->length       = 0;
+-    hdr->filename     = NULL;
+-    hdr->extra        = NULL;
+     hdr->extra_length = 0;
+ 
+     /* optional headers */
meta-oe/recipes-support/cabextract/libmspack_0.11alpha.bb +3 -1
index 169a5f271b..c612e54e17 100644
@@ -8,7 +8,9 @@ LICENSE = "LGPL-2.1-only"
 
 LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=7fbc338309ac38fefcd64b04bb903e34"
 
-SRC_URI = "https://www.cabextract.org.uk/libmspack/libmspack-${PV}.tar.gz"
+SRC_URI = "https://www.cabextract.org.uk/libmspack/libmspack-${PV}.tar.gz \
+           file://CVE-2026-110602.patch \
+"
 SRC_URI[sha256sum] = "70dd1fb2f0aecc36791b71a1e1840e62173079eadaa081192d1c323a0eeea21b"
 
 inherit autotools
#1 lore raw

PATCH 2/10 unbound: upgrade 1.26.1 -> 1.26.2

From: Ankur Tyagi <[email protected]>

Details:
https://github.com/NLnetLabs/unbound/releases/tag/release-1.26.2

---
 .../unbound/{unbound_1.26.1.bb => unbound_1.26.2.bb}            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-networking/recipes-support/unbound/{unbound_1.26.1.bb => unbound_1.26.2.bb} (98%)
meta-networking/recipes-support/unbound/unbound_1.26.2.bb renamed from meta-networking/recipes-support/unbound/unbound_1.26.1.bb +1 -1
similarity index 98%
rename from meta-networking/recipes-support/unbound/unbound_1.26.1.bb
rename to meta-networking/recipes-support/unbound/unbound_1.26.2.bb
index f426ce351e..8894a59d07 100644
@@ -14,7 +14,7 @@ SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master;t
            file://run-ptest \
            "
 
-SRCREV = "13b6717f1716810523ffb60f971a6c9c5e8ce127"
+SRCREV = "f0cd7067d950921427c91ade4ecf060e944f88eb"
 
 inherit autotools pkgconfig systemd update-rc.d ptest
 
#2 lore raw

PATCH 3/10 ntpsec: upgrade 1.2.5 -> 1.2.6

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://gitlab.com/NTPsec/ntpsec/-/blob/NTPsec_1_2_6/NEWS.adoc?ref_type=tags

(cherry picked from commit b730ef39a1ee020404c54922e1467403c1533a25)
---
 .../recipes-support/ntpsec/{ntpsec_1.2.5.bb => ntpsec_1.2.6.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-networking/recipes-support/ntpsec/{ntpsec_1.2.5.bb => ntpsec_1.2.6.bb} (98%)
meta-networking/recipes-support/ntpsec/ntpsec_1.2.6.bb renamed from meta-networking/recipes-support/ntpsec/ntpsec_1.2.5.bb +1 -1
similarity index 98%
rename from meta-networking/recipes-support/ntpsec/ntpsec_1.2.5.bb
rename to meta-networking/recipes-support/ntpsec/ntpsec_1.2.6.bb
index 26348f7c4b..832619edc4 100644
@@ -17,7 +17,7 @@ SRC_URI = "https://ftp.ntpsec.org/pub/releases/ntpsec-${PV}.tar.gz \
            file://0001-wscript-Add-BISONFLAGS-support.patch \
            "
 
-SRC_URI[sha256sum] = "6fb191cddaf607e7754b1f6915a1a61dc4018b3e4eef3d2ffacec961c9682949"
+SRC_URI[sha256sum] = "8023beb9a0c86a93f0bf94d43fd388c71a6fa54d80bcbd747d899915191bb592"
 
 UPSTREAM_CHECK_URI = "ftp://ftp.ntpsec.org/pub/releases/"
 
#3 lore raw

PATCH 4/10 brotli: upgrade 1.2.0 -> 1.2.1

In reply to [email protected]

From: Jason Schonberg <[email protected]>

This is a security release

CVE-2026-111497: out-of-bounds write permits remote code execution

Changelog: https://github.com/google/brotli/releases/tag/v1.2.1

(cherry picked from commit b5d66bf60d7664e5fa15dfabcfdb7986ea83d386)
---
 .../brotli/{brotli_1.2.0.bb => brotli_1.2.1.bb}               | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-extended/brotli/{brotli_1.2.0.bb => brotli_1.2.1.bb} (79%)
meta-oe/recipes-extended/brotli/brotli_1.2.1.bb renamed from meta-oe/recipes-extended/brotli/brotli_1.2.0.bb +2 -2
similarity index 79%
rename from meta-oe/recipes-extended/brotli/brotli_1.2.0.bb
rename to meta-oe/recipes-extended/brotli/brotli_1.2.1.bb
index 84495a3236..dca16cb79b 100644
@@ -6,8 +6,8 @@ BUGTRACKER = "https://github.com/google/brotli/issues"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=941ee9cd1609382f946352712a319b4b"
 
-SRC_URI = "git://github.com/google/brotli.git;branch=master;protocol=https"
-SRCREV = "028fb5a23661f123017c060daa546b55cf4bde29"
+SRC_URI = "git://github.com/google/brotli.git;branch=v${@oe.utils.trim_version('${PV}')};protocol=https;tag=v${PV}"
+SRCREV = "db24a98aed38a16de78cc05ca15cdd8dc2a0d92d"
 
 
 inherit cmake lib_package
#4 lore raw

PATCH 5/10 php: upgrade 8.5.11 -> 8.5.12

In reply to [email protected]

From: Jason Schonberg <[email protected]>

This is a security update. Fixes unauthenticated remote code execution.

CVE-2026-109618 CVE-2026-109619

Advisory: https://www.php.net/archive/2026.php#2026-10-21-5

Changelog: https://www.php.net/ChangeLog-8.php#8.5.12

(cherry picked from commit 898ac0ba1caaefb583cb3785c8c466360fc18f63)
---
 meta-oe/recipes-devtools/php/{php_8.5.11.bb => php_8.5.12.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/php/{php_8.5.11.bb => php_8.5.12.bb} (99%)
meta-oe/recipes-devtools/php/php_8.5.12.bb renamed from meta-oe/recipes-devtools/php/php_8.5.11.bb +1 -1
similarity index 99%
rename from meta-oe/recipes-devtools/php/php_8.5.11.bb
rename to meta-oe/recipes-devtools/php/php_8.5.12.bb
index 831e926880..f9759cf7a5 100644
@@ -32,7 +32,7 @@ UPSTREAM_CHECK_REGEX = "releases/tag/php-(?P<pver>\d+(\.\d+)+)"
 
 S = "${UNPACKDIR}/php-${PV}"
 
-SRC_URI[sha256sum] = "dc940716a8c73e531c0078eecb955d595d321ec2cc9d47149cf0089ea6e18f64"
+SRC_URI[sha256sum] = "ffb60edc437ced63b5137e4984db379a8111c50049c711510d8b958277efc1a8"
 
 CVE_PRODUCT = "php:php php_group:php"
 
#5 lore raw

PATCH 6/10 apache2: upgrade 2.4.68 -> 2.4.69

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://downloads.apache.org/httpd/CHANGES_2.4.69

(cherry picked from commit cf030e73b8e0fa463a81ace8f13c82a9f1281ebe)

Also dropped patch that is part of the upstream version.

---
 ...mod_md-Add-OpenSSL-4.0-compatibility.patch | 47 -------------------
 .../{apache2_2.4.68.bb => apache2_2.4.69.bb}  |  3 +-
 2 files changed, 1 insertion(+), 49 deletions(-)
 delete mode 100644 meta-webserver/recipes-httpd/apache2/apache2/0011-mod_md-Add-OpenSSL-4.0-compatibility.patch
 rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.68.bb => apache2_2.4.69.bb} (98%)
meta-webserver/recipes-httpd/apache2/apache2/0011-mod_md-Add-OpenSSL-4.0-compatibility.patch deleted +0 -47
deleted file mode 100644
index ee127681ec..0000000000
@@ -1,47 +0,0 @@
-From 6cd9ea8dcb5bf68a195e90578c7f05e12eba5468 Mon Sep 17 00:00:00 2001
-From: Rainer Jung <[email protected]>
-Date: Wed, 17 Jun 2026 09:48:52 +0000
-Subject: [PATCH] mod_md: Add OpenSSL 4.0 compatibility
-
-* Use getters instead of direct member access.
-
-* Struct was made opaque in OpenSSL 4. Getters exist since OpenSSL 1.1.0.
-
-* Keep OpenSSL 1.0.2 compatibility.
-
-Merge from icing/md:
-https://github.com/icing/mod_md/commit/9fd90380db0722f0ccc14ff1c4da0ca21d4da75c
-
-Backport of r1935161 from trunk, [mod_md CTR]
-
-
-Upstream-Status: Backport [https://github.com/apache/httpd/commit/6cd9ea8dcb5bf68a195e90578c7f05e12eba5468]
----
-diff --git a/modules/md/md_ocsp.c b/modules/md/md_ocsp.c
-index aee799a7b39..2e7f14dff31 100644
---- a/modules/md/md_ocsp.c
-+++ b/modules/md/md_ocsp.c
-@@ -533,13 +533,23 @@ static const char *certid_summary(const OCSP_CERTID *certid, apr_pool_t *p)
-     serial = issuer = key = "???";
-     OCSP_id_get0_info(&aname_hash, &amd_nid, &akey_hash, &aserial, (OCSP_CERTID*)certid);
-     if (aname_hash) {
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-         data.len = (apr_size_t)aname_hash->length;
-         data.data = (const char*)aname_hash->data;
-+#else
-+        data.len = (apr_size_t)ASN1_STRING_length(aname_hash);
-+        data.data = (const char*)ASN1_STRING_get0_data(aname_hash);
-+#endif
-         md_data_to_hex(&issuer, 0, p, &data);
-     }
-     if (akey_hash) {
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-         data.len = (apr_size_t)akey_hash->length;
-         data.data = (const char*)akey_hash->data;
-+#else
-+        data.len = (apr_size_t)ASN1_STRING_length(akey_hash);
-+        data.data = (const char*)ASN1_STRING_get0_data(akey_hash);
-+#endif
-         md_data_to_hex(&key, 0, p, &data);
-     }
-     if (aserial) {
meta-webserver/recipes-httpd/apache2/apache2_2.4.69.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.68.bb +1 -2
similarity index 98%
rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.68.bb
rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.69.bb
index f178007ab7..fba4667bd1 100644
@@ -16,7 +16,6 @@ SRC_URI = "${APACHE_MIRROR}/httpd/httpd-${PV}.tar.bz2 \
            file://0008-Fix-perl-install-directory-to-usr-bin.patch \
            file://0009-support-apxs.in-force-destdir-to-be-empty-string.patch \
            file://0001-make_exports.awk-not-expose-the-path.patch \
-           file://0011-mod_md-Add-OpenSSL-4.0-compatibility.patch \
           "
 
 SRC_URI:append:class-target = " \
@@ -28,7 +27,7 @@ SRC_URI:append:class-target = " \
            "
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
-SRC_URI[sha256sum] = "68c74d4df38c26bed4dfbdb8f3baf1eb532f3872357becc1bba5d136f6b63c06"
+SRC_URI[sha256sum] = "c5e6ebc66e349b87d7fc6916ae7cc2a808ed348003de134cf9e9d89d3e2cc73d"
 
 S = "${UNPACKDIR}/httpd-${PV}"
 
#6 lore raw

PATCH 7/10 7zip: upgrade 26.03 -> 26.04

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://github.com/ip7z/7zip/releases/tag/26.04

(cherry picked from commit 1c45c216f647175c121e7b7f5fb19c8a042ed99e)
---
 meta-oe/recipes-extended/7zip/{7zip_26.03.bb => 7zip_26.04.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-extended/7zip/{7zip_26.03.bb => 7zip_26.04.bb} (98%)
meta-oe/recipes-extended/7zip/7zip_26.04.bb renamed from meta-oe/recipes-extended/7zip/7zip_26.03.bb +1 -1
similarity index 98%
rename from meta-oe/recipes-extended/7zip/7zip_26.03.bb
rename to meta-oe/recipes-extended/7zip/7zip_26.04.bb
index ca50aed8ea..49437b807d 100644
@@ -12,7 +12,7 @@ SRC_URI = "git://github.com/ip7z/7zip.git;protocol=https;branch=main;tag=${PV} \
            file://0001-Remove-treating-warning-as-errors.patch \
            file://7z_wrapper.sh \
            "
-SRCREV = "0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17"
+SRCREV = "9128b80e3a471108678e2b3ec3c985861c8d7b0f"
 
 UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest"
 
#7 lore raw

PATCH 8/10 7zip: upgrade 26.04 -> 26.05

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://github.com/ip7z/7zip/releases/tag/26.05

(cherry picked from commit 533d0a63ac2a38e77746e32458e09461f12737b6)
---
 meta-oe/recipes-extended/7zip/{7zip_26.04.bb => 7zip_26.05.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-extended/7zip/{7zip_26.04.bb => 7zip_26.05.bb} (98%)
meta-oe/recipes-extended/7zip/7zip_26.05.bb renamed from meta-oe/recipes-extended/7zip/7zip_26.04.bb +1 -1
similarity index 98%
rename from meta-oe/recipes-extended/7zip/7zip_26.04.bb
rename to meta-oe/recipes-extended/7zip/7zip_26.05.bb
index 49437b807d..050673f678 100644
@@ -12,7 +12,7 @@ SRC_URI = "git://github.com/ip7z/7zip.git;protocol=https;branch=main;tag=${PV} \
            file://0001-Remove-treating-warning-as-errors.patch \
            file://7z_wrapper.sh \
            "
-SRCREV = "9128b80e3a471108678e2b3ec3c985861c8d7b0f"
+SRCREV = "b88c6bc09339de32f7d18bbab900686b244f42ba"
 
 UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest"
 
#8 lore raw

PATCH 9/10 python3-brotli: upgrade 1.2.0 -> 1.2.1

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://github.com/google/brotli/blob/v1.2.1/CHANGELOG.md#121---2026-10-21

---
 .../python/{python3-brotli_1.2.0.bb => python3-brotli_1.2.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-brotli_1.2.0.bb => python3-brotli_1.2.1.bb} (81%)
meta-python/recipes-devtools/python/python3-brotli_1.2.1.bb renamed from meta-python/recipes-devtools/python/python3-brotli_1.2.0.bb +1 -1
similarity index 81%
rename from meta-python/recipes-devtools/python/python3-brotli_1.2.0.bb
rename to meta-python/recipes-devtools/python/python3-brotli_1.2.1.bb
index 8e493fd0a0..2c1bf23f64 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=941ee9cd1609382f946352712a319b4b"
 
 CVE_PRODUCT = "brotli"
 
-SRC_URI[sha256sum] = "e310f77e41941c13340a95976fe66a8a95b01e783d430eeaf7a2f87e0a57dd0a"
+SRC_URI[sha256sum] = "02b2f7b5a83485efe448a44ddf7983def05c3bb1dcf917d4f7154070260e13de"
 
 inherit pypi pkgconfig python_setuptools_build_meta
 
#9 lore raw

PATCH 10/10 python3-oauthlib: patch CVE-2026-49265

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-49265

---
 .../python3-oauthlib/CVE-2026-49265.patch     | 51 +++++++++++++++++++
 .../python/python3-oauthlib_3.3.1.bb          |  2 +
 2 files changed, 53 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-oauthlib/CVE-2026-49265.patch
meta-python/recipes-devtools/python/python3-oauthlib/CVE-2026-49265.patch new file +51 -0
new file mode 100644
index 0000000000..8cbc368b6c
@@ -0,0 +1,51 @@
+From f3510969587daff0de06a233cf6be3a6233b3429 Mon Sep 17 00:00:00 2001
+From: Jonathan Huot <[email protected]>
+Date: Sat, 11 Jul 2026 13:15:29 +0200
+Subject: [PATCH] Improve PKCE code comparison
+
+(cherry picked from commit 74664d3fe037a354e180e305135c6bab1747a6b0)
+
+CVE: CVE-2026-49265
+Upstream-Status: Backport [https://github.com/oauthlib/oauthlib/commit/74664d3fe037a354e180e305135c6bab1747a6b0]
+
+Dropped changes to the CHANGELOG file.
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ oauthlib/oauth2/rfc6749/grant_types/authorization_code.py | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py
+index 09dc619..c73314a 100644
+--- a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py
++++ b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py
+@@ -4,6 +4,7 @@ oauthlib.oauth2.rfc6749.grant_types
+ """
+ import base64
+ import hashlib
++import hmac
+ import json
+ import logging
+ 
+@@ -44,9 +45,10 @@ def code_challenge_method_s256(verifier, challenge):
+ 
+     .. _`Section 4.3`: https://tools.ietf.org/html/rfc7636#section-4.3
+     """
+-    return base64.urlsafe_b64encode(
++    expected = base64.urlsafe_b64encode(
+         hashlib.sha256(verifier.encode()).digest()
+-    ).decode().rstrip('=') == challenge
++    ).decode().rstrip('=')
++    return hmac.compare_digest(expected, challenge)
+ 
+ 
+ def code_challenge_method_plain(verifier, challenge):
+@@ -58,7 +60,7 @@ def code_challenge_method_plain(verifier, challenge):
+ 
+     .. _`Section 4.3`: https://tools.ietf.org/html/rfc7636#section-4.3
+     """
+-    return verifier == challenge
++    return hmac.compare_digest(verifier, challenge)
+ 
+ 
+ class AuthorizationCodeGrant(GrantTypeBase):
meta-python/recipes-devtools/python/python3-oauthlib_3.3.1.bb +2 -0
index bdc1f0e7b4..c375b172c7 100644
@@ -4,6 +4,8 @@ HOMEPAGE = "https://github.com/idan/oauthlib"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2699a9fb0d71d5eafd75d8d7c302f7df"
 
+SRC_URI += "file://CVE-2026-49265.patch"
+
 SRC_URI[sha256sum] = "0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9"
 
 CVE_PRODUCT = "oauthlib"