Skip to contentSkip to conversation

libde265: patch CVE-2026-33165

PATCH Superseded [email protected] 1 participant 14 messages Apr 5

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/14 libde265: patch CVE-2026-33165

From: Ankur Tyagi <[email protected]>

Backport the commit mentioned in the NVD

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-33165

---
 .../libde265/libde265/CVE-2026-33165.patch    | 45 +++++++++++++++++++
 .../libde265/libde265_1.0.16.bb               |  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2026-33165.patch
meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2026-33165.patch new file +45 -0
new file mode 100644
index 0000000000..3606c78078
@@ -0,0 +1,45 @@
+From 9e8560a1b01bf066aaada3c19205170d93047766 Mon Sep 17 00:00:00 2001
+From: Dirk Farin <[email protected]>
+Date: Sun, 15 Mar 2026 22:58:39 +0100
+Subject: [PATCH] fix reallocation of metadata array when ctb size changes
+ (thanks to Ana K.)
+
+(cherry picked from commit c7891e412106130b83f8e8ea8b7f907e9449b658)
+
+CVE: CVE-2026-33165
+Upstream-Status: Backport [https://github.com/strukturag/libde265/commit/c7891e412106130b83f8e8ea8b7f907e9449b658]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ libde265/image.cc | 5 +++--
+ libde265/image.h  | 2 +-
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/libde265/image.cc b/libde265/image.cc
+index fdc80fc2..1387f78d 100644
+--- a/libde265/image.cc
++++ b/libde265/image.cc
+@@ -455,8 +455,9 @@ de265_error de265_image::alloc_image(int w,int h, enum de265_chroma c,
+ 
+     // CTB info
+ 
+-    if (ctb_info.width_in_units != sps->PicWidthInCtbsY ||
+-        ctb_info.height_in_units != sps->PicHeightInCtbsY)
++    if (ctb_info.width_in_units  != sps->PicWidthInCtbsY  ||
++        ctb_info.height_in_units != sps->PicHeightInCtbsY ||
++        ctb_info.log2unitSize    != sps->Log2CtbSizeY)
+       {
+         delete[] ctb_progress;
+ 
+diff --git a/libde265/image.h b/libde265/image.h
+index 3779580c..6fc34c71 100644
+--- a/libde265/image.h
++++ b/libde265/image.h
+@@ -149,7 +149,7 @@ template <class DataUnit> class MetaDataArray
+   // private:
+   DataUnit* data;
+   int data_size;
+-  int log2unitSize;
++  uint8_t log2unitSize;
+   int width_in_units;
+   int height_in_units;
+ };
meta-multimedia/recipes-multimedia/libde265/libde265_1.0.16.bb +1 -0
index 2676de5c2e..5024c56831 100644
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=695b556799abb2435c97a113cdca512f"
 
 SRC_URI = "git://github.com/strukturag/libde265.git;branch=master;protocol=https;tag=v${PV} \
            file://CVE-2025-61147.patch \
+           file://CVE-2026-33165.patch \
            "
 SRCREV = "7ba65889d3d6d8a0d99b5360b028243ba843be3a"
 
#1 lore raw

PATCH 2/14 wolfssl: patch CVE-2026-0819

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-0819

---
 .../wolfssl/files/CVE-2026-0819.patch         | 31 +++++++++++++++++++
 .../wolfssl/wolfssl_5.8.0.bb                  |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-0819.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-0819.patch new file +31 -0
new file mode 100644
index 0000000000..0594a8e03f
@@ -0,0 +1,31 @@
+From ce42215d0dd20742b378211671117db4e6f7e729 Mon Sep 17 00:00:00 2001
+From: Reda Chouk <[email protected]>
+Date: Thu, 8 Jan 2026 19:57:24 +0100
+Subject: [PATCH] Increment signedAttribsCount with the right number of
+ attributes it encoded
+
+(cherry picked from commit 9c7b58656541e8d31876d7ccd2cd38140b8ffb79)
+
+CVE: CVE-2026-0819
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/9c7b58656541e8d31876d7ccd2cd38140b8ffb79]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ wolfcrypt/src/pkcs7.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c
+index a8545ba0a..4ba96c90d 100644
+--- a/wolfcrypt/src/pkcs7.c
++++ b/wolfcrypt/src/pkcs7.c
+@@ -2107,6 +2107,11 @@ static int wc_PKCS7_BuildSignedAttributes(wc_PKCS7* pkcs7, ESD* esd,
+ 
+     /* add custom signed attributes if set */
+     if (pkcs7->signedAttribsSz > 0 && pkcs7->signedAttribs != NULL) {
++        word32 availableSpace = MAX_SIGNED_ATTRIBS_SZ - atrIdx;
++
++        if (pkcs7->signedAttribsSz > availableSpace)
++            return BUFFER_E;
++
+         esd->signedAttribsCount += pkcs7->signedAttribsSz;
+         esd->signedAttribsSz += (word32)EncodeAttributes(
+             &esd->signedAttribs[atrIdx], (int)esd->signedAttribsCount,
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
index 78d17630c7..e9be766e67 100644
@@ -27,6 +27,7 @@ SRC_URI = " \
     file://CVE-2025-7394-4.patch \
     file://CVE-2025-7394-5.patch \
     file://CVE-2025-7394-6.patch \
+    file://CVE-2026-0819.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#2 lore raw

PATCH 3/14 wolfssl: patch CVE-2026-2646

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-2646

---
 .../wolfssl/files/CVE-2026-2646-1.patch       | 39 ++++++++++++++
 .../wolfssl/files/CVE-2026-2646-2.patch       | 51 +++++++++++++++++++
 .../wolfssl/wolfssl_5.8.0.bb                  |  2 +
 3 files changed, 92 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-2646-1.patch
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-2646-2.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-2646-1.patch new file +39 -0
new file mode 100644
index 0000000000..65daca16eb
@@ -0,0 +1,39 @@
+From 693e9d5e986ac642090331e5f76cfdfd656e3bbc Mon Sep 17 00:00:00 2001
+From: Reda Chouk <[email protected]>
+Date: Fri, 6 Feb 2026 17:00:42 +0100
+Subject: [PATCH] add missing checks in wolfSSL_d2i_SSL_SESSION
+
+(cherry picked from commit f94eb68ea36aee271e0645812ec3bb038f43098b)
+
+CVE: CVE-2026-2646
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/f94eb68ea36aee271e0645812ec3bb038f43098b]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ src/ssl_sess.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/src/ssl_sess.c b/src/ssl_sess.c
+index c5e0e682a..75680f1bf 100644
+--- a/src/ssl_sess.c
++++ b/src/ssl_sess.c
+@@ -2840,12 +2840,20 @@ WOLFSSL_SESSION* wolfSSL_d2i_SSL_SESSION(WOLFSSL_SESSION** sess,
+         goto end;
+     }
+     s->chain.count = data[idx++];
++    if (s->chain.count > MAX_CHAIN_DEPTH) {
++        ret = BUFFER_ERROR;
++        goto end;
++    }
+     for (j = 0; j < s->chain.count; j++) {
+         if (i - idx < OPAQUE16_LEN) {
+             ret = BUFFER_ERROR;
+             goto end;
+         }
+         ato16(data + idx, &length); idx += OPAQUE16_LEN;
++        if (length > MAX_X509_SIZE) {
++            ret = BUFFER_ERROR;
++            goto end;
++        }
+         s->chain.certs[j].length = length;
+         if (i - idx < length) {
+             ret = BUFFER_ERROR;
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-2646-2.patch new file +51 -0

51 lines not on this page · raw message

meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +2 -0
index e9be766e67..5db019c9cb 100644
@@ -28,6 +28,8 @@ SRC_URI = " \
     file://CVE-2025-7394-5.patch \
     file://CVE-2025-7394-6.patch \
     file://CVE-2026-0819.patch \
+    file://CVE-2026-2646-1.patch \
+    file://CVE-2026-2646-2.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#3 lore raw

PATCH 4/14 wolfssl: ptach CVE-2026-3229

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-3229

---
 .../wolfssl/files/CVE-2026-3229-1.patch       | 104 ++++++++++++++++++
 .../wolfssl/files/CVE-2026-3229-2.patch       |  42 +++++++
 .../wolfssl/files/CVE-2026-3229-3.patch       |  28 +++++
 .../wolfssl/wolfssl_5.8.0.bb                  |   3 +
 4 files changed, 177 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3229-1.patch
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3229-2.patch
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3229-3.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3229-1.patch new file +104 -0
new file mode 100644
index 0000000000..e442028146
@@ -0,0 +1,104 @@
+From 136f9cd0250a6f5d24cdda95118ae4e8eed23dd7 Mon Sep 17 00:00:00 2001
+From: Eric Blankenhorn <[email protected]>
+Date: Tue, 24 Feb 2026 09:27:42 -0600
+Subject: [PATCH] Fix cert chain size issue
+
+(cherry picked from commit 2ae3164c6f2db5fdd9f7a6be344e068cd3264bde)
+
+CVE: CVE-2026-3229
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/2ae3164c6f2db5fdd9f7a6be344e068cd3264bde]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ src/ssl_load.c |  8 +++++++-
+ tests/api.c    | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 59 insertions(+), 1 deletion(-)
+
+diff --git a/src/ssl_load.c b/src/ssl_load.c
+index d803b4093..54e1a3095 100644
+--- a/src/ssl_load.c
++++ b/src/ssl_load.c
+@@ -4773,7 +4773,13 @@ static int wolfssl_add_to_chain(DerBuffer** chain, int weOwn, const byte* cert,
+         /* Get length of previous chain. */
+         len = oldChain->length;
+     }
+-    /* Allocate DER buffer bug enough to hold old and new certificates. */
++    /* Check for integer overflow in size calculation. */
++    if ((len > WOLFSSL_MAX_32BIT - CERT_HEADER_SZ) ||
++            (certSz > WOLFSSL_MAX_32BIT - CERT_HEADER_SZ - len)) {
++        WOLFSSL_MSG("wolfssl_add_to_chain overflow");
++        return 0;
++    }
++    /* Allocate DER buffer big enough to hold old and new certificates. */
+     ret = AllocDer(&newChain, len + CERT_HEADER_SZ + certSz, CERT_TYPE, heap);
+     if (ret != 0) {
+         WOLFSSL_MSG("AllocDer error");
+diff --git a/tests/api.c b/tests/api.c
+index a8449cc71..02da904f2 100644
+--- a/tests/api.c
++++ b/tests/api.c
+@@ -5262,6 +5262,57 @@ static int test_wolfSSL_CTX_add1_chain_cert(void)
+     return EXPECT_RESULT();
+ }
+ 
++/* Test that wolfssl_add_to_chain rejects sizes that would overflow word32.
++ * ZD #21241 */
++static int test_wolfSSL_add_to_chain_overflow(void)
++{
++    EXPECT_DECLS;
++#if !defined(NO_CERTS) && defined(OPENSSL_EXTRA) && \
++    defined(KEEP_OUR_CERT) && !defined(NO_RSA) && !defined(NO_TLS) && \
++    !defined(NO_WOLFSSL_CLIENT) && !defined(NO_FILESYSTEM)
++    WOLFSSL_CTX* ctx = NULL;
++    WOLFSSL_X509* x509 = NULL;
++    DerBuffer* fakeChain = NULL;
++
++    ExpectNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_client_method()));
++
++    /* Load a real cert so ctx->certificate is set (first add goes there). */
++    ExpectNotNull(x509 = wolfSSL_X509_load_certificate_file(
++        "./certs/intermediate/client-int-cert.pem", WOLFSSL_FILETYPE_PEM));
++    ExpectIntEQ(SSL_CTX_add1_chain_cert(ctx, x509), 1);
++    wolfSSL_X509_free(x509);
++    x509 = NULL;
++
++    /* Now ctx->certificate is set, next add goes to certChain via
++     * wolfssl_add_to_chain.  Fake a chain whose length is near UINT32_MAX
++     * so the size calculation (len + CERT_HEADER_SZ + certSz) overflows. */
++    fakeChain = (DerBuffer*)XMALLOC(sizeof(DerBuffer) + 16, ctx->heap,
++        DYNAMIC_TYPE_CERT);
++    ExpectNotNull(fakeChain);
++    if (EXPECT_SUCCESS()) {
++        XMEMSET(fakeChain, 0, sizeof(DerBuffer) + 16);
++        fakeChain->buffer = (byte*)(fakeChain + 1);
++        fakeChain->length = WOLFSSL_MAX_32BIT - 2; /* will overflow with any cert */
++        fakeChain->type = CERT_TYPE;
++        fakeChain->dynType = DYNAMIC_TYPE_CERT;
++        /* Replace the real chain with our fake one. */
++        if (ctx->certChain != NULL) {
++            XFREE(ctx->certChain, ctx->heap, DYNAMIC_TYPE_CERT);
++        }
++        ctx->certChain = fakeChain;
++    }
++
++    /* Try to add another cert - this MUST fail due to overflow guard. */
++    ExpectNotNull(x509 = wolfSSL_X509_load_certificate_file(
++        "./certs/intermediate/ca-int2-cert.pem", WOLFSSL_FILETYPE_PEM));
++    ExpectIntEQ(SSL_CTX_add1_chain_cert(ctx, x509), 0);
++    wolfSSL_X509_free(x509);
++
++    wolfSSL_CTX_free(ctx);
++#endif
++    return EXPECT_RESULT();
++}
++
+ static int test_wolfSSL_CTX_use_certificate_chain_buffer_format(void)
+ {
+     EXPECT_DECLS;
+@@ -67594,6 +67645,7 @@ TEST_CASE testCases[] = {
+     TEST_DECL(test_wolfSSL_CTX_load_verify_buffer_ex),
+     TEST_DECL(test_wolfSSL_CTX_load_verify_chain_buffer_format),
+     TEST_DECL(test_wolfSSL_CTX_add1_chain_cert),
++    TEST_DECL(test_wolfSSL_add_to_chain_overflow),
+     TEST_DECL(test_wolfSSL_CTX_use_certificate_chain_buffer_format),
+     TEST_DECL(test_wolfSSL_CTX_use_certificate_chain_file_format),
+     TEST_DECL(test_wolfSSL_use_certificate_chain_file),
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3229-2.patch new file +42 -0

42 lines not on this page · raw message

meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3229-3.patch new file +28 -0
new file mode 100644
index 0000000000..44c7960d35
@@ -0,0 +1,28 @@
+From a64133c8e0ec3463d9fffc9a2f95c48f3e7be24a Mon Sep 17 00:00:00 2001
+From: Eric Blankenhorn <[email protected]>
+Date: Tue, 24 Feb 2026 12:43:46 -0600
+Subject: [PATCH] Fix issue from review
+
+(cherry picked from commit 5536ecf026151f1cdc80f6908fe8820e798dcd58)
+
+CVE: CVE-2026-3229
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/5536ecf026151f1cdc80f6908fe8820e798dcd58]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ tests/api.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/tests/api.c b/tests/api.c
+index 02da904f2..9dc92e84a 100644
+--- a/tests/api.c
++++ b/tests/api.c
+@@ -5301,6 +5301,9 @@ static int test_wolfSSL_add_to_chain_overflow(void)
+         }
+         ctx->certChain = fakeChain;
+     }
++    else {
++        XFREE(fakeChain, ctx ? ctx->heap : NULL, DYNAMIC_TYPE_CERT);
++    }
+ 
+     /* Try to add another cert - this MUST fail due to overflow guard. */
+     ExpectNotNull(x509 = wolfSSL_X509_load_certificate_file(
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +3 -0
index 5db019c9cb..7c46c01ff0 100644
@@ -30,6 +30,9 @@ SRC_URI = " \
     file://CVE-2026-0819.patch \
     file://CVE-2026-2646-1.patch \
     file://CVE-2026-2646-2.patch \
+    file://CVE-2026-3229-1.patch \
+    file://CVE-2026-3229-2.patch \
+    file://CVE-2026-3229-3.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#4 lore raw

PATCH 5/14 wolfssl: patch CVE-2026-3230

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-3230

---
 .../wolfssl/files/CVE-2026-3230.patch         | 69 +++++++++++++++++++
 .../wolfssl/wolfssl_5.8.0.bb                  |  1 +
 2 files changed, 70 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3230.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3230.patch new file +69 -0
new file mode 100644
index 0000000000..4d03dfdf75
@@ -0,0 +1,69 @@
+From 015a4cec9f19221c79dbbeef3a92cf297d633a65 Mon Sep 17 00:00:00 2001
+From: Juliusz Sosinowicz <[email protected]>
+Date: Mon, 9 Feb 2026 17:14:24 +0100
+Subject: [PATCH] Add check for KeyShare in ServerHello
+
+Fixes ZD21171
+
+CVE: CVE-2026-3230
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/f798a585d9dc57f7c42a90e693d8f0aa8a241e52]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ src/tls.c          | 2 ++
+ src/tls13.c        | 3 ++-
+ tests/api.c        | 2 +-
+ wolfssl/internal.h | 1 +
+ 4 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/src/tls.c b/src/tls.c
+index 4f57ea938..8552e8daf 100644
+--- a/src/tls.c
++++ b/src/tls.c
+@@ -9774,6 +9774,8 @@ int TLSX_KeyShare_Parse(WOLFSSL* ssl, const byte* input, word16 length,
+         if (length < OPAQUE16_LEN)
+             return BUFFER_ERROR;
+ 
++        ssl->options.shSentKeyShare = 1;
++
+         /* The data is the named group the server wants to use. */
+         ato16(input, &group);
+ 
+diff --git a/src/tls13.c b/src/tls13.c
+index 6efe44640..538cde030 100644
+--- a/src/tls13.c
++++ b/src/tls13.c
+@@ -5590,7 +5590,8 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
+     #if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
+             ssl->options.pskNegotiated == 0 &&
+     #endif
+-            ssl->session->namedGroup == 0) {
++            (ssl->session->namedGroup == 0 ||
++             ssl->options.shSentKeyShare == 0)) {
+             return EXT_MISSING;
+         }
+ 
+diff --git a/tests/api.c b/tests/api.c
+index 9dc92e84a..1abb7f836 100644
+--- a/tests/api.c
++++ b/tests/api.c
+@@ -64055,7 +64055,7 @@ static int test_TLSX_CA_NAMES_bad_extension(void)
+ 
+         ExpectIntEQ(wolfSSL_connect(ssl_c), -1);
+ #ifndef WOLFSSL_DISABLE_EARLY_SANITY_CHECKS
+-        ExpectIntEQ(wolfSSL_get_error(ssl_c, -1), WC_NO_ERR_TRACE(OUT_OF_ORDER_E));
++        ExpectIntEQ(wolfSSL_get_error(ssl_c, -1), WC_NO_ERR_TRACE(EXT_MISSING));
+ #else
+         ExpectIntEQ(wolfSSL_get_error(ssl_c, -1), WC_NO_ERR_TRACE(BUFFER_ERROR));
+ #endif
+diff --git a/wolfssl/internal.h b/wolfssl/internal.h
+index dd191fb1a..c89ab5931 100644
+--- a/wolfssl/internal.h
++++ b/wolfssl/internal.h
+@@ -5107,6 +5107,7 @@ struct Options {
+ #if defined(HAVE_DANE)
+     word16            useDANE:1;
+ #endif /* HAVE_DANE */
++    word16            shSentKeyShare:1;   /* SH sent with key share */
+     word16            disableRead:1;
+ #ifdef WOLFSSL_DTLS
+     byte              haveMcast;          /* using multicast ? */
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
index 7c46c01ff0..bec2764ad1 100644
@@ -33,6 +33,7 @@ SRC_URI = " \
     file://CVE-2026-3229-1.patch \
     file://CVE-2026-3229-2.patch \
     file://CVE-2026-3229-3.patch \
+    file://CVE-2026-3230.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#5 lore raw

PATCH 6/14 wolfssl: patch CVE-2026-3547

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-3547

---
 .../wolfssl/files/CVE-2026-3547.patch         | 30 +++++++++++++++++++
 .../wolfssl/wolfssl_5.8.0.bb                  |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3547.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3547.patch new file +30 -0
new file mode 100644
index 0000000000..e7e4f5de53
@@ -0,0 +1,30 @@
+From 2539e3b925481db1da9791ac2a75c98cf8a7c989 Mon Sep 17 00:00:00 2001
+From: Anthony Hu <[email protected]>
+Date: Wed, 4 Mar 2026 07:00:26 -0500
+Subject: [PATCH] Fix for loop exit condition.
+
+size should be length.  s includes offset, so it must be compared against
+length, not size because size is only what is after offset.
+
+(cherry picked from commit 9d3cc6e30c778b124002cc45b7974d718b6649fd)
+
+CVE: CVE-2026-3547
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/9d3cc6e30c778b124002cc45b7974d718b6649fd]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ src/tls.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tls.c b/src/tls.c
+index 8552e8daf..290d4b49d 100644
+--- a/src/tls.c
++++ b/src/tls.c
+@@ -1923,7 +1923,7 @@ static int TLSX_ALPN_ParseAndSet(WOLFSSL *ssl, const byte *input, word16 length,
+         return BUFFER_ERROR;
+ 
+     /* validating length of entries before accepting */
+-    for (s = input + offset; (s - input) < size; s += wlen) {
++    for (s = input + offset; (s - input) < length; s += wlen) {
+         wlen = *s++;
+         if (wlen == 0 || (s + wlen - input) > length)
+             return BUFFER_ERROR;
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
index bec2764ad1..1f5b051d16 100644
@@ -34,6 +34,7 @@ SRC_URI = " \
     file://CVE-2026-3229-2.patch \
     file://CVE-2026-3229-3.patch \
     file://CVE-2026-3230.patch \
+    file://CVE-2026-3547.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#6 lore raw

PATCH 7/14 wolfssl: patch CVE-2026-4159

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-4159

---
 .../wolfssl/files/CVE-2026-4159.patch         | 32 +++++++++++++++++++
 .../wolfssl/wolfssl_5.8.0.bb                  |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-4159.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-4159.patch new file +32 -0
new file mode 100644
index 0000000000..982cbd09af
@@ -0,0 +1,32 @@
+From 4de19e3894e81eeaf3079b1270813d0a2b7fe69c Mon Sep 17 00:00:00 2001
+From: Josh Holtrop <[email protected]>
+Date: Tue, 10 Mar 2026 17:26:28 -0400
+Subject: [PATCH] Avoid one-byte read outside of allocated encrypted content
+ buffer in wc_PKCS7_DecodeEnvelopedData()
+
+(cherry picked from commit d37b51c3cef6897e117364ab8b1a257e52a634c0)
+
+CVE: CVE-2026-4159
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/d37b51c3cef6897e117364ab8b1a257e52a634c0]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ wolfcrypt/src/pkcs7.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c
+index 4ba96c90d..e65ddd493 100644
+--- a/wolfcrypt/src/pkcs7.c
++++ b/wolfcrypt/src/pkcs7.c
+@@ -12853,6 +12853,12 @@ WOLFSSL_API int wc_PKCS7_DecodeEnvelopedData(wc_PKCS7* pkcs7, byte* in,
+             /* use cached content */
+             encryptedContent = pkcs7->cachedEncryptedContent;
+             encryptedContentSz = (int)pkcs7->cachedEncryptedContentSz;
++
++            if (encryptedContentSz <= 0) {
++                ret = BUFFER_E;
++                break;
++            }
++
+             padLen = encryptedContent[encryptedContentSz-1];
+ 
+             /* copy plaintext to output */
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
index 1f5b051d16..992591fb90 100644
@@ -35,6 +35,7 @@ SRC_URI = " \
     file://CVE-2026-3229-3.patch \
     file://CVE-2026-3230.patch \
     file://CVE-2026-3547.patch \
+    file://CVE-2026-4159.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#7 lore raw

PATCH 8/14 wolfssl: patch CVE-2026-4395

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-4395

---
 .../wolfssl/files/CVE-2026-4395.patch         | 31 +++++++++++++++++++
 .../wolfssl/wolfssl_5.8.0.bb                  |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-4395.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-4395.patch new file +31 -0
new file mode 100644
index 0000000000..1289e169c4
@@ -0,0 +1,31 @@
+From 6a60f44e056f55f3cdc9d11384e5a5d5d0b1d628 Mon Sep 17 00:00:00 2001
+From: Kareem <[email protected]>
+Date: Mon, 16 Mar 2026 15:34:18 -0700
+Subject: [PATCH] Check raw pubkey length in wc_ecc_import_x963 before copying
+ to it for KCAPI case.
+
+(cherry picked from commit ddc177b669cff9d3c7e1b51751f9df73062b872a)
+
+CVE: CVE-2026-4395
+Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/ddc177b669cff9d3c7e1b51751f9df73062b872a]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ wolfcrypt/src/ecc.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c
+index 1fd30cfd9..dcef45a1c 100644
+--- a/wolfcrypt/src/ecc.c
++++ b/wolfcrypt/src/ecc.c
+@@ -10784,7 +10784,10 @@ int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
+             XMEMCPY(key->pubkey_raw, (byte*)in, inLen);
+     }
+ #elif defined(WOLFSSL_KCAPI_ECC)
+-    XMEMCPY(key->pubkey_raw, (byte*)in, inLen);
++    if (inLen <= (word32)sizeof(key->pubkey_raw))
++        XMEMCPY(key->pubkey_raw, (byte*)in, inLen);
++    else
++        err = BAD_FUNC_ARG;
+ #endif
+ 
+     if (err == MP_OKAY) {
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
index 992591fb90..a700e8a820 100644
@@ -36,6 +36,7 @@ SRC_URI = " \
     file://CVE-2026-3230.patch \
     file://CVE-2026-3547.patch \
     file://CVE-2026-4159.patch \
+    file://CVE-2026-4395.patch \
 "
 
 SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
#8 lore raw

PATCH 9/14 zabbix: ignore CVE-2026-23919

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

It was fixed since version 7.0.19[1]

[1] https://support.zabbix.com/browse/ZBX-27638

---
 meta-oe/recipes-connectivity/zabbix/zabbix_7.0.19.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-connectivity/zabbix/zabbix_7.0.19.bb +1 -0
index 141342c45b..61f6915ea6 100644
@@ -77,3 +77,4 @@ FILES:${PN} += "${libdir}"
 RDEPENDS:${PN} = "logrotate"
 
 CVE_STATUS[CVE-2026-23925] = "fixed-version: fixed since 7.0.18"
+CVE_STATUS[CVE-2026-23919] = "fixed-version: fixed since 7.0.19"
#9 lore raw

PATCH 10/14 tigervnc: patch CVE-2026-34352

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-34352

---
 .../tigervnc/files/CVE-2026-34352.patch       | 31 +++++++++++++++++++
 .../tigervnc/tigervnc_1.15.0.bb               |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/tigervnc/files/CVE-2026-34352.patch
meta-oe/recipes-graphics/tigervnc/files/CVE-2026-34352.patch new file +31 -0
new file mode 100644
index 0000000000..5e869af886
@@ -0,0 +1,31 @@
+From da8952d2c1ebc3bb89c01c2d0d055017348685c0 Mon Sep 17 00:00:00 2001
+From: Pierre Ossman <[email protected]>
+Date: Tue, 24 Mar 2026 09:52:01 +0100
+Subject: [PATCH] Prevent other users reading x0vncserver screen
+
+Prevent other users from observing the screen, or modifying what is sent
+to the client. Malicious attackers can even crash x0vncserver if they
+time the modifications right.
+
+(cherry picked from commit 0b5cab169d847789efa54459a87659d3fd484393)
+
+CVE: CVE-2026-34352
+Upstream-Status: Backport [https://github.com/TigerVNC/tigervnc/commit/0b5cab169d847789efa54459a87659d3fd484393]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ unix/x0vncserver/Image.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/unix/x0vncserver/Image.cxx b/unix/x0vncserver/Image.cxx
+index bd48c88d..abc421d7 100644
+--- a/unix/x0vncserver/Image.cxx
++++ b/unix/x0vncserver/Image.cxx
+@@ -268,7 +268,7 @@ void ShmImage::Init(int width, int height, const XVisualInfo *vinfo)
+ 
+   shminfo->shmid = shmget(IPC_PRIVATE,
+                           xim->bytes_per_line * xim->height,
+-                          IPC_CREAT|0777);
++                          IPC_CREAT|0600);
+   if (shminfo->shmid == -1) {
+     perror("shmget");
+     vlog.error("shmget() failed (%d bytes requested)",
meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb +1 -0
index 9fb7abf8f3..4f01cd22d0 100644
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.15-branch;protocol=ht
            file://0001-do-not-build-tests-sub-directory.patch \
            file://0002-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch \
            file://0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch \
+           file://CVE-2026-34352.patch \
 "
 
 # Keep sync with xorg-server in oe-core
#10 lore raw

PATCH 11/14 strongswan: patch CVE-2026-25075

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2026-25075

---
 .../strongswan/CVE-2026-25075.patch           | 48 +++++++++++++++++++
 .../strongswan/strongswan_6.0.3.bb            |  4 +-
 2 files changed, 51 insertions(+), 1 deletion(-)
 create mode 100644 meta-networking/recipes-support/strongswan/strongswan/CVE-2026-25075.patch
meta-networking/recipes-support/strongswan/strongswan/CVE-2026-25075.patch new file +48 -0
new file mode 100644
index 0000000000..cd45354523
@@ -0,0 +1,48 @@
+From 5ed074270e74a44cede84357ce791a58d22c4cd8 Mon Sep 17 00:00:00 2001
+From: Tobias Brunner <[email protected]>
+Date: Thu, 5 Mar 2026 12:43:12 +0100
+Subject: [PATCH] eap-ttls: Prevent crash if AVP length header field is invalid
+
+The length field in the AVP header includes the 8 bytes of the header
+itself.  Not checking for that and later subtracting it causes an
+integer underflow that usually triggers a crash when accessing a
+NULL pointer that resulted from the failing chunk_alloc() call because
+of the high value.
+
+The attempted allocations for invalid lengths (0-7) are 0xfffffff8,
+0xfffffffc, or 0x100000000 (0 on 32-bit hosts), so this doesn't result
+in a buffer overflow even if the allocation succeeds.
+
+Fixes: 79f2102cb442 ("implemented server side support for EAP-TTLS")
+Fixes: CVE-2026-25075
+(cherry picked from commit 73aff21077d88de7544e989a9af1485128fc5d6d)
+
+CVE: CVE-2026-25075
+Upstream-Status: Backport [https://github.com/strongswan/strongswan/commit/73aff21077d88de7544e989a9af1485128fc5d6d]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ src/libcharon/plugins/eap_ttls/eap_ttls_avp.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c b/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c
+index 06389f7ca..2983bd021 100644
+--- a/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c
++++ b/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c
+@@ -119,7 +119,7 @@ METHOD(eap_ttls_avp_t, process, status_t,
+ 		chunk_free(&this->input);
+ 		this->inpos = 0;
+ 
+-		if (!success)
++		if (!success || avp_len < AVP_HEADER_LEN)
+ 		{
+ 			DBG1(DBG_IKE, "received invalid AVP header");
+ 			return FAILED;
+@@ -130,7 +130,7 @@ METHOD(eap_ttls_avp_t, process, status_t,
+ 			return FAILED;
+ 		}
+ 		this->process_header = FALSE;
+-		this->data_len = avp_len - 8;
++		this->data_len = avp_len - AVP_HEADER_LEN;
+ 		this->input = chunk_alloc(this->data_len + (4 - avp_len) % 4);
+ 	}
+ 
meta-networking/recipes-support/strongswan/strongswan_6.0.3.bb +3 -1
index 438b5d5331..bf0eb3bc1b 100644
@@ -8,7 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 DEPENDS = "flex-native flex bison-native"
 DEPENDS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', '  tpm2-tss', '', d)}"
 
-SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2"
+SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2 \
+           file://CVE-2026-25075.patch \
+"
 
 SRC_URI[sha256sum] = "288f2111f5c9f6ec85fc08fa835bf39232f5c4044969bb4de7b4335163b1efa9"
 
#11 lore raw

PATCH 12/14 freeipmi: upgrade 1.6.16 -> 1.6.17

In reply to [email protected]

From: Gyorgy Sarvari <[email protected]>

Changes:
o Fix exploitable buffer overflows in the following ipmi-oem commands:
- ipmi-oem dell get-last-post-code
- ipmi-oem supermicro extra-firmware-info
- ipmi-oem wistron read-proprietary-string
o Support --proxy in ipmiconsole.
o Fix mem-leak within libfreeipmi locate api.

(cherry picked from commit 4b4c770ce56d58a0a6eb635f03761499bf7603d3)
---
 .../freeipmi/{freeipmi_1.6.16.bb => freeipmi_1.6.17.bb}         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/freeipmi/{freeipmi_1.6.16.bb => freeipmi_1.6.17.bb} (93%)
meta-oe/recipes-support/freeipmi/freeipmi_1.6.17.bb renamed from meta-oe/recipes-support/freeipmi/freeipmi_1.6.16.bb +1 -1
similarity index 93%
rename from meta-oe/recipes-support/freeipmi/freeipmi_1.6.16.bb
rename to meta-oe/recipes-support/freeipmi/freeipmi_1.6.17.bb
index f5be870b1d..50a1877c0e 100644
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
                     file://COPYING.sunbmc;md5=c03f21cd76ff5caba6b890d1213cbfbb"
 
 SRC_URI = "${GNU_MIRROR}/freeipmi/freeipmi-${PV}.tar.gz"
-SRC_URI[sha256sum] = "5bcef6bb9eb680e49b4a3623579930ace7899f53925b2045fe9f91ad6904111d"
+SRC_URI[sha256sum] = "16783d10faa28847a795cce0bf86deeaa72b8fbe71d1f0dc1101d13a6b501ec1"
 
 DEPENDS = "libgcrypt"
 DEPENDS:append:libc-musl = " argp-standalone"
#12 lore raw

PATCH 13/14 gnome-bluetooth3: Fix RRECOMMENS typo

In reply to [email protected]

From: Michal Sieron <[email protected]>

(cherry picked from commit 4f2cc704e524089bd9184c41879e2cdaa40b86e5)
---
 .../recipes-gnome/gnome-bluetooth/gnome-bluetooth3_3.34.5.bb    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/gnome-bluetooth/gnome-bluetooth3_3.34.5.bb +1 -1
index 1ceff5ffcf..8490e3d161 100644
@@ -34,6 +34,6 @@ do_install:append() {
 FILES:${PN} += "${datadir}/gnome-bluetooth"
 
 # offer alternate bluetooth-sendto
-RRECOMMENS:${PN} += "gnome-bluetooth"
+RRECOMMENDS:${PN} += "gnome-bluetooth"
 
 RDEPENDS:${PN} += "bluez5"
#13 lore raw

PATCH 14/14 gjs: upgrade 1.84.1 -> 1.84.2

In reply to [email protected]

From: Liu Yiding <[email protected]>

Version 1.84.2
--------------

- Closed bugs and merge requests:
* GtkNotebook.pages GListModel is inaccessible from GJS [#686, !992, Philip Chimento]

(cherry picked from commit 3797a82feeff34abd161fe7f2daf88a9fbd05cee)
---
 meta-gnome/recipes-gnome/gjs/{gjs_1.84.1.bb => gjs_1.84.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-gnome/recipes-gnome/gjs/{gjs_1.84.1.bb => gjs_1.84.2.bb} (94%)
meta-gnome/recipes-gnome/gjs/gjs_1.84.2.bb renamed from meta-gnome/recipes-gnome/gjs/gjs_1.84.1.bb +1 -1
similarity index 94%
rename from meta-gnome/recipes-gnome/gjs/gjs_1.84.1.bb
rename to meta-gnome/recipes-gnome/gjs/gjs_1.84.2.bb
index 55bd38c97c..c41fa6e93a 100644
@@ -7,7 +7,7 @@ DEPENDS = "mozjs-128 cairo"
 
 inherit gnomebase gobject-introspection gettext features_check upstream-version-is-even pkgconfig multilib_script
 
-SRC_URI[archive.sha256sum] = "44796b91318dbbe221a13909f00fd872ef92f38c68603e0e3574e46bc6bac32c"
+SRC_URI[archive.sha256sum] = "35142edf345705636300291ec3a7d583f14969ff3fae0ff30f4a95b1e6740166"
 SRC_URI += " \
     file://0001-Support-cross-builds-a-bit-better.patch \
     file://0002-meson.build-Do-not-add-dir-installed-tests-when-inst.patch \