Skip to contentSkip to conversation

libmspack: patch CVE-2026-110602

PATCH New [email protected] 1 participant 2 messages Oct 23

lore
Share & tools
lore
#0 lore raw

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

From: Ankur Tyagi <[email protected]>

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

(cherry picked from commit 94901e4ad41b2d45e1a28e92ceeda8ae74148081)
---
 .../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/2 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

(cherry picked from commit fa5ff1a6995788e231fff5e59901d226ab5ff0e8)
---
 .../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