From patchwork Mon Oct 12 20:21:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 100476 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECFE6CA9EDE for ; Mon, 12 Oct 2026 20:22:01 +0000 (UTC) Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3859.1791836517204348076 for ; Mon, 12 Oct 2026 13:21:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm2 header.b=jUVVhGhq; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.225, mailfrom: fm-256628-202610122021554cb4f1d065000207e2-xnwxbb@rts-flowmailer.siemens.com) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 202610122021554cb4f1d065000207e2 for ; Mon, 12 Oct 2026 22:21:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=fyW1dGBvycRJHt6keBzuyHlwzwT8nbu+GojEkP8Vimc=; b=jUVVhGhq3R1tRZx/0PSARpXsgU215SL5rITgzAvUnAZolXltMBbyQHsykBT+AKap2v/tyj 0bMcJwyBHWTS149QnL+2g6vWPaPtYEuCZxfeSB+tbR50Jxex/v7nflM8WZ8EWXoqrFQIEQjb hOCGg8YhmCs75WqSLi7bypOmP/x6LKFGK6s5UllgGZGtN9MldmmSWdJJMNvtd+yNq8Rdjszk 6rwW01jF2wqpOBKX/MKI+jKKiL1zqlTuB2PLFx4X49ewJM7XEv+Z0KVGZsvMsZhQ1MjeNf+y Af9TgJgC4t1TX1O0Z5Wf3NKZgxg4pWbRWbGumZRDMgnQOr6RTKk228CA==; From: Peter Marko To: openembedded-devel@lists.openembedded.org Cc: Peter Marko Subject: [meta-oe][blacksail][PATCH 2/2] libwebsockets: patch CVE-2026-78161 Date: Mon, 12 Oct 2026 22:21:26 +0200 Message-ID: <20261012202126.1721004-2-peter.marko@siemens.com> In-Reply-To: <20261012202126.1721004-1-peter.marko@siemens.com> References: <20261012202126.1721004-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 12 Oct 2026 20:22:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130768 From: Peter Marko Pick patch per [1]. [1] https://security-tracker.debian.org/tracker/CVE-2026-78161 Signed-off-by: Peter Marko --- .../libwebsockets/CVE-2026-78161.patch | 45 +++++++++++++++++++ .../libwebsockets/libwebsockets_4.5.8.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-78161.patch diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-78161.patch b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-78161.patch new file mode 100644 index 0000000000..ab978811d8 --- /dev/null +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-78161.patch @@ -0,0 +1,45 @@ +From 1d44554a1bb262db63ff4e240152a9deecd99054 Mon Sep 17 00:00:00 2001 +From: Biniam F Demissie +Date: Mon, 6 Jul 2026 04:33:45 +0100 +Subject: [PATCH] cbor: overflow + +CVE: CVE-2026-78161 +Upstream-Status: Backport [https://github.com/warmcat/libwebsockets/commit/1d44554a1bb262db63ff4e240152a9deecd99054] +Signed-off-by: Peter Marko +--- + lib/misc/lecp.c | 11 ++++++----- + 1 file changed, 6 insertions(+), 5 deletions(-) + +diff --git a/lib/misc/lecp.c b/lib/misc/lecp.c +index 44a7ac667..13e6ba476 100644 +--- a/lib/misc/lecp.c ++++ b/lib/misc/lecp.c +@@ -325,11 +325,11 @@ report_raw_cbor(struct lecp_ctx *ctx) + if (!ctx->cbor_pos) + return 0; + ++ ctx->cbor_pos = 0; /* reset BEFORE callback */ ++ + if (pst->cb(ctx, LECPCB_LITERAL_CBOR)) + return 1; + +- ctx->cbor_pos = 0; +- + return 0; + } + +@@ -388,10 +388,11 @@ lecp_parse(struct lecp_ctx *ctx, const uint8_t *cbor, size_t len) + */ + + if (ctx->literal_cbor_report) { ++ if (ctx->cbor_pos >= sizeof(ctx->cbor)) { ++ if (report_raw_cbor(ctx)) ++ goto reject_callback; ++ } + ctx->cbor[ctx->cbor_pos++] = c; +- if (ctx->cbor_pos == sizeof(ctx->cbor) && +- report_raw_cbor(ctx)) +- goto reject_callback; + } + + switch (st->s) { diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb index 11da4b299c..0b612c6f4f 100644 --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb @@ -11,6 +11,7 @@ SRC_URI = " \ git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.5-stable;tag=v${PV} \ file://CVE-2026-10650.patch \ file://CVE-2026-19773.patch \ + file://CVE-2026-78161.patch \ " UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases"