libgpiod: update to v2.2.3
PATCH 1/24 libgpiod: update to v2.2.3
From: Bartosz Golaszewski <[email protected]>
Bug-fix release addressing a couple problems in gpio-manager and tests.
---
.../libgpiod/{libgpiod_2.2.2.bb => libgpiod_2.2.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-support/libgpiod/{libgpiod_2.2.2.bb => libgpiod_2.2.3.bb} (98%)meta-oe/recipes-support/libgpiod/libgpiod_2.2.3.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_2.2.2.bb +1 -1
@@ -13,7 +13,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:" SRC_URI += "file://gpio-manager.init" -SRC_URI[sha256sum] = "7e3bff0209d75fbca2e9fcff1fd5f07cc58b543e129e08b6d4bb1e4a56cfec0d" +SRC_URI[sha256sum] = "70012b0262e4b90f140431efa841ca89643b02ea6c09f507e23cec664a51b71a" # Enable all project features for ptest PACKAGECONFIG[tests] = " \
PATCH 2/24 libgpiod: update to v2.2.4
From: Bartosz Golaszewski <[email protected]>
Bug-fix release addressing several issues discovered during an AI-augmented security audit. The most severe bug was found in the C extension code of the python bindings - which also get an update - but there were some memory leaks and integer overflow bugs in the core C library as well as in tools and DBus daemon.
Full changelog:
Bug fixes:
- fix buffer over-read bugs when translating uAPI structs to library types
- fix variable and argument types where necessary
- sanitize values returned by the kernel to avoid potential buffer overflows
- fix memory leaks in gpio-tools
- add missing return value checks in gpio-tools
- fix period parsing in gpio-tools
- use correct loop counter in error path in gpio-manager
Improvements:
- make tests work with newer coreutils by removing cases checking tools' behavior on SIGINT which stopped working due to changes in behavior of the timeout tool
Also: drop the patch that's now upstream from the recipe.
---
.../libgpiod/{libgpiod_2.2.3.bb => libgpiod_2.2.4.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-support/libgpiod/{libgpiod_2.2.3.bb => libgpiod_2.2.4.bb} (98%)meta-oe/recipes-support/libgpiod/libgpiod_2.2.4.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_2.2.3.bb +1 -1
@@ -13,7 +13,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:" SRC_URI += "file://gpio-manager.init" -SRC_URI[sha256sum] = "70012b0262e4b90f140431efa841ca89643b02ea6c09f507e23cec664a51b71a" +SRC_URI[sha256sum] = "13207176b0eb9b3e0f02552d5f49f5a6a449343ce47416158bb484d9d3019592" # Enable all project features for ptest PACKAGECONFIG[tests] = " \
PATCH 3/24 xdg-dbus-proxy: upgrade 0.1.6 -> 0.1.7
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Contains fix for CVE-2026-34080. Since it is tracked without version info by NVD, mark it explicitily as patched.
Drop the patch that is included in this release.
While here, also add the recipe to the ptest list - it's a fast one, runs under a second.
Changelog:
- Drop the autotools build system
- Unbreak the CI
- Prevent a crash on disconnect
- Fix building with glibc >= 2.43
- Fix the eavesdrop filtering to prevent message interception
---
.../{xdg-dbus-proxy_0.1.6.bb => xdg-dbus-proxy_0.1.7.bb} | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/xdg-dbus-proxy/{xdg-dbus-proxy_0.1.6.bb => xdg-dbus-proxy_0.1.7.bb} (75%)meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.7.bb renamed from meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb +4 -2
@@ -11,8 +11,10 @@ DEPENDS = " \ inherit meson pkgconfig -SRC_URI = "git://github.com/flatpak/xdg-dbus-proxy.git;protocol=https;branch=main" +SRC_URI = "git://github.com/flatpak/xdg-dbus-proxy.git;protocol=https;branch=main;tag=${PV}" -SRCREV = "1c1989e56f94b9eb3b7567f8a6e8a0aa16cba496" +SRCREV = "6a170fa77e3cbecb48f9dd2478fe5c0a119eb467" + +CVE_STATUS[CVE-2026-34080] = "fixed-version: fixed in 0.1.7" BBCLASSEXTEND = "native"
PATCH 4/24 corosync: patch CVE-2026-35091
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-35091
Pick the patch that mentions the CVE ID explicitly (it was identified by Debian also as the fix[1])
[1]: https://security-tracker.debian.org/tracker/CVE-2026-35091
--- .../corosync/corosync/CVE-2026-35091.patch | 47 +++++++++++++++++++ .../corosync/corosync_3.1.10.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta-networking/recipes-extended/corosync/corosync/CVE-2026-35091.patch
meta-networking/recipes-extended/corosync/corosync/CVE-2026-35091.patch new file +47 -0
@@ -0,0 +1,47 @@ +From b9cb461121c8721c94a94309eb345a3c2f9ee9b4 Mon Sep 17 00:00:00 2001 +From: Jan Friesse <[email protected]> +Date: Thu, 2 Apr 2026 09:00:39 +0200 +Subject: [PATCH] totemsrp: Return error if sanity check fails +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Previously, the check_memb_commit_token_sanity function correctly +checked the minimum message length. However, if the message was too +short, it incorrectly returned a success code (0) instead of the +expected failure code (-1). + +This commit ensures the appropriate error code is returned when the +message length sanity check fails. + +Fixes: CVE-2026-35091 + +Reported-by: Sebastián Alba Vives (@Sebasteuo / 0xS4bb1) <[email protected]> +Signed-off-by: Jan Friesse <[email protected]> +Also-proposed-by: nicholasyang <[email protected]> +Reviewed-by: Christine Caulfield <[email protected]> + +CVE: CVE-2026-35091 +Upstream-Status: Backport [https://github.com/corosync/corosync/commit/a16614accfdb3481264d7281843fadf439d9ab1b] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + exec/totemsrp.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/exec/totemsrp.c b/exec/totemsrp.c +index 35bf971..94d6c21 100644 +--- a/exec/totemsrp.c ++++ b/exec/totemsrp.c +@@ -3811,10 +3811,10 @@ static int check_memb_commit_token_sanity( + log_printf (instance->totemsrp_log_level_security, + "Received memb_commit_token message is too short... ignoring."); + +- return (0); ++ return (-1); + } + +- addr_entries= mct_msg->addr_entries; ++ addr_entries = mct_msg->addr_entries; + if (endian_conversion_needed) { + addr_entries = swab32(addr_entries); + }
meta-networking/recipes-extended/corosync/corosync_3.1.10.bb +1 -0
@@ -9,6 +9,7 @@ inherit autotools pkgconfig systemd github-releases SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \ file://corosync.conf \ + file://CVE-2026-35091.patch \ " SRC_URI[sha256sum] = "be361c827f99b215b3bd3fa2fb071c03dac6831c2a351963d938caef62604bc8" UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
PATCH 5/24 corosync: patch CVE-2026-35092
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-35092
Pick the patch that mentions the CVE ID explicitly (the same commit was identified by Debian also[1])
[1]: https://security-tracker.debian.org/tracker/CVE-2026-35092
--- .../corosync/corosync/CVE-2026-35092.patch | 57 +++++++++++++++++++ .../corosync/corosync_3.1.10.bb | 1 + 2 files changed, 58 insertions(+) create mode 100644 meta-networking/recipes-extended/corosync/corosync/CVE-2026-35092.patch
meta-networking/recipes-extended/corosync/corosync/CVE-2026-35092.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 8f8a4747a0223b8897deda9a40a8a099c61fa80f Mon Sep 17 00:00:00 2001 +From: Jan Friesse <[email protected]> +Date: Thu, 2 Apr 2026 09:44:06 +0200 +Subject: [PATCH] totemsrp: Fix integer overflow in memb_join_sanity +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This commit addresses an integer overflow (wraparound) vulnerability +in the check_memb_join_sanity function. + +Previously, the 32-bit unsigned network values proc_list_entries and +failed_list_entries were added together before being promoted to +size_t. This allowed the addition to wrap around in 32-bit arithmetic +(e.g., 0x80000000 + 0x80000000 = 0), resulting in a required_len +calculation that was incorrectly small. + +The solution is to cast the list entries to size_t and verify that +neither exceeds the maximum allowed value before the addition occurs. + +Fixes: CVE-2026-35092 + +Reported-by: Sebastián Alba Vives (@Sebasteuo / 0xS4bb1) <[email protected]> +Signed-off-by: Jan Friesse <[email protected]> +Also-proposed-by: nicholasyang <[email protected]> +Reviewed-by: Christine Caulfield <[email protected]> + +CVE: CVE-2026-35092 +Upstream-Status: Backport [https://github.com/corosync/corosync/commit/4082294f5094a7591e4e00658c5a605f05d644f1] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + exec/totemsrp.c | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/exec/totemsrp.c b/exec/totemsrp.c +index 94d6c21..6845cec 100644 +--- a/exec/totemsrp.c ++++ b/exec/totemsrp.c +@@ -3786,7 +3786,17 @@ static int check_memb_join_sanity( + failed_list_entries = swab32(failed_list_entries); + } + +- required_len = sizeof(struct memb_join) + ((proc_list_entries + failed_list_entries) * sizeof(struct srp_addr)); ++ if (proc_list_entries > PROCESSOR_COUNT_MAX || ++ failed_list_entries > PROCESSOR_COUNT_MAX) { ++ log_printf (instance->totemsrp_log_level_security, ++ "Received memb_join message list_entries exceeds the maximum " ++ "allowed value... ignoring."); ++ ++ return (-1); ++ } ++ ++ required_len = sizeof(struct memb_join) + ++ (((size_t)proc_list_entries + (size_t)failed_list_entries) * sizeof(struct srp_addr)); + if (msg_len < required_len) { + log_printf (instance->totemsrp_log_level_security, + "Received memb_join message is too short... ignoring.");
meta-networking/recipes-extended/corosync/corosync_3.1.10.bb +1 -0
@@ -10,6 +10,7 @@ inherit autotools pkgconfig systemd github-releases SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \ file://corosync.conf \ file://CVE-2026-35091.patch \ + file://CVE-2026-35092.patch \ " SRC_URI[sha256sum] = "be361c827f99b215b3bd3fa2fb071c03dac6831c2a351963d938caef62604bc8" UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
PATCH 6/24 monkey: fix QA issue
In reply to [email protected]From: Ankur Tyagi <[email protected]>
--- meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb +4 -0
@@ -51,6 +51,10 @@ do_install:append() { if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then install -Dm 644 ${UNPACKDIR}/monkey.service ${D}/${systemd_unitdir}/system/monkey.service fi + + # QA Issue: monkey installs files in /var/volatile, but it is expected to be empty [empty-dirs] + # these folders are supposed to be recreated at runtime + find ${D}/var -type d -empty -delete } INITSCRIPT_NAME = "monkey"
PATCH 7/24 monkey: patch CVEs
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
These patches are about a number of CVEs files against the application:
CVE-2025-63649, CVE-2025-63650, CVE-2025-63651, CVE-2025-63652, CVE-2025-63653, CVE-2025-63655, CVE-2025-63656, CVE-2025-63657 and CVE-2025-63658.
These patches are taken from a pull request[1] that is referenced in the relevant bug report[2]. The patches don't target specific CVEs on separately, but they fix a number of CVEs altogether.
Based on upstream analysis (in the linked issue) a number of these CVEs are duplicates of each other and/or not exploitable. The valid CVEs are fixed by these patches.
I haven't added specific CVE info to the patches, one hand because of the above, it is hard to separate the patches by CVE, and secondarily because NVD tracks these CVEs with incorrect version
info: NVD considers 1.8.6 fully fixed, even though the patches are only in the master branch, untagged at this time. After updating the recipe to 1.8.6+, the vulnerabilites will disappear from the CVE report due to this.
[1]: https://github.com/monkey/monkey/pull/434
[2]: https://github.com/monkey/monkey/issues/426
--- ...tp-fix-malformed-request-crash-paths.patch | 160 ++++++++++++++++++ ...eduler-guard-protocol-close-callback.patch | 51 ++++++ ...server-parser-harden-boundary-checks.patch | 108 ++++++++++++ .../recipes-httpd/monkey/monkey_1.8.4.bb | 6 +- 4 files changed, 324 insertions(+), 1 deletion(-) create mode 100644 meta-webserver/recipes-httpd/monkey/files/0001-server-http-fix-malformed-request-crash-paths.patch create mode 100644 meta-webserver/recipes-httpd/monkey/files/0002-server-scheduler-guard-protocol-close-callback.patch create mode 100644 meta-webserver/recipes-httpd/monkey/files/0003-server-parser-harden-boundary-checks.patch
meta-webserver/recipes-httpd/monkey/files/0001-server-http-fix-malformed-request-crash-paths.patch new file +160 -0
@@ -0,0 +1,160 @@ +From 839620179e2b4e5982c53d8956d92e690d82960c Mon Sep 17 00:00:00 2001 +From: Eduardo Silva <[email protected]> +Date: Thu, 9 Apr 2026 12:11:52 -0600 +Subject: [PATCH] server: http: fix malformed request crash paths + +Fix the reproducible malformed-request crash paths in the HTTP +request lifecycle. + +Handle missing Host data in directory redirects, reject malformed +range delimiters before substring parsing, and avoid reusing invalid +request state while advancing pipelined requests. + +Verified by rebuilding with cmake --build build and replaying the +reported crash-inducing request fixtures against build/bin/monkey. + +Signed-off-by: Eduardo Silva <[email protected]> + +This patch is part of https://github.com/monkey/monkey/pull/434, +containing assorted CVE fixes. + +Upstream-Status: Backport [https://github.com/monkey/monkey/commit/1570f41231888ae8c7fbd719704e2486a952e45d] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + mk_core/mk_memory.c | 10 ++++++++++ + mk_server/mk_http.c | 46 +++++++++++++++++++++++++++++++++++++++++---- + 2 files changed, 52 insertions(+), 4 deletions(-) + +diff --git a/mk_core/mk_memory.c b/mk_core/mk_memory.c +index c4073e23..008f7ac6 100644 +--- a/mk_core/mk_memory.c ++++ b/mk_core/mk_memory.c +@@ -52,6 +52,16 @@ char *mk_ptr_to_buf(mk_ptr_t p) + { + char *buf; + ++ if (!p.data || p.len == 0) { ++ buf = mk_mem_alloc(1); ++ if (!buf) { ++ return NULL; ++ } ++ ++ buf[0] = '\0'; ++ return buf; ++ } ++ + buf = mk_mem_alloc(p.len + 1); + if (!buf) return NULL; + +diff --git a/mk_server/mk_http.c b/mk_server/mk_http.c +index ad12a74a..f2f12554 100644 +--- a/mk_server/mk_http.c ++++ b/mk_server/mk_http.c +@@ -457,6 +457,10 @@ static int mk_http_range_parse(struct mk_http_request *sr) + if ((sep_pos = mk_string_char_search(sr->range.data, '-', sr->range.len)) < 0) + return -1; + ++ if (sep_pos < eq_pos) { ++ return -1; ++ } ++ + len = sr->range.len; + sh = &sr->headers; + +@@ -476,10 +480,16 @@ static int mk_http_range_parse(struct mk_http_request *sr) + /* =yyy-xxx */ + if ((eq_pos + 1 != sep_pos) && (len > sep_pos + 1)) { + buffer = mk_string_copy_substr(sr->range.data, eq_pos + 1, sep_pos); ++ if (!buffer) { ++ return -1; ++ } + sh->ranges[0] = (unsigned long) atol(buffer); + mk_mem_free(buffer); + + buffer = mk_string_copy_substr(sr->range.data, sep_pos + 1, len); ++ if (!buffer) { ++ return -1; ++ } + sh->ranges[1] = (unsigned long) atol(buffer); + mk_mem_free(buffer); + +@@ -493,6 +503,9 @@ static int mk_http_range_parse(struct mk_http_request *sr) + /* =yyy- */ + if ((eq_pos + 1 != sep_pos) && (len == sep_pos + 1)) { + buffer = mk_string_copy_substr(sr->range.data, eq_pos + 1, len); ++ if (!buffer) { ++ return -1; ++ } + sr->headers.ranges[0] = (unsigned long) atol(buffer); + mk_mem_free(buffer); + +@@ -522,7 +535,16 @@ static int mk_http_directory_redirect_check(struct mk_http_session *cs, + return 0; + } + ++ if (!sr->host.data || sr->host.len <= 0) { ++ mk_http_error(MK_CLIENT_BAD_REQUEST, cs, sr, server); ++ return -1; ++ } ++ + host = mk_ptr_to_buf(sr->host); ++ if (!host) { ++ mk_http_error(MK_CLIENT_BAD_REQUEST, cs, sr, server); ++ return -1; ++ } + + /* + * Add ending slash to the location string +@@ -588,6 +610,9 @@ static inline char *mk_http_index_lookup(mk_ptr_t *path_base, + } + + off = path_base->len; ++ if ((size_t) off >= buf_size) { ++ return NULL; ++ } + memcpy(buf, path_base->data, off); + + mk_list_foreach(head, server->index_files) { +@@ -1138,15 +1163,27 @@ int mk_http_request_end(struct mk_http_session *cs, struct mk_server *server) + ret = mk_http_parser_more(&cs->parser, cs->body_length); + if (ret == MK_TRUE) { + /* Our pipeline request limit is the same that our keepalive limit */ ++ if (cs->parser.i < 0 || ++ (unsigned int) (cs->parser.i + 1) >= cs->body_length) { ++ goto shutdown; ++ } ++ + cs->counter_connections++; + len = (cs->body_length - cs->parser.i) -1; ++ if (len <= 0) { ++ goto shutdown; ++ } + memmove(cs->body, + cs->body + cs->parser.i + 1, + len); + cs->body_length = len; + + /* Prepare for next one */ +- sr = mk_list_entry_first(&cs->request_list, struct mk_http_request, _head); ++ if (mk_list_is_empty(&cs->request_list) == 0) { ++ cs->close_now = MK_TRUE; ++ goto shutdown; ++ } ++ sr = &cs->sr_fixed; + mk_http_request_free(sr, server); + mk_http_request_init(cs, sr, server); + mk_http_parser_init(&cs->parser); +@@ -1626,9 +1663,10 @@ int mk_http_sched_done(struct mk_sched_conn *conn, + struct mk_http_request *sr; + + session = mk_http_session_get(conn); +- sr = mk_list_entry_first(&session->request_list, +- struct mk_http_request, _head); +- mk_plugin_stage_run_40(session, sr, server); ++ if (mk_list_is_empty(&session->request_list) != 0) { ++ sr = &session->sr_fixed; ++ mk_plugin_stage_run_40(session, sr, server); ++ } + + return mk_http_request_end(session, server); + }
meta-webserver/recipes-httpd/monkey/files/0002-server-scheduler-guard-protocol-close-callback.patch new file +51 -0
51 lines not on this page · raw message
meta-webserver/recipes-httpd/monkey/files/0003-server-parser-harden-boundary-checks.patch new file +108 -0
108 lines not on this page · raw message
meta-webserver/recipes-httpd/monkey/monkey_1.8.4.bb +5 -1
@@ -11,7 +11,11 @@ SRC_URI = "git://github.com/monkey/monkey;branch=master;protocol=https \ file://0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch \ file://0001-include-Fix-location-of-mk_core.h-etal.patch \ file://monkey.service \ - file://monkey.init" + file://monkey.init \ + file://0001-server-http-fix-malformed-request-crash-paths.patch \ + file://0002-server-scheduler-guard-protocol-close-callback.patch \ + file://0003-server-parser-harden-boundary-checks.patch \ + " SRCREV = "94af273244369e1a8426d0d1f6376475aff90db9"
PATCH 8/24 python3-ecdsa: Upgrade 0.19.1 -> 0.19.2
In reply to [email protected]From: Mingli Yu <[email protected]>
Changlog:
https://github.com/tlsfuzzer/python-ecdsa/releases/tag/python-ecdsa-0.19.2
---
.../python/{python3-ecdsa_0.19.1.bb => python3-ecdsa_0.19.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-ecdsa_0.19.1.bb => python3-ecdsa_0.19.2.bb} (87%)meta-python/recipes-devtools/python/python3-ecdsa_0.19.2.bb renamed from meta-python/recipes-devtools/python/python3-ecdsa_0.19.1.bb +1 -1
@@ -4,7 +4,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=66ffc5e30f76cbb5358fe54b645e5a1d" PYPI_PACKAGE = "ecdsa" -SRC_URI[sha256sum] = "478cba7b62555866fcb3bb3fe985e06decbdb68ef55713c4e5ab98c57d508e61" +SRC_URI[sha256sum] = "62635b0ac1ca2e027f82122b5b81cb706edc38cd91c63dda28e4f3455a2bf930" inherit pypi setuptools3 python3native ptest-python-pytest
PATCH 9/24 python3-werkzeug: upgrade 3.1.6 -> 3.1.7
In reply to [email protected]From: Wang Mingyu <[email protected]>
Changelog:
==========
- parse_list_header preserves partially quoted items, discards empty items, and returns empty for unclosed quoted values.
- WWWAuthenticate.to_header does not produce a trailing space when there are no parameters.
- Transfer-Encoding is parsed as a set.
- Request.host, get_host, and host_is_trusted validate the characters of the value. An empty value is no longer allowed. A Unix socket server address is ignored. The trusted_list argument to host_is_trusted is optional.
- Fix multipart form parser handling of newline at boundary.
- Response.make_conditional sets the Accept-Ranges header even if it is not a satisfiable range request.
- merge_slashes merges any number of consecutive slashes.
---
.../{python3-werkzeug_3.1.6.bb => python3-werkzeug_3.1.7.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-werkzeug_3.1.6.bb => python3-werkzeug_3.1.7.bb} (90%)meta-python/recipes-devtools/python/python3-werkzeug_3.1.7.bb renamed from meta-python/recipes-devtools/python/python3-werkzeug_3.1.6.bb +1 -1
@@ -10,7 +10,7 @@ HOMEPAGE = "https://werkzeug.palletsprojects.com" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5dc88300786f1c214c1e9827a5229462" -SRC_URI[sha256sum] = "210c6bede5a420a913956b4791a7f4d6843a43b6fcee4dfa08a65e93007d0d25" +SRC_URI[sha256sum] = "fb8c01fe6ab13b9b7cdb46892b99b1d66754e1d7ab8e542e865ec13f526b5351" inherit pypi python_flit_core
PATCH 10/24 python3-werkzeug: upgrade 3.1.7 -> 3.1.8
In reply to [email protected]From: Wang Mingyu <[email protected]>
Request.host and get_host return the empty string if the header is missing or has invalid characters.
---
.../{python3-werkzeug_3.1.7.bb => python3-werkzeug_3.1.8.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-werkzeug_3.1.7.bb => python3-werkzeug_3.1.8.bb} (90%)meta-python/recipes-devtools/python/python3-werkzeug_3.1.8.bb renamed from meta-python/recipes-devtools/python/python3-werkzeug_3.1.7.bb +1 -1
@@ -10,7 +10,7 @@ HOMEPAGE = "https://werkzeug.palletsprojects.com" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5dc88300786f1c214c1e9827a5229462" -SRC_URI[sha256sum] = "fb8c01fe6ab13b9b7cdb46892b99b1d66754e1d7ab8e542e865ec13f526b5351" +SRC_URI[sha256sum] = "9bad61a4268dac112f1c5cd4630a56ede601b6ed420300677a869083d70a4c44" inherit pypi python_flit_core
PATCH 11/24 python3-tzdata: upgrade 2025.2 -> 2025.3
In reply to [email protected]From: Wang Mingyu <[email protected]>
---
.../{python3-tzdata_2025.2.bb => python3-tzdata_2025.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-tzdata_2025.2.bb => python3-tzdata_2025.3.bb} (85%)meta-python/recipes-devtools/python/python3-tzdata_2025.3.bb renamed from meta-python/recipes-devtools/python/python3-tzdata_2025.2.bb +1 -1
@@ -4,7 +4,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=fca9fd5c15a28eb874ba38577a585d48 \ file://licenses/LICENSE_APACHE;md5=86d3f3a95c324c9479bd8986968f4327" -SRC_URI[sha256sum] = "b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9" +SRC_URI[sha256sum] = "de39c2ca5dc7b0344f2eba86f49d614019d29f060fc4ebc8a417896a620b56a7" inherit pypi python_setuptools_build_meta ptest-python-pytest
PATCH 12/24 python3-tzdata: upgrade 2025.3 -> 2026.1
In reply to [email protected]From: Wang Mingyu <[email protected]>
---
.../{python3-tzdata_2025.3.bb => python3-tzdata_2026.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-tzdata_2025.3.bb => python3-tzdata_2026.1.bb} (85%)meta-python/recipes-devtools/python/python3-tzdata_2026.1.bb renamed from meta-python/recipes-devtools/python/python3-tzdata_2025.3.bb +1 -1
@@ -4,7 +4,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=fca9fd5c15a28eb874ba38577a585d48 \ file://licenses/LICENSE_APACHE;md5=86d3f3a95c324c9479bd8986968f4327" -SRC_URI[sha256sum] = "de39c2ca5dc7b0344f2eba86f49d614019d29f060fc4ebc8a417896a620b56a7" +SRC_URI[sha256sum] = "67658a1903c75917309e753fdc349ac0efd8c27db7a0cb406a25be4840f87f98" inherit pypi python_setuptools_build_meta ptest-python-pytest
PATCH 13/24 python3-bitarray: upgrade 3.8.0 -> 3.8.1
In reply to [email protected]From: Wang Mingyu <[email protected]>
Changelog:
==========
* fixed critial findings in C Extension Analysis Report
* add tests, in particular 'devel/test_capi.py'
---
.../{python3-bitarray_3.8.0.bb => python3-bitarray_3.8.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-bitarray_3.8.0.bb => python3-bitarray_3.8.1.bb} (81%)meta-python/recipes-devtools/python/python3-bitarray_3.8.1.bb renamed from meta-python/recipes-devtools/python/python3-bitarray_3.8.0.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray" LICENSE = "PSF-2.0" LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=6abe80c028e4ee53045a33ae807c64fd" -SRC_URI[sha256sum] = "3eae38daffd77c9621ae80c16932eea3fb3a4af141fb7cc724d4ad93eff9210d" +SRC_URI[sha256sum] = "f90bb3c680804ec9630bcf8c0965e54b4de84d33b17d7da57c87c30f0c64c6f5" inherit python_setuptools_build_meta pypi
PATCH 14/24 python3-gpiod: update to v2.4.2
In reply to [email protected]From: Bartosz Golaszewski <[email protected]>
Bug-fix release addressing a buffer overflow bug discovered during an AI-augmented security audit as well as another minor issue with unnecessarily duplicated code.
---
.../python/{python3-gpiod_2.4.1.bb => python3-gpiod_2.4.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-gpiod_2.4.1.bb => python3-gpiod_2.4.2.bb} (92%)meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb renamed from meta-python/recipes-devtools/python/python3-gpiod_2.4.1.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4b54a1fd55a448865a0b32d41598759d" SRC_URI += "file://run-ptest" -SRC_URI[sha256sum] = "d29a1e8b2a065f7ed82f00a96009bc1486fc705bb2ad25820a8ae962ec6d7688" +SRC_URI[sha256sum] = "602aae17ff365bb8e2a30ce65c6bbf2d8e7a7e64bf016e82e4fd4c730ef69ab7" inherit python_setuptools_build_meta python_pep517 ptest pypi
PATCH 15/24 python3-django: upgrade 5.2.12 -> 5.2.13
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Contains fixes for CVE-2026-3902, CVE-2026-4277, CVE-2026-4292, CVE-2026-33033 and CVE-2026-33034.
Changelog: https://docs.djangoproject.com/en/6.0/releases/5.2.13/
---
.../{python3-django_5.2.12.bb => python3-django_5.2.13.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-django_5.2.12.bb => python3-django_5.2.13.bb} (60%)meta-python/recipes-devtools/python/python3-django_5.2.13.bb renamed from meta-python/recipes-devtools/python/python3-django_5.2.12.bb +1 -1
@@ -1,7 +1,7 @@ require python3-django.inc inherit python_setuptools_build_meta -SRC_URI[sha256sum] = "6b809af7165c73eff5ce1c87fdae75d4da6520d6667f86401ecf55b681eb1eeb" +SRC_URI[sha256sum] = "a31589db5188d074c63f0945c3888fad104627dfcc236fb2b97f71f89da33bc4" RDEPENDS:${PN} += "\ python3-sqlparse \
PATCH 16/24 python3-django: upgrade 4.2.29 -> 4.2.30
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Release Notes:
https://docs.djangoproject.com/en/dev/releases/4.2.30/
---
.../{python3-django_4.2.29.bb => python3-django_4.2.30.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-django_4.2.29.bb => python3-django_4.2.30.bb} (79%)meta-python/recipes-devtools/python/python3-django_4.2.30.bb renamed from meta-python/recipes-devtools/python/python3-django_4.2.29.bb +1 -1
@@ -1,7 +1,7 @@ require python3-django.inc inherit python_setuptools_build_meta -SRC_URI[sha256sum] = "86d91bc8086569c8d08f9c55888b583a921ac1f95ed3bdc7d5659d4709542014" +SRC_URI[sha256sum] = "4ebc7a434e3819db6cf4b399fb5b3f536310a30e8486f08b66886840be84b37c" RDEPENDS:${PN} += "\ python3-sqlparse \
PATCH 17/24 wolfssl: patch CVE-2026-1005
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/9571
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-1005
--- .../wolfssl/files/CVE-2026-1005.patch | 83 +++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 1 + 2 files changed, 84 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-1005.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-1005.patch new file +83 -0
@@ -0,0 +1,83 @@ +From dfd0c1c7e151e8995b037cd3a56c9ee6e5e44b1c Mon Sep 17 00:00:00 2001 +From: Mattia Moffa <[email protected]> +Date: Mon, 22 Dec 2025 16:13:27 +0100 +Subject: [PATCH] Add missing length check in sniffer for + AES-GCM/AES-CCM/ARIA-GCM + +(cherry picked from commit ca7899429844e8bd3824fe92a709978b51f750c4) + +CVE: CVE-2026-1005 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/ca7899429844e8bd3824fe92a709978b51f750c4] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/sniffer.c | 49 +++++++++++++++++++++++++++++++------------------ + 1 file changed, 31 insertions(+), 18 deletions(-) + +diff --git a/src/sniffer.c b/src/sniffer.c +index 4d0c8e1ca..a9bf12035 100644 +--- a/src/sniffer.c ++++ b/src/sniffer.c +@@ -4810,18 +4810,25 @@ static int DecryptDo(WOLFSSL* ssl, byte* plain, const byte* input, + XMEMCPY(ssl->decrypt.nonce, ssl->keys.aead_dec_imp_IV, AESGCM_IMP_IV_SZ); + XMEMCPY(ssl->decrypt.nonce + AESGCM_IMP_IV_SZ, input, AESGCM_EXP_IV_SZ); + +- if ((ret = aes_auth_fn(ssl->decrypt.aes, +- plain, +- input + AESGCM_EXP_IV_SZ, +- sz - AESGCM_EXP_IV_SZ - ssl->specs.aead_mac_size, +- ssl->decrypt.nonce, AESGCM_NONCE_SZ, +- ssl->decrypt.additional, AEAD_AUTH_DATA_SZ, +- NULL, 0)) < 0) { +- #ifdef WOLFSSL_ASYNC_CRYPT +- if (ret == WC_NO_ERR_TRACE(WC_PENDING_E)) { +- ret = wolfSSL_AsyncPush(ssl, &ssl->decrypt.aes->asyncDev); ++ if (sz < AESGCM_EXP_IV_SZ + ssl->specs.aead_mac_size) { ++ ret = BUFFER_ERROR; ++ } ++ ++ if (ret == 0) { ++ ret = aes_auth_fn(ssl->decrypt.aes, ++ plain, ++ input + AESGCM_EXP_IV_SZ, ++ sz - AESGCM_EXP_IV_SZ - ssl->specs.aead_mac_size, ++ ssl->decrypt.nonce, AESGCM_NONCE_SZ, ++ ssl->decrypt.additional, AEAD_AUTH_DATA_SZ, ++ NULL, 0); ++ if (ret < 0) { ++ #ifdef WOLFSSL_ASYNC_CRYPT ++ if (ret == WC_NO_ERR_TRACE(WC_PENDING_E)) { ++ ret = wolfSSL_AsyncPush(ssl, &ssl->decrypt.aes->asyncDev); ++ } ++ #endif + } +- #endif + } + } + break; +@@ -4829,13 +4836,19 @@ static int DecryptDo(WOLFSSL* ssl, byte* plain, const byte* input, + + #ifdef HAVE_ARIA + case wolfssl_aria_gcm: +- ret = wc_AriaDecrypt(ssl->decrypt.aria, +- plain, +- (byte *)input + AESGCM_EXP_IV_SZ, +- sz - AESGCM_EXP_IV_SZ - ssl->specs.aead_mac_size, +- ssl->decrypt.nonce, AESGCM_NONCE_SZ, +- ssl->decrypt.additional, ssl->specs.aead_mac_size, +- NULL, 0); ++ if (sz < AESGCM_EXP_IV_SZ + ssl->specs.aead_mac_size) { ++ ret = BUFFER_ERROR; ++ } ++ ++ if (ret == 0) { ++ ret = wc_AriaDecrypt(ssl->decrypt.aria, ++ plain, ++ (byte *)input + AESGCM_EXP_IV_SZ, ++ sz - AESGCM_EXP_IV_SZ - ssl->specs.aead_mac_size, ++ ssl->decrypt.nonce, AESGCM_NONCE_SZ, ++ ssl->decrypt.additional, ssl->specs.aead_mac_size, ++ NULL, 0); ++ } + break; + #endif +
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
@@ -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-1005.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 18/24 wolfssl: patch CVE-2026-3580
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/9855
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-3580
--- .../wolfssl/files/CVE-2026-3580.patch | 425 ++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 1 + 2 files changed, 426 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3580.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-3580.patch new file +425 -0
@@ -0,0 +1,425 @@ +From 2741f67d1cd56887991fc09d6dccc9b25b3ed79b Mon Sep 17 00:00:00 2001 +From: Sean Parkinson <[email protected]> +Date: Tue, 3 Mar 2026 23:18:52 +1000 +Subject: [PATCH] RISC-V 32 no mul SP C: implement multiplication + +No multiplication instructions when M extension not included. +Standard implementation of __muldi3 is not constant time. +Include a constant time implementation when SP_NO_MUL_INSTRUCTION is +defined +Define it when compiling for RISC-V 32 and no multiplication extension. + +Also fix get_entry in SP C implementation to do constant time +comparison. + +(cherry picked from commit 71226b68b69404206c74694715f11bb6630750dc) + +CVE: CVE-2026-3580 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/71226b68b69404206c74694715f11bb6630750dc] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + .wolfssl_known_macro_extras | 1 + + wolfcrypt/src/sp_arm32.c | 24 +++++++--- + wolfcrypt/src/sp_armthumb.c | 24 +++++++--- + wolfcrypt/src/sp_c32.c | 77 +++++++++++++++++++++++++++++++-- + wolfcrypt/src/sp_c64.c | 12 +++-- + wolfcrypt/src/sp_cortexm.c | 24 +++++++--- + wolfcrypt/src/sp_x86_64_asm.asm | 2 +- + wolfssl/wolfcrypt/sp.h | 4 ++ + 8 files changed, 143 insertions(+), 25 deletions(-) + +diff --git a/.wolfssl_known_macro_extras b/.wolfssl_known_macro_extras +index 3e728fa5f..301b1a211 100644 +--- a/.wolfssl_known_macro_extras ++++ b/.wolfssl_known_macro_extras +@@ -1000,6 +1000,7 @@ __must_check + __ppc64__ + __ppc__ + __riscv ++__riscv_mul + __riscv_xlen + __s390x__ + __sparc +diff --git a/wolfcrypt/src/sp_arm32.c b/wolfcrypt/src/sp_arm32.c +index a70eb35eb..ed8cd0296 100644 +--- a/wolfcrypt/src/sp_arm32.c ++++ b/wolfcrypt/src/sp_arm32.c +@@ -75850,7 +75850,9 @@ static void sp_256_get_entry_16_8(sp_point_256* r, + r->y[6] = 0; + r->y[7] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -76271,7 +76273,9 @@ static void sp_256_get_entry_256_8(sp_point_256* r, + r->y[6] = 0; + r->y[7] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -93989,7 +93993,9 @@ static void sp_384_get_entry_16_12(sp_point_384* r, + r->y[10] = 0; + r->y[11] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -94426,7 +94432,9 @@ static void sp_384_get_entry_256_12(sp_point_384* r, + r->y[10] = 0; + r->y[11] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -121504,7 +121512,9 @@ static void sp_521_get_entry_16_17(sp_point_521* r, + r->y[15] = 0; + r->y[16] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -121961,7 +121971,9 @@ static void sp_521_get_entry_256_17(sp_point_521* r, + r->y[15] = 0; + r->y[16] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +diff --git a/wolfcrypt/src/sp_armthumb.c b/wolfcrypt/src/sp_armthumb.c +index 4868f7f93..0f112aaef 100644 +--- a/wolfcrypt/src/sp_armthumb.c ++++ b/wolfcrypt/src/sp_armthumb.c +@@ -101420,7 +101420,9 @@ static void sp_256_get_entry_16_8(sp_point_256* r, + r->y[6] = 0; + r->y[7] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -101841,7 +101843,9 @@ static void sp_256_get_entry_256_8(sp_point_256* r, + r->y[6] = 0; + r->y[7] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -112269,7 +112273,9 @@ static void sp_384_get_entry_16_12(sp_point_384* r, + r->y[10] = 0; + r->y[11] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -112706,7 +112712,9 @@ static void sp_384_get_entry_256_12(sp_point_384* r, + r->y[10] = 0; + r->y[11] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -125892,7 +125900,9 @@ static void sp_521_get_entry_16_17(sp_point_521* r, + r->y[15] = 0; + r->y[16] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -126349,7 +126359,9 @@ static void sp_521_get_entry_256_17(sp_point_521* r, + r->y[15] = 0; + r->y[16] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +diff --git a/wolfcrypt/src/sp_c32.c b/wolfcrypt/src/sp_c32.c +index 10d646a81..13e3abe00 100644 +--- a/wolfcrypt/src/sp_c32.c ++++ b/wolfcrypt/src/sp_c32.c +@@ -63,6 +63,71 @@ + + #ifndef WOLFSSL_SP_ASM + #if SP_WORD_SIZE == 32 ++#ifdef SP_NO_MUL_INSTRUCTION ++sp_uint64 __muldi3(sp_uint64 a, sp_uint64 b); ++sp_uint64 __muldi3(sp_uint64 a, sp_uint64 b) ++{ ++ sp_uint64 r; ++ sp_uint64 am[16]; ++ ++ /* if b is negative, convert it to positive and negate a. */ ++ r = 0 - (b >> 63); ++ a = a ^ r; ++ b = b ^ r; ++ a -= r; ++ b -= r; ++ ++#if defined(WOLFSSL_SP_SMALL) ++ int i; ++ ++ am[0] = 0; ++ for (i = 1; i < 16; i++) { ++ am[i] = am[i-1] + a; ++ } ++ ++ r = am[(b >> 28) & 0xf]; ++ for (i = 24; i >= 0; i -= 4) { ++ r <<= 4; ++ r += am[(b >> i) & 0xf]; ++ } ++#else ++ am[ 0] = 0; ++ am[ 1] = a; ++ am[ 2] = a << 1; ++ am[ 3] = am[ 2] + a; ++ am[ 4] = a << 2; ++ am[ 5] = am[ 4] + a; ++ am[ 6] = am[ 5] + a; ++ am[ 7] = am[ 6] + a; ++ am[ 8] = a << 3; ++ am[ 9] = am[ 8] + a; ++ am[10] = am[ 9] + a; ++ am[11] = am[10] + a; ++ am[12] = am[11] + a; ++ am[13] = am[12] + a; ++ am[14] = am[13] + a; ++ am[15] = am[14] + a; ++ ++ r = am[(b >> 28) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 24) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 20) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 16) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 12) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 8) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 4) & 0xf]; ++ r <<= 4; ++ r += am[(b >> 0) & 0xf]; ++#endif ++ ++ return r; ++} ++#endif /* SP_NO_MUL_INSTRUCTION */ + #define SP_PRINT_NUM(var, name, total, words, bits) \ + do { \ + int ii; \ +@@ -22891,7 +22956,9 @@ static void sp_256_get_entry_256_9(sp_point_256* r, + r->y[7] = 0; + r->y[8] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -30408,7 +30475,9 @@ static void sp_384_get_entry_256_15(sp_point_384* r, + r->y[13] = 0; + r->y[14] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -37975,7 +38044,9 @@ static void sp_521_get_entry_256_21(sp_point_521* r, + r->y[19] = 0; + r->y[20] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +diff --git a/wolfcrypt/src/sp_c64.c b/wolfcrypt/src/sp_c64.c +index 06dc0bd69..66397f64f 100644 +--- a/wolfcrypt/src/sp_c64.c ++++ b/wolfcrypt/src/sp_c64.c +@@ -23795,7 +23795,9 @@ static void sp_256_get_entry_256_5(sp_point_256* r, + r->y[3] = 0; + r->y[4] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint64)i - (sp_uint64)idx) >> 63) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint64)idx - (sp_uint64)i) >> 63) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -30747,7 +30749,9 @@ static void sp_384_get_entry_256_7(sp_point_384* r, + r->y[5] = 0; + r->y[6] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint64)i - (sp_uint64)idx) >> 63) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint64)idx - (sp_uint64)i) >> 63) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -38160,7 +38164,9 @@ static void sp_521_get_entry_256_9(sp_point_521* r, + r->y[7] = 0; + r->y[8] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint64)i - (sp_uint64)idx) >> 63) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint64)idx - (sp_uint64)i) >> 63) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +diff --git a/wolfcrypt/src/sp_cortexm.c b/wolfcrypt/src/sp_cortexm.c +index fc756ffbe..d4af12332 100644 +--- a/wolfcrypt/src/sp_cortexm.c ++++ b/wolfcrypt/src/sp_cortexm.c +@@ -37267,7 +37267,9 @@ static void sp_256_get_entry_16_8(sp_point_256* r, + r->y[6] = 0; + r->y[7] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -37688,7 +37690,9 @@ static void sp_256_get_entry_256_8(sp_point_256* r, + r->y[6] = 0; + r->y[7] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -47354,7 +47358,9 @@ static void sp_384_get_entry_16_12(sp_point_384* r, + r->y[10] = 0; + r->y[11] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -47791,7 +47797,9 @@ static void sp_384_get_entry_256_12(sp_point_384* r, + r->y[10] = 0; + r->y[11] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -59584,7 +59592,9 @@ static void sp_521_get_entry_16_17(sp_point_521* r, + r->y[15] = 0; + r->y[16] = 0; + for (i = 1; i < 16; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +@@ -60041,7 +60051,9 @@ static void sp_521_get_entry_256_17(sp_point_521* r, + r->y[15] = 0; + r->y[16] = 0; + for (i = 1; i < 256; i++) { +- mask = (sp_digit)0 - (i == idx); ++ sp_digit gte = (sp_digit)((((sp_uint32)i - (sp_uint32)idx) >> 31) - 1); ++ sp_digit lte = (sp_digit)((((sp_uint32)idx - (sp_uint32)i) >> 31) - 1); ++ mask = gte & lte; + r->x[0] |= mask & table[i].x[0]; + r->x[1] |= mask & table[i].x[1]; + r->x[2] |= mask & table[i].x[2]; +diff --git a/wolfcrypt/src/sp_x86_64_asm.asm b/wolfcrypt/src/sp_x86_64_asm.asm +index 4df93a976..30bdc8add 100644 +--- a/wolfcrypt/src/sp_x86_64_asm.asm ++++ b/wolfcrypt/src/sp_x86_64_asm.asm +@@ -1,6 +1,6 @@ + ; /* sp_x86_64_asm.asm */ + ; /* +-; * Copyright (C) 2006-2025 wolfSSL Inc. ++; * Copyright (C) 2006-2026 wolfSSL Inc. + ; * + ; * This file is part of wolfSSL. + ; * +diff --git a/wolfssl/wolfcrypt/sp.h b/wolfssl/wolfcrypt/sp.h +index 9e7a9c945..fcfd2dd8e 100644 +--- a/wolfssl/wolfcrypt/sp.h ++++ b/wolfssl/wolfcrypt/sp.h +@@ -26,6 +26,10 @@ + #include <wolfssl/wolfcrypt/types.h> + #include <wolfssl/wolfcrypt/settings.h> + ++#if defined(__riscv) && (__riscv_xlen == 32) && !defined(__riscv_mul) ++ #define SP_NO_MUL_INSTRUCTION ++#endif ++ + #if defined(WOLFSSL_HAVE_SP_RSA) || defined(WOLFSSL_HAVE_SP_DH) || \ + defined(WOLFSSL_HAVE_SP_ECC) + #ifdef _WIN32_WCE
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
@@ -28,6 +28,7 @@ SRC_URI = " \ file://CVE-2025-7394-5.patch \ file://CVE-2025-7394-6.patch \ file://CVE-2026-1005.patch \ + file://CVE-2026-3580.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 19/24 wolfssl: patch CVE-2026-5188
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10024
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5188
Dropped unit test changes during the backport.
--- .../wolfssl/files/CVE-2026-5188.patch | 101 ++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 1 + 2 files changed, 102 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5188.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5188.patch new file +101 -0
@@ -0,0 +1,101 @@ +From 928e64ee08438203cc966d122bb9736361bd6fc7 Mon Sep 17 00:00:00 2001 +From: Eric Blankenhorn <[email protected]> +Date: Fri, 20 Mar 2026 08:16:47 -0500 +Subject: [PATCH] Fix DecodeAltNames length check + +(cherry picked from commit 6446bb21155e80a41538d1f815a6cf5a5a0cc0f8) + +CVE: CVE-2026-5188 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/6446bb21155e80a41538d1f815a6cf5a5a0cc0f8] + +Dropped unit test changes during the backport. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + wolfcrypt/src/asn.c | 24 ++++++++++++++++++++++++ + 1 file changed, 24 insertions(+) + +diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c +index af74678c5..b00568534 100644 +--- a/wolfcrypt/src/asn.c ++++ b/wolfcrypt/src/asn.c +@@ -19769,6 +19769,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + + AddAltName(cert, dnsEntry); + ++ if (strLen > length) { ++ return ASN_PARSE_E; ++ } + length -= strLen; + idx += (word32)strLen; + } +@@ -19810,6 +19813,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + dirEntry->next = cert->altDirNames; + cert->altDirNames = dirEntry; + ++ if (strLen > length) { ++ return ASN_PARSE_E; ++ } + length -= strLen; + idx += (word32)strLen; + } +@@ -19845,6 +19851,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + emailEntry->next = cert->altEmailNames; + cert->altEmailNames = emailEntry; + ++ if (strLen > length) { ++ return ASN_PARSE_E; ++ } + length -= strLen; + idx += (word32)strLen; + } +@@ -19924,6 +19933,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + + AddAltName(cert, uriEntry); + ++ if (strLen > length) { ++ return ASN_PARSE_E; ++ } + length -= strLen; + idx += (word32)strLen; + } +@@ -19970,6 +19982,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + } + AddAltName(cert, ipAddr); + ++ if (strLen > length) { ++ return ASN_PARSE_E; ++ } + length -= strLen; + idx += (word32)strLen; + } +@@ -20018,6 +20033,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + + AddAltName(cert, rid); + ++ if (strLen > length) { ++ return ASN_PARSE_E; ++ } + length -= strLen; + idx += (word32)strLen; + } +@@ -20035,6 +20053,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + return ASN_PARSE_E; + } + /* Consume the rest of this sequence. */ ++ if ((int)((word32)strLen + idx - lenStartIdx) > length) { ++ return ASN_PARSE_E; ++ } + length -= (int)(((word32)strLen + idx - lenStartIdx)); + + if (GetObjectId(input, &idx, &oid, oidCertAltNameType, sz) < 0) { +@@ -20087,6 +20108,9 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert) + WOLFSSL_MSG("\tfail: unsupported name length"); + return ASN_PARSE_E; + } ++ if ((int)((word32)strLen + idx - lenStartIdx) > length) { ++ return ASN_PARSE_E; ++ } + length -= (int)((word32)strLen + idx - lenStartIdx); + idx += (word32)strLen; + }
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI = " \ file://CVE-2025-7394-6.patch \ file://CVE-2026-1005.patch \ file://CVE-2026-3580.patch \ + file://CVE-2026-5188.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 20/24 wolfssl: patch CVE-2026-5392
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10039
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5392
Dropped unit test changes during the backport.
--- .../wolfssl/files/CVE-2026-5392.patch | 33 +++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5392.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5392.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 02c53b7cb22ba520d1b9a061476a1066eef45a42 Mon Sep 17 00:00:00 2001 +From: Anthony Hu <[email protected]> +Date: Fri, 20 Mar 2026 21:32:14 -0400 +Subject: [PATCH] Add bounds check in PKCS7 streaming indefinite-length + end-of-content parsing + +(cherry picked from commit 6721bde8e0f4074b76c1ea5e8987b8c2a746b3fa) + +CVE: CVE-2026-5392 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/6721bde8e0f4074b76c1ea5e8987b8c2a746b3fa] + +Dropped unit test changes during the backport. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + wolfcrypt/src/pkcs7.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c +index a8545ba0a..92dab5080 100644 +--- a/wolfcrypt/src/pkcs7.c ++++ b/wolfcrypt/src/pkcs7.c +@@ -6485,6 +6485,10 @@ static int PKCS7_VerifySignedData(wc_PKCS7* pkcs7, const byte* hashBuf, + word32 sz = (word32)pkcs7->stream->cntIdfCnt * ASN_INDEF_END_SZ; + localIdx = idx; + for (i = 0; i < sz; i++) { ++ if (localIdx + i >= pkiMsg2Sz) { ++ ret = ASN_PARSE_E; ++ break; ++ } + if (pkiMsg2[localIdx + i] == 0) + continue; + else {
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = " \ file://CVE-2026-1005.patch \ file://CVE-2026-3580.patch \ file://CVE-2026-5188.patch \ + file://CVE-2026-5392.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 21/24 wolfssl: patch CVE-2026-5446
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commits from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10111
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5446
--- .../wolfssl/files/CVE-2026-5446-1.patch | 62 +++++++++++++++++++ .../wolfssl/files/CVE-2026-5446-2.patch | 27 ++++++++ .../wolfssl/wolfssl_5.8.0.bb | 2 + 3 files changed, 91 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5446-1.patch create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5446-2.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5446-1.patch new file +62 -0
@@ -0,0 +1,62 @@ +From 6d6d06c05f84b190c43c9b75c6fa11375d2be424 Mon Sep 17 00:00:00 2001 +From: Eric Blankenhorn <[email protected]> +Date: Tue, 31 Mar 2026 08:31:14 -0500 +Subject: [PATCH] Fix ARIA build issue and FIPS guard + +(cherry picked from commit 6495e8e94115f7f6beb67497e07bac5cba8dca9c) + +CVE: CVE-2026-5446 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/6495e8e94115f7f6beb67497e07bac5cba8dca9c] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/internal.c | 21 ++++++++++++++++----- + 1 file changed, 16 insertions(+), 5 deletions(-) + +diff --git a/src/internal.c b/src/internal.c +index 992c10d2c..fbf227a93 100644 +--- a/src/internal.c ++++ b/src/internal.c +@@ -19023,7 +19023,9 @@ static int DoDtlsHandShakeMsg(WOLFSSL* ssl, byte* input, word32* inOutIdx, + #if (!defined(NO_PUBLIC_GCM_SET_IV) && \ + ((defined(HAVE_FIPS) || defined(HAVE_SELFTEST)) && \ + (!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION < 2)))) || \ +- (defined(HAVE_POLY1305) && defined(HAVE_CHACHA)) ++ (defined(HAVE_POLY1305) && defined(HAVE_CHACHA)) || \ ++ defined(HAVE_ARIA) || \ ++ defined(WOLFSSL_SM4_GCM) || defined(WOLFSSL_SM4_CCM) + static WC_INLINE void AeadIncrementExpIV(WOLFSSL* ssl) + { + int i; +@@ -20006,10 +20008,9 @@ static WC_INLINE int Encrypt(WOLFSSL* ssl, byte* out, const byte* input, + sizeof(ssl->encrypt.sanityCheck)); + #endif + +- #if defined(BUILD_AESGCM) || defined(HAVE_AESCCM) || defined(HAVE_ARIA) ++ #if defined(BUILD_AESGCM) || defined(HAVE_AESCCM) + if (ssl->specs.bulk_cipher_algorithm == wolfssl_aes_ccm || +- ssl->specs.bulk_cipher_algorithm == wolfssl_aes_gcm || +- ssl->specs.bulk_cipher_algorithm == wolfssl_aria_gcm) ++ ssl->specs.bulk_cipher_algorithm == wolfssl_aes_gcm) + { + /* finalize authentication cipher */ + #if !defined(NO_PUBLIC_GCM_SET_IV) && \ +@@ -20020,7 +20021,17 @@ static WC_INLINE int Encrypt(WOLFSSL* ssl, byte* out, const byte* input, + if (ssl->encrypt.nonce) + ForceZero(ssl->encrypt.nonce, AESGCM_NONCE_SZ); + } +- #endif /* BUILD_AESGCM || HAVE_AESCCM || HAVE_ARIA */ ++ #endif /* BUILD_AESGCM || HAVE_AESCCM */ ++ #ifdef HAVE_ARIA ++ if (ssl->specs.bulk_cipher_algorithm == wolfssl_aria_gcm) ++ { ++ /* finalize authentication cipher — wc_AriaEncrypt is ++ * stateless, so the explicit IV must always advance */ ++ AeadIncrementExpIV(ssl); ++ if (ssl->encrypt.nonce) ++ ForceZero(ssl->encrypt.nonce, AESGCM_NONCE_SZ); ++ } ++ #endif /* HAVE_ARIA */ + #if defined(WOLFSSL_SM4_GCM) || defined(WOLFSSL_SM4_CCM) + if (ssl->specs.bulk_cipher_algorithm == wolfssl_sm4_ccm || + ssl->specs.bulk_cipher_algorithm == wolfssl_sm4_gcm)
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5446-2.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 88fc52b8e3bca58389a4a107a77f9dc52e3baa12 Mon Sep 17 00:00:00 2001 +From: Eric Blankenhorn <[email protected]> +Date: Tue, 31 Mar 2026 09:35:43 -0500 +Subject: [PATCH] Fix feedback from review + +(cherry picked from commit a3fad2af91da39e2a4bdaf528bcfb2a94c4dd67c) + +CVE: CVE-2026-5446 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/a3fad2af91da39e2a4bdaf528bcfb2a94c4dd67c] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/internal.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/internal.c b/src/internal.c +index fbf227a93..ccfecc235 100644 +--- a/src/internal.c ++++ b/src/internal.c +@@ -20025,7 +20025,7 @@ static WC_INLINE int Encrypt(WOLFSSL* ssl, byte* out, const byte* input, + #ifdef HAVE_ARIA + if (ssl->specs.bulk_cipher_algorithm == wolfssl_aria_gcm) + { +- /* finalize authentication cipher — wc_AriaEncrypt is ++ /* finalize authentication cipher -- wc_AriaEncrypt is + * stateless, so the explicit IV must always advance */ + AeadIncrementExpIV(ssl); + if (ssl->encrypt.nonce)
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +2 -0
@@ -31,6 +31,8 @@ SRC_URI = " \ file://CVE-2026-3580.patch \ file://CVE-2026-5188.patch \ file://CVE-2026-5392.patch \ + file://CVE-2026-5446-1.patch \ + file://CVE-2026-5446-2.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 22/24 wolfssl: patch CVE-2026-5447
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10112
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5447
Dropped unit test changes during the backport.
--- .../wolfssl/files/CVE-2026-5447.patch | 65 +++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 1 + 2 files changed, 66 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5447.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5447.patch new file +65 -0
@@ -0,0 +1,65 @@ +From 4d7eccf50dab080185d3a8763491e3febbcc257a Mon Sep 17 00:00:00 2001 +From: Eric Blankenhorn <[email protected]> +Date: Tue, 31 Mar 2026 08:56:23 -0500 +Subject: [PATCH] Fix CertFromX509 copy length check + +(cherry picked from commit 772cda3d489d867935202d59393a2ac85a5e6ef0) + +CVE: CVE-2026-5447 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/772cda3d489d867935202d59393a2ac85a5e6ef0] + +Dropped unit test changes during the backport. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/x509.c | 33 ++++++++++++++++++--------------- + 1 file changed, 18 insertions(+), 15 deletions(-) + +diff --git a/src/x509.c b/src/x509.c +index 62e3774f4..cf44c7146 100644 +--- a/src/x509.c ++++ b/src/x509.c +@@ -10622,25 +10622,28 @@ static int CertFromX509(Cert* cert, WOLFSSL_X509* x509) + return WOLFSSL_FAILURE; + } + +- if (x509->authKeyIdSz < sizeof(cert->akid)) { + #ifdef WOLFSSL_AKID_NAME +- cert->rawAkid = 0; +- if (x509->authKeyIdSrc) { +- XMEMCPY(cert->akid, x509->authKeyIdSrc, x509->authKeyIdSrcSz); +- cert->akidSz = (int)x509->authKeyIdSrcSz; +- cert->rawAkid = 1; ++ cert->rawAkid = 0; ++ if (x509->authKeyIdSrc) { ++ if (x509->authKeyIdSrcSz > sizeof(cert->akid)) { ++ WOLFSSL_MSG("Auth Key ID too large"); ++ WOLFSSL_ERROR_VERBOSE(BUFFER_E); ++ return WOLFSSL_FAILURE; + } +- else ++ XMEMCPY(cert->akid, x509->authKeyIdSrc, x509->authKeyIdSrcSz); ++ cert->akidSz = (int)x509->authKeyIdSrcSz; ++ cert->rawAkid = 1; ++ } ++ else + #endif +- if (x509->authKeyId) { +- XMEMCPY(cert->akid, x509->authKeyId, x509->authKeyIdSz); +- cert->akidSz = (int)x509->authKeyIdSz; ++ if (x509->authKeyId) { ++ if (x509->authKeyIdSz > sizeof(cert->akid)) { ++ WOLFSSL_MSG("Auth Key ID too large"); ++ WOLFSSL_ERROR_VERBOSE(BUFFER_E); ++ return WOLFSSL_FAILURE; + } +- } +- else { +- WOLFSSL_MSG("Auth Key ID too large"); +- WOLFSSL_ERROR_VERBOSE(BUFFER_E); +- return WOLFSSL_FAILURE; ++ XMEMCPY(cert->akid, x509->authKeyId, x509->authKeyIdSz); ++ cert->akidSz = (int)x509->authKeyIdSz; + } + + for (i = 0; i < x509->certPoliciesNb; i++) {
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
@@ -33,6 +33,7 @@ SRC_URI = " \ file://CVE-2026-5392.patch \ file://CVE-2026-5446-1.patch \ file://CVE-2026-5446-2.patch \ + file://CVE-2026-5447.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 23/24 wolfssl: patch CVE-2026-5772
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commits from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10119
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5772
--- .../wolfssl/files/CVE-2026-5772-1.patch | 25 +++++++++++++ .../wolfssl/files/CVE-2026-5772-2.patch | 35 +++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 2 ++ 3 files changed, 62 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5772-1.patch create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5772-2.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5772-1.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 9fe2213ba1fd8a05f7fa9b95fa940530b445bae9 Mon Sep 17 00:00:00 2001 +From: Kareem <[email protected]> +Date: Wed, 1 Apr 2026 11:28:45 -0700 +Subject: [PATCH] Exit MatchDomainName if pattern or string length reach 0. + +CVE: CVE-2026-5772 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/1274c7b5e7e9e28d88caf60662f6f9624bf834b7] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/internal.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/internal.c b/src/internal.c +index ccfecc235..1c217b902 100644 +--- a/src/internal.c ++++ b/src/internal.c +@@ -12898,7 +12898,7 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str, + if (pattern == NULL || str == NULL || patternLen <= 0 || strLen == 0) + return 0; + +- while (patternLen > 0) { ++ while (patternLen > 0 && strLen > 0) { + /* Get the next pattern char to evaluate */ + char p = (char)XTOLOWER((unsigned char)*pattern); + if (p == '\0')
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5772-2.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 89938195b946f709f40f653d90ce215f868c7d79 Mon Sep 17 00:00:00 2001 +From: Kareem <[email protected]> +Date: Wed, 1 Apr 2026 11:50:17 -0700 +Subject: [PATCH] Rework check to avoid changing existing logic. + +CVE: CVE-2026-5772 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/90d631232308a59a03f6f6f455f9ac373db7af3d] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/internal.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/internal.c b/src/internal.c +index 1c217b902..6af03cbf0 100644 +--- a/src/internal.c ++++ b/src/internal.c +@@ -12898,7 +12898,7 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str, + if (pattern == NULL || str == NULL || patternLen <= 0 || strLen == 0) + return 0; + +- while (patternLen > 0 && strLen > 0) { ++ while (patternLen > 0) { + /* Get the next pattern char to evaluate */ + char p = (char)XTOLOWER((unsigned char)*pattern); + if (p == '\0') +@@ -12964,6 +12964,9 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str, + wildcardEligible = 0; + } + ++ if (strLen == 0) ++ return 0; ++ + /* Simple case, pattern match exactly */ + if (p != (char)XTOLOWER((unsigned char) *str)) + return 0;
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +2 -0
@@ -34,6 +34,8 @@ SRC_URI = " \ file://CVE-2026-5446-1.patch \ file://CVE-2026-5446-2.patch \ file://CVE-2026-5447.patch \ + file://CVE-2026-5772-1.patch \ + file://CVE-2026-5772-2.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
PATCH 24/24 wolfssl: patch CVE-2026-5778
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10125
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5778
--- .../wolfssl/files/CVE-2026-5778.patch | 38 +++++++++++++++++++ .../wolfssl/wolfssl_5.8.0.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5778.patch
meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5778.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 0eee2c2d172a28dc9159211d0d22323c980a48f4 Mon Sep 17 00:00:00 2001 +From: Kareem <[email protected]> +Date: Thu, 2 Apr 2026 16:41:55 -0700 +Subject: [PATCH] Add sz check to ChachaAEADDecrypt to prevent potential + underflow. + +Thanks to Zou Dikai for the report. + +(cherry picked from commit 5b6b138964058ab8d30474bc9fdfb5ffcb3a4726) + +CVE: CVE-2026-5778 +Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/5b6b138964058ab8d30474bc9fdfb5ffcb3a4726] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/internal.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/src/internal.c b/src/internal.c +index 6af03cbf0..40d1dd7cc 100644 +--- a/src/internal.c ++++ b/src/internal.c +@@ -19310,10 +19310,15 @@ int ChachaAEADDecrypt(WOLFSSL* ssl, byte* plain, const byte* input, + byte tag[POLY1305_AUTH_SZ]; + byte poly[CHACHA20_256_KEY_SIZE]; /* generated key for mac */ + int ret = 0; +- int msgLen = (sz - ssl->specs.aead_mac_size); ++ int msgLen = 0; + Keys* keys = &ssl->keys; + byte* seq = NULL; + ++ if (sz < ssl->specs.aead_mac_size) { ++ return BAD_FUNC_ARG; ++ } ++ msgLen = (sz - ssl->specs.aead_mac_size); ++ + #ifdef CHACHA_AEAD_TEST + int i; + printf("input before decrypt :\n");
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +1 -0
@@ -36,6 +36,7 @@ SRC_URI = " \ file://CVE-2026-5447.patch \ file://CVE-2026-5772-1.patch \ file://CVE-2026-5772-2.patch \ + file://CVE-2026-5778.patch \ " SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"