From patchwork Wed Sep 23 13:30:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Benjamin Robin (Schneider Electric)" X-Patchwork-Id: 99058 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 7931AC9830C for ; Wed, 23 Sep 2026 13:30:39 +0000 (UTC) Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7086.1790170237571177592 for ; Wed, 23 Sep 2026 06:30:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=EKIPKXqf; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: benjamin.robin@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 74D5CC21AB9; Wed, 23 Sep 2026 13:31:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 6DAC460580; Wed, 23 Sep 2026 13:30:35 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4160E10328ED6; Wed, 23 Sep 2026 15:30:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1790170230; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=vhS3Se8W6WiTywl747Be2zJZgWn7qzQ5Y9euFqdjNlc=; b=EKIPKXqfpY55DOBrwPwxW23kWKSPSt6yb2/nvVGaNQhEX/zLb6NIZpaVA5Q7/7MPc0sEId mkzMKj8j+TN90P6zhqixuAWiwDoJvN21Bk7hjO0uiAVeeh5gUbNvVxxTeH0K6bTKdm2d5u aMvhI2UnO8/9eHbqxqrIFJHFXdLMhZCp6QjAspanRSFMBPtpHEEImmVMGwvqF4Fm+c/Jfq k/KaMGBK2jRNA66Ry4RqOplyqBwLS4dfymGtzqyQV8FkSLURZO0OC0+x/mQxlzCUOggG4W IpJJu3FsxwykTBJwAKJ07e/jDl4jktbkCNnc2yEpIh8qWY5bSfGfp8Y3MV/8nQ== From: "Benjamin Robin (Schneider Electric)" Date: Wed, 23 Sep 2026 15:30:25 +0200 Subject: [scarthgap][meta-oe][PATCH v2 2/2] libwebsockets: fix CVE-2026-19773 MIME-Version: 1.0 Message-Id: <20260923-update-libwebsockets-fix-cve-2026-19773-v2-2-d20d96496e90@bootlin.com> References: <20260923-update-libwebsockets-fix-cve-2026-19773-v2-0-d20d96496e90@bootlin.com> In-Reply-To: <20260923-update-libwebsockets-fix-cve-2026-19773-v2-0-d20d96496e90@bootlin.com> To: openembedded-devel@lists.openembedded.org Cc: olivier.benjamin@bootlin.com, mathieu.dubois-briand@bootlin.com, pascal.eberhard@se.com, wahid.essid@se.com, "Benjamin Robin (Schneider Electric)" X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 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 ; Wed, 23 Sep 2026 13:30:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130238 Backport the fix from v5 branch. Signed-off-by: Benjamin Robin (Schneider Electric) --- .../libwebsockets/CVE-2026-19773.patch | 32 ++++++++++++++++++++++ .../libwebsockets/libwebsockets_4.3.10.bb | 1 + 2 files changed, 33 insertions(+) diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-19773.patch b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-19773.patch new file mode 100644 index 000000000000..fe814201ea81 --- /dev/null +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-19773.patch @@ -0,0 +1,32 @@ +From 7a57bcaa5a6ef336d92759676b46d04e5a79e63d Mon Sep 17 00:00:00 2001 +From: Andy Green +Date: Fri, 3 Jul 2026 18:43:25 +0100 +Subject: [PATCH] zdi-can-31036: h2 bounds check on server + +This vulnerability was discovered by: +Maher Azzouzi working with TrendAI Zero Day Initiative + +CVE: CVE-2026-19773 +Upstream-Status: Backport [https://github.com/warmcat/libwebsockets/commit/824151862f37bc72f46d9a3e01d5b9408d313a0b] + +Signed-off-by: Benjamin Robin (Schneider Electric) +--- + lib/roles/h2/hpack.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/lib/roles/h2/hpack.c b/lib/roles/h2/hpack.c +index f6aefd34ded3..e6d8d06c1d8f 100644 +--- a/lib/roles/h2/hpack.c ++++ b/lib/roles/h2/hpack.c +@@ -274,6 +274,9 @@ static int lws_frag_append(struct lws *wsi, unsigned char c) + { + struct allocated_headers *ah = wsi->http.ah; + ++ if ((unsigned int)ah->pos >= wsi->a.context->max_http_header_data) ++ return 1; ++ + ah->data[ah->pos++] = (char)c; + ah->frags[ah->nfrag].len++; + +-- +2.55.0 diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.10.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.10.bb index 559253c9613b..57db93bc1d9f 100644 --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.10.bb +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.10.bb @@ -10,6 +10,7 @@ S = "${WORKDIR}/git" SRCREV = "2288cf200bc1c28680765bd4f07e437356106c2d" SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.3-stable \ file://CVE-2026-10650.patch \ + file://CVE-2026-19773.patch \ " UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases"