From patchwork Mon Nov 23 16:30:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Vogelaar via B4 Relay X-Patchwork-Id: 105278 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.57538.1795451468536343108 for ; Mon, 23 Nov 2026 08:31:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=nTWmvFk2; spf=pass (domain: kernel.org, ip: 172.105.4.254, mailfrom: devnull+patrick.vogelaar.belden.com@kernel.org) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 7032462358; Mon, 23 Nov 2026 16:31:07 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795451467; b=xrbIbXu2hAFXpQ15L7FAuIyUgMp7WNpzI0+J97nMKmrEQHXnWrjaCqgXaigIqpAq74dh rkPnhunKVT/dA1aCW9MfNdSN0FNwI2EXZo94dET31gFTkQ+z1HZ71SbedwvzkZBQ5lVxe mwny0Ei1EEMrE3Go9ZuJPZ4e54yLTcIBd2RNi293IIAXhCySnuouECw9pJs4dKrzPlEHz yIcDFAGLu8uUflRIQk2gydfIve9C0xU2DK6F4uS0tmEPpbqew3KGCrEJ5wvmgE6PMoD31 8keE9XAsxy7uRecgNj02v6PgIl/AGMok8q3dDtwUfhUG/4T9LBMe6AdIl4e6I5YUS4g== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795451467; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=8RPLc9R+imROcfxP6fu/96/JcV3of+Mk5pjOa7hl9ZU=; b=RnIcqbgsgWOQo6WCFeY8EMwm+J1AyWPV/EAVjcTj1P/3XezKwnDqMCNjcOTOnBaRzjM+ D0o9qISAjsVRXuNFvFb1owoIwfi35YbtvxOOtRyixWPbneY9i6Lg/WI4LmcOCxAWLoqgj rpw6IgnlmTCrTYAmljbv249mKbuQWN9bYadjXmHnXq73XsY3I5jBhX/vXlA+5eUkqPlAj jmb4ZOsdBjj7PTbAL43J7ueqdFG7m6HWkFOpJ70QaAgtbvERGeO2BWSOPb4HiE9iJGJHD oHK8tHhEIXMcMYBMpPpsqHPnlcBRM3MKl4tasnzUEpSw4Ske1rTcaGGZ+4op3t5iHsA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id A17F21F000D0; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795451467; bh=8RPLc9R+imROcfxP6fu/96/JcV3of+Mk5pjOa7hl9ZU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=nTWmvFk263tKx555Giu/419C1t11qK91oTmSNPAyTUPPAu2ALFlnhJw43lZS8siQv NHlVvBG2bZoUTuOShXTy09QE34UqqFV71tbfvllG4vL2umbL9LixgXzxk8gbN+lLpu 6JreO+/KuCoLYOd+pNO4Gd5cp/5weI0Qr/DMG4KYTZVDG3SSz9SqC2HcWGOeSxnGef 04/t5vkmxvhavj0XcDcPKI8CLPy0X7Wp2SnyfIa+V6Kq4umDplBJh0LiOAuk7p9ziN eKyFRoLQsCKMO3sE0ZMfcWcBESf/nxhrUh4oHVthOmUtxmy83NugE/PESqhvuXjD3e wErnJxDYFcjEw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 25BA44C553; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 23 Nov 2026 17:30:40 +0100 Subject: [meta-webserver][scarthgap][PATCH 1/5] nginx: fix for CVE-2026-123007 MIME-Version: 1.0 Message-Id: <20261123-fix_nginx2root-v1-1-1b30332ed757@belden.com> References: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> In-Reply-To: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> To: openembedded-devel@lists.openembedded.org Cc: Patrick Vogelaar , patrick.vogelaar.dev@mailbox.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795451453; l=5389; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=sl+SYHio9pl1mwO2VG7JCTHtcn53Bo+ql8yxIo4agnI=; b=K+ZA10qVEQcHy1DHwxbn0g2LNijwGvH7hhX0Uy9ITszV2YRnnyHViFNd+68aLHACsda8hbTve bGKi0pZ5PTSDdJxZBY/xFZi0BtxtWer3QAdTNER64J1nNenllW4qiwC X-Developer-Key: i=patrick.vogelaar@belden.com; a=ed25519; pk=w0QU8RmOR3hQv1DxMcz6KmySeE8yqbvO0xC1ZSSUNqY= X-Endpoint-Received: by B4 Relay for patrick.vogelaar@belden.com/20240201 with auth_id=125 X-Original-From: Patrick Vogelaar Reply-To: patrick.vogelaar@belden.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 23 Nov 2026 16:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132906 From: Patrick Vogelaar Pick patch [0] as mentioned in [1]. [0] https://github.com/nginx/nginx/commit/b89c4100bf6762a45e4a6463eaf4b70368277c94 [1] https://security-tracker.debian.org/tracker/CVE-2026-123007 Signed-off-by: Patrick Vogelaar --- .../nginx/nginx-1.26.3/CVE-2026-123007.patch | 95 ++++++++++++++++++++++ meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb | 5 +- 2 files changed, 99 insertions(+), 1 deletion(-) diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123007.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123007.patch new file mode 100644 index 0000000000..80c34af596 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123007.patch @@ -0,0 +1,95 @@ +From 2132cbc91feb99db7439ecd195d49f821469085b Mon Sep 17 00:00:00 2001 +From: Roman Arutyunyan +Date: Thu, 29 Oct 2026 21:37:05 +0400 +Subject: [PATCH 01/10] HTTP/2: account for queued frames when validating + WINDOW_UPDATE + +When a stream is terminated, its unsent payload length is refunded back +to the connection flow control. Previously, this could increase the +flow control beyond NGX_HTTP_V2_MAX_WINDOW, if it was increased by the +client after the stream frames were queued and before the stream was +terminated. This eventually resulted in broken buffer size control in +ngx_http_v2_send_chain() followed by memory corruption and a possible +segmentation fault. + +The fix is to account for the queued frames when validating a client +WINDOW_UPDATE. From the client's point of view, the queued frames +still belong to the flow control window. + +Reported by Xint.io. + +(cherry picked from commit b89c4100bf6762a45e4a6463eaf4b70368277c94) + +CVE: CVE-2026-123007 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/b89c4100bf6762a45e4a6463eaf4b70368277c94] + +Signed-off-by: Patrick Vogelaar +--- + src/http/v2/ngx_http_v2.c | 4 ++-- + src/http/v2/ngx_http_v2.h | 1 + + src/http/v2/ngx_http_v2_filter_module.c | 3 +++ + 3 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c +index 0f5bd3de8..7ab97bbf9 100644 +--- a/src/http/v2/ngx_http_v2.c ++++ b/src/http/v2/ngx_http_v2.c +@@ -2466,13 +2466,13 @@ ngx_http_v2_state_window_update(ngx_http_v2_connection_t *h2c, u_char *pos, + return ngx_http_v2_state_complete(h2c, pos, end); + } + +- if (window > NGX_HTTP_V2_MAX_WINDOW - h2c->send_window) { ++ if (window > NGX_HTTP_V2_MAX_WINDOW - h2c->send_window - h2c->send_queued) { + ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0, + "client violated connection flow control: " + "received WINDOW_UPDATE frame " + "with window increment %uz " + "not allowed for window %uz", +- window, h2c->send_window); ++ window, h2c->send_window + h2c->send_queued); + + return ngx_http_v2_connection_error(h2c, NGX_HTTP_V2_FLOW_CTRL_ERROR); + } +diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h +index 6751b3026..a64599daf 100644 +--- a/src/http/v2/ngx_http_v2.h ++++ b/src/http/v2/ngx_http_v2.h +@@ -136,6 +136,7 @@ struct ngx_http_v2_connection_s { + ngx_uint_t priority_limit; + + size_t send_window; ++ size_t send_queued; + size_t recv_window; + size_t init_window; + +diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c +index 1e2cafaf1..c44954067 100644 +--- a/src/http/v2/ngx_http_v2_filter_module.c ++++ b/src/http/v2/ngx_http_v2_filter_module.c +@@ -1028,6 +1028,7 @@ ngx_http_v2_send_chain(ngx_connection_t *fc, ngx_chain_t *in, off_t limit) + ngx_http_v2_queue_frame(h2c, frame); + + h2c->send_window -= frame_size; ++ h2c->send_queued += frame_size; + + stream->send_window -= frame_size; + stream->queued++; +@@ -1423,6 +1424,7 @@ done: + stream->request->header_size += NGX_HTTP_V2_FRAME_HEADER_SIZE; + + h2c->payload_bytes += frame->length; ++ h2c->send_queued -= frame->length; + + ngx_http_v2_handle_frame(stream, frame); + +@@ -1557,6 +1559,7 @@ ngx_http_v2_filter_cleanup(void *data) + } + + h2c->send_window += window; ++ h2c->send_queued -= window; + } + + +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb index 658b1c0fce..18cd8bbfde 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb @@ -6,7 +6,10 @@ DEFAULT_PREFERENCE = "-1" LIC_FILES_CHKSUM = "file://LICENSE;md5=a6547d7e5628787ee2a9c5a3480eb628" -SRC_URI:append = " file://CVE-2026-28755.patch" +SRC_URI:append = " \ + file://CVE-2026-28755.patch \ + file://CVE-2026-123007.patch \ + " SRC_URI[sha256sum] = "69ee2b237744036e61d24b836668aad3040dda461fe6f570f1787eab570c75aa" From patchwork Mon Nov 23 16:30:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Vogelaar via B4 Relay X-Patchwork-Id: 105279 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.57685.1795451469548907410 for ; Mon, 23 Nov 2026 08:31:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=UUOZkbcl; spf=pass (domain: kernel.org, ip: 172.105.4.254, mailfrom: devnull+patrick.vogelaar.belden.com@kernel.org) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id E6B496236B; Mon, 23 Nov 2026 16:31:08 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795451468; b=dXRBjMJVbRUwMkCtOdgkZYIl8U7ecgJyvC5SkUUm/HEmbYAWXS+v4OAeM8hePUdFbWwV RWJVbTSkVCQ+QEdujYwOiPz2N7CoMOvzfvAsCI2TbI4ujG6IZ3W6j5r6Rer9f11tprvnC OM/hDYN/DsYGVLAdh2YXjBtl1G+D2UZEULMCEoeAdrNT6qqKcge8oe/xMsbyyJa/iselQ yOtPw4YCeffx4YY9xHvmhfmqiu7dgE5k3dHExxyUdtaHkNrb6P1Kup/4QVB6eDF3IyZv7 E0fQgduYK2gRrQAtCoyKRk8gZez9l+0Z86tnN/91rlQK8Qdomhuw7Jyw5UKn/RxuRMg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795451468; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=M7H95aoM6TqcfJVes2iJkkJ4cF1cNpvTGemm4pkwZNU=; b=JE2oNPLhaBoLK2MTYN+5Ewwmn4Z7NX42DMu/lAd2bVQ6EFDZnTEE/jOXoQPEKD2jyn78 ygjmoh2Fz9K0LgszICzzLB3831NBl3PqicxKvkYC7uJ+6Q3yO600n/CIGrHmcBUb9/y3P +wIxn/lwZAkAFDGNwMszmUv/rStxD6x+zQ0Bw6Hl7Tl6zhXADCNsAWpHnDoX8E/W9sgAb UiT2z4WepNwd0Tyy0VT5AHTV/oCCKtBzOPomc+4y2X33iRcJejI+iYiaU9HW3PpBh69jY hCCa8qLorbFcPdnkbe0Sk6Dh2gMU6hOPBTIP3fct2rApH90FvQJgHeqbq0GSvOpXcfw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id B22991F000D1; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795451468; bh=M7H95aoM6TqcfJVes2iJkkJ4cF1cNpvTGemm4pkwZNU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=UUOZkbclc2rPlHqoXAmlpgx3V9G2xPqHQve37MKue7dBm1d3gqU9TCe4X9fh41VAi eXhLnpUV2XHxhVdNaj+GhDjx7exsPZw8Zw31mlTcLYmfbmfClCaRw+OkRzj26hY85i 8o4Qb3T+/Evx8HmXFjKpTsj4epPj7eSAUDZ+U5u7CCtQTwTKHvdLIzZ/1Oo7kdl528 n6RMueH92eqkbkbP5sAsM2aGHhwoUgVRO+huJTJ8QRPSTBT/DY+9yz1Uyq7VOujOiA RPPjV4lwBgDFxZUvlidVawcpQk5rGtT/1StDAUCymXj4rUFndzUbwGc6nyu2eOJ+/Z DmE/DBbqucKUw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 41AC94C560; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 23 Nov 2026 17:30:41 +0100 Subject: [meta-webserver][scarthgap][PATCH 2/5] nginx: fix for CVE-2026-123634 MIME-Version: 1.0 Message-Id: <20261123-fix_nginx2root-v1-2-1b30332ed757@belden.com> References: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> In-Reply-To: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> To: openembedded-devel@lists.openembedded.org Cc: Patrick Vogelaar , patrick.vogelaar.dev@mailbox.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795451453; l=9456; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=Foy6MEvO8Vi4LDJjwGREg5W12ATygmpqSrryiB/Rx/A=; b=XPW1FRch3ctF74If0CrQBgncT5PydP17osXbuS0tu+/F0lbranP4LGU6YwY9rea3N7n/QvneL x5nbqSMneu4BBzsWj7CJixwgsOuq3eX0XRoKx3k39aPo6oGjEKrhyZP X-Developer-Key: i=patrick.vogelaar@belden.com; a=ed25519; pk=w0QU8RmOR3hQv1DxMcz6KmySeE8yqbvO0xC1ZSSUNqY= X-Endpoint-Received: by B4 Relay for patrick.vogelaar@belden.com/20240201 with auth_id=125 X-Original-From: Patrick Vogelaar Reply-To: patrick.vogelaar@belden.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 23 Nov 2026 16:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132907 From: Patrick Vogelaar Pick patch [0] and [1] as mentioned in [2]. [0] https://github.com/nginx/nginx/commit/338f6231e347c17a07c381802b1bc3c20c55b529 [1] https://github.com/nginx/nginx/commit/7426c29f140c330dd6c6cdfeb2943be1978c69e0 [2] https://security-tracker.debian.org/tracker/CVE-2026-123634 Signed-off-by: Patrick Vogelaar --- .../nginx/nginx-1.26.3/CVE-2026-123634-01.patch | 75 +++++++++++ .../nginx/nginx-1.26.3/CVE-2026-123634-02.patch | 139 +++++++++++++++++++++ meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb | 2 + 3 files changed, 216 insertions(+) diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123634-01.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123634-01.patch new file mode 100644 index 0000000000..4307fc9a53 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123634-01.patch @@ -0,0 +1,75 @@ +From 8ef79a87cb5818efd6dfde6a3618b36596ec5617 Mon Sep 17 00:00:00 2001 +From: Roman Arutyunyan +Date: Fri, 6 Nov 2026 20:02:09 +0400 +Subject: [PATCH 03/10] Resolver: report error on CNAME restart failure + +Previously, if restarting a resolve with a CNAME name failed due to a +memory allocation error, no error was reported. The waiting requests +were left detached from any node until their timeouts expired. + +Now the error is reported to the waiting requests immediately. + +(cherry picked from commit 338f6231e347c17a07c381802b1bc3c20c55b529) +CVE:CVE-2026-123634 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/338f6231e347c17a07c381802b1bc3c20c55b529] + +Signed-off-by: Patrick Vogelaar +--- + src/core/ngx_resolver.c | 34 ++++++++++++++++++++++++++++++++-- + 1 file changed, 32 insertions(+), 2 deletions(-) + +diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c +index c76c17852..b957cd892 100644 +--- a/src/core/ngx_resolver.c ++++ b/src/core/ngx_resolver.c +@@ -2550,7 +2550,22 @@ ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t n, + next->node = NULL; + } + +- (void) ngx_resolve_name_locked(r, ctx, &name); ++ if (ngx_resolve_name_locked(r, ctx, &name) == NGX_ERROR) { ++ ++ /* unlock name mutex */ ++ ++ do { ++ ctx->state = NGX_ERROR; ++ ctx->valid = ngx_time() + (r->valid ? r->valid : 10); ++ next = ctx->next; ++ ++ ctx->handler(ctx); ++ ++ ctx = next; ++ } while (ctx); ++ ++ return; ++ } + } + + /* unlock name mutex */ +@@ -2935,7 +2950,22 @@ ngx_resolver_process_srv(ngx_resolver_t *r, u_char *buf, size_t n, + next->node = NULL; + } + +- (void) ngx_resolve_name_locked(r, ctx, &name); ++ if (ngx_resolve_name_locked(r, ctx, &name) == NGX_ERROR) { ++ ++ /* unlock name mutex */ ++ ++ do { ++ ctx->state = NGX_ERROR; ++ ctx->valid = ngx_time() + (r->valid ? r->valid : 10); ++ next = ctx->next; ++ ++ ctx->handler(ctx); ++ ++ ctx = next; ++ } while (ctx); ++ ++ return; ++ } + } + + /* unlock name mutex */ +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123634-02.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123634-02.patch new file mode 100644 index 0000000000..5467ff3d4c --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123634-02.patch @@ -0,0 +1,139 @@ +From cd2559987468b6d78622927fe342be14985bfc9b Mon Sep 17 00:00:00 2001 +From: Roman Arutyunyan +Date: Wed, 28 Oct 2026 21:51:48 +0400 +Subject: [PATCH 04/10] Resolver: fix non-current resolve finalization from + resolve handler + +Previously, when a resolve handler called ngx_resolve_name_done() or +ngx_resolve_addr_done() for another resolve of the same name/address, +a use-after-free could happen while reporting the finalized resolve. +This may happen with upstream resolve when at least one subrequest is +resolving the same name, and the request is terminated from the +upstream resolve handler. + +The problem occurs when finalizing a non-current resolve that is +already detached from rn->waiting and is about to be reported. Such +cases produced "could not cancel" alerts. The resolve may also be +detached with its node reset, while following a CNAME, in which case +no alert was produced. + +Now the alerts are converted to debug messages and a finalizer is +installed into ctx->handler to release the context memory later. + +Reported by Xint.io. + +(cherry picked from commit 7426c29f140c330dd6c6cdfeb2943be1978c69e0) +CVE:CVE-2026-123634 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/7426c29f140c330dd6c6cdfeb2943be1978c69e0] + +Signed-off-by: Patrick Vogelaar +--- + src/core/ngx_resolver.c | 37 +++++++++++++++++++++++++++++++------ + 1 file changed, 31 insertions(+), 6 deletions(-) + +diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c +index b957cd892..c3467cf7e 100644 +--- a/src/core/ngx_resolver.c ++++ b/src/core/ngx_resolver.c +@@ -106,6 +106,7 @@ static ngx_int_t ngx_resolver_copy(ngx_resolver_t *r, ngx_str_t *name, + static ngx_int_t ngx_resolver_set_timeout(ngx_resolver_t *r, + ngx_resolver_ctx_t *ctx); + static void ngx_resolver_timeout_handler(ngx_event_t *ev); ++static void ngx_resolver_free_handler(ngx_resolver_ctx_t *ctx); + static void ngx_resolver_free_node(ngx_resolver_t *r, ngx_resolver_node_t *rn); + static void *ngx_resolver_alloc(ngx_resolver_t *r, size_t size); + static void *ngx_resolver_calloc(ngx_resolver_t *r, size_t size); +@@ -570,9 +571,11 @@ ngx_resolve_name_done(ngx_resolver_ctx_t *ctx) + w = w->next; + } + +- ngx_log_error(NGX_LOG_ALERT, r->log, 0, +- "could not cancel %V resolving", &ctx->name); ++ ngx_log_debug1(NGX_LOG_DEBUG_CORE, r->log, 0, ++ "could not cancel %V resolving", &ctx->name); + } ++ ++ ctx->handler = ngx_resolver_free_handler; + } + + done: +@@ -590,9 +593,12 @@ done: + + if (ctx->event) { + ngx_resolver_free_locked(r, ctx->event); ++ ctx->event = NULL; + } + +- ngx_resolver_free_locked(r, ctx); ++ if (ctx->handler != ngx_resolver_free_handler) { ++ ngx_resolver_free_locked(r, ctx); ++ } + + /* unlock alloc mutex */ + +@@ -1202,6 +1208,7 @@ ngx_resolve_addr_done(ngx_resolver_ctx_t *ctx) + } + } + ++#if (NGX_DEBUG) + { + u_char text[NGX_SOCKADDR_STRLEN]; + ngx_str_t addrtext; +@@ -1210,9 +1217,12 @@ ngx_resolve_addr_done(ngx_resolver_ctx_t *ctx) + addrtext.len = ngx_sock_ntop(ctx->addr.sockaddr, ctx->addr.socklen, + text, NGX_SOCKADDR_STRLEN, 0); + +- ngx_log_error(NGX_LOG_ALERT, r->log, 0, +- "could not cancel %V resolving", &addrtext); ++ ngx_log_debug1(NGX_LOG_DEBUG_CORE, r->log, 0, ++ "could not cancel %V resolving", &addrtext); + } ++#endif ++ ++ ctx->handler = ngx_resolver_free_handler; + } + + done: +@@ -1225,9 +1235,12 @@ done: + + if (ctx->event) { + ngx_resolver_free_locked(r, ctx->event); ++ ctx->event = NULL; + } + +- ngx_resolver_free_locked(r, ctx); ++ if (ctx->handler != ngx_resolver_free_handler) { ++ ngx_resolver_free_locked(r, ctx); ++ } + + /* unlock alloc mutex */ + +@@ -3005,6 +3018,11 @@ ngx_resolver_resolve_srv_names(ngx_resolver_ctx_t *ctx, ngx_resolver_node_t *rn) + ngx_resolver_ctx_t *cctx; + ngx_resolver_srv_name_t *srvs; + ++ if (ctx->handler == ngx_resolver_free_handler) { ++ ctx->handler(ctx); ++ return; ++ } ++ + r = ctx->resolver; + + ctx->node = NULL; +@@ -4136,6 +4154,13 @@ ngx_resolver_timeout_handler(ngx_event_t *ev) + } + + ++static void ++ngx_resolver_free_handler(ngx_resolver_ctx_t *ctx) ++{ ++ ngx_resolver_free(ctx->resolver, ctx); ++} ++ ++ + static void + ngx_resolver_free_node(ngx_resolver_t *r, ngx_resolver_node_t *rn) + { +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb index 18cd8bbfde..2b392fd6d6 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb @@ -9,6 +9,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a6547d7e5628787ee2a9c5a3480eb628" SRC_URI:append = " \ file://CVE-2026-28755.patch \ file://CVE-2026-123007.patch \ + file://CVE-2026-123634-01.patch \ + file://CVE-2026-123634-02.patch \ " SRC_URI[sha256sum] = "69ee2b237744036e61d24b836668aad3040dda461fe6f570f1787eab570c75aa" From patchwork Mon Nov 23 16:30:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Vogelaar via B4 Relay X-Patchwork-Id: 105276 Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.57534.1795451462252605963 for ; Mon, 23 Nov 2026 08:31:02 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=Um8Wcrxz; spf=pass (domain: kernel.org, ip: 172.234.252.31, mailfrom: devnull+patrick.vogelaar.belden.com@kernel.org) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 3FF96441EA; Mon, 23 Nov 2026 16:31:01 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795451460; b=jaVF/7ExhikNtulwXKu2A3k610f8c+TZaiqTDng/WikWm4cOjOaPITgRC4iTErTLoBS7 z9q4MvC0PM7LBlq3RZ/hm1sfhNwntVjoTbKKDE6jcg9qIqafOL+KnVG95O83qnswOtS01 ayiTu64S5FvMbsp96rrYITjQPDdqMyjVL3afa3z6c4VgnBQmYYhfn7Hn5myG4tepLhA6C wtDwHff4hLvl3NQsArk8npv3S1bqWZFL4x00nlckTHBiy7KJTmDG1BqP1E668Ct0rDUk4 wq8J4HEA0pTh6RShvLfoO2GYX05YYWTSHD501bt5K55wgeduralQX/zRDmTjPA6O8yg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795451460; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=LJ0LwEFfTgFwUQ56VR7KTpZe8TxoHT0lMvh5l7gdGQo=; b=2ReUQ7fE6XdRsLFcrKoeDboiDmvzXVNjBeEUypHY9TRjHY2Cvox1pw87g0kbSd7CBF2z gJCQk70Z+N1D6IqUgGL8jl667v+MOlwo16hSk5ZBuDetvRoG4yExo8oyDpCXYUiLWBxLX 3jv4lerNRCdOvfaeS0F1Ga1C5z1+rdM1khUFgfntnka153Nyc1n7Z737SRHjoT6XU75qO bgUk9tVofZD0xmBc3LZ1owTY7WELBFV+gFO/lwI15uffMS/ZjWdC8OFLYQyc5Jsu7RqjM CkF7NNTXqNq3iYNbFe2e7c9pvA09v2bUIkyovSHdQs5Sf+WxxcS9OADInDzhXWOR4dw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id CDD311F000D3; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795451460; bh=LJ0LwEFfTgFwUQ56VR7KTpZe8TxoHT0lMvh5l7gdGQo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=Um8Wcrxzp8JusPePD+jL5RsA2XYgMJrVNQ3vkEQ4v9YT2RHvOyaxWhb5ZEAohbo65 i4i5zKA5mAK8Am92uBXzMJl5UCGdEmwWZelj3Nk/Z3UO7Uxi+v2+gtsOp324mTknJT yz9n/ua740ACXeZFpj3PQ+b2ABiOgmoLdDCx1Q9P8HrCOEA74/JN5Fv847qLUYNbr5 hYbXhoYI5DLCn5iRnS/rs1HcSkmf7btucpncrJBrai3U2dVeM4PrI4Yzbqzxnc4SHW GR2/kqn/3uFswdYRULDuxnaSfXFs9zoshxfuHkpC5P4jRXwNMuhWM4CrIhrLjVFY8r nFpbZFo3IT3nQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 5D5AB4C564; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 23 Nov 2026 17:30:42 +0100 Subject: [meta-webserver][scarthgap][PATCH 3/5] nginx: fix for CVE-2026-123633 MIME-Version: 1.0 Message-Id: <20261123-fix_nginx2root-v1-3-1b30332ed757@belden.com> References: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> In-Reply-To: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> To: openembedded-devel@lists.openembedded.org Cc: Patrick Vogelaar , patrick.vogelaar.dev@mailbox.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795451453; l=3503; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=8ne8Hq06KrKlw3C0lbV9QNheDv1YKDvPDzLvmEPxz9o=; b=9nej8tvsik2E5fs8WUY68Yzp8ceoOkN6xh6NmpOuXy44JgoT2Kh6MQRiaJPh6aitm4AVsur4z 3NBJ999awAKCSwB8TMpqe22sda+C+zAUjV3TP1NBxitGDlNBwwK5h5H X-Developer-Key: i=patrick.vogelaar@belden.com; a=ed25519; pk=w0QU8RmOR3hQv1DxMcz6KmySeE8yqbvO0xC1ZSSUNqY= X-Endpoint-Received: by B4 Relay for patrick.vogelaar@belden.com/20240201 with auth_id=125 X-Original-From: Patrick Vogelaar Reply-To: patrick.vogelaar@belden.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 23 Nov 2026 16:31:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132903 From: Patrick Vogelaar Pick patch [0] as mentioned in [1]. [0] https://github.com/nginx/nginx/commit/0c87dd1db413e440a4e3ef7ee8acc518509e8809 [1] https://security-tracker.debian.org/tracker/CVE-2026-123633 Signed-off-by: Patrick Vogelaar --- .../nginx/nginx-1.26.3/CVE-2026-123633.patch | 52 ++++++++++++++++++++++ meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb | 1 + 2 files changed, 53 insertions(+) diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123633.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123633.patch new file mode 100644 index 0000000000..2656fdb2fd --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-123633.patch @@ -0,0 +1,52 @@ +From af325f83ebfa3ed843f691c2542d58e321b8faad Mon Sep 17 00:00:00 2001 +From: Roman Arutyunyan +Date: Thu, 17 Sep 2026 16:10:11 +0400 +Subject: [PATCH 02/10] HTTP/2: reset reusable connection status on stream + creation + +Previously, an HTTP/2 connection could be reusable while having streams. +This could result in an attempt to drain the connection while processing +one if its streams, for example when connecting to an upstream. After +recognizing that the connection has streams, an attempt to send the +GOAWAY frame was made. On send failure, the connection was immediately +closed and its pool released. This triggered a use-after-free up the +stack. + +Having an HTTP/2 connection with streams registered as reusable became +possible after 76672e650. A connection with no streams and a partial +frame read from client was registered as reusable to avoid DoS attacks. +So if a client sends only the first HEADERS frame byte, the connection +becomes reusable. Later, when the remaining HEADERS bytes are received +and a new stream is created, the reusable status is not reset until the +connection becomes idle. + +Fix is to mark the connection non-reusable upon stream creation. + +Reported by Albert @ Vexera AI. + +(cherry picked from commit 0c87dd1db413e440a4e3ef7ee8acc518509e8809) + +CVE: CVE-2026-123633 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/0c87dd1db413e440a4e3ef7ee8acc518509e8809] + +Signed-off-by: Patrick Vogelaar +--- + src/http/v2/ngx_http_v2.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c +index 7ab97bbf9..4a7395227 100644 +--- a/src/http/v2/ngx_http_v2.c ++++ b/src/http/v2/ngx_http_v2.c +@@ -3091,6 +3091,8 @@ ngx_http_v2_create_stream(ngx_http_v2_connection_t *h2c) + + h2c->processing++; + ++ ngx_reusable_connection(h2c->connection, 0); ++ + h2c->priority_limit += h2scf->concurrent_streams; + + if (h2c->connection->read->timer_set) { +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb index 2b392fd6d6..5d9fae672b 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb @@ -11,6 +11,7 @@ SRC_URI:append = " \ file://CVE-2026-123007.patch \ file://CVE-2026-123634-01.patch \ file://CVE-2026-123634-02.patch \ + file://CVE-2026-123633.patch \ " SRC_URI[sha256sum] = "69ee2b237744036e61d24b836668aad3040dda461fe6f570f1787eab570c75aa" From patchwork Mon Nov 23 16:30:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Vogelaar via B4 Relay X-Patchwork-Id: 105277 Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.57684.1795451466371296757 for ; Mon, 23 Nov 2026 08:31:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=TMNxdMzc; spf=pass (domain: kernel.org, ip: 172.234.252.31, mailfrom: devnull+patrick.vogelaar.belden.com@kernel.org) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id E69EE42AF2; Mon, 23 Nov 2026 16:31:05 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795451465; b=krVhhlIMEAVCQIIzdOmqW1GHwvk7LOqjPj+Hv57XwSZhXh83VbSA9DNfxs3PSqJKHSp+ EKLzAB62Z3WObRIg8dvHOR2//2SbJPYCAysPkjHaSQ940JtPno7Hmkc8tHKrJK7bcsEgZ Zw2jG9lPdNxMLnnBL1KLa+w8/cXHzZZUoQRvdgaaYicHkmw23UBWoN2vHrnK/3SSWTnGD FV42vKORlb+1PJAkRBaYdQcrAt/n23h41AIv7L5siOaR/n9S+W9HYDOu26wGlQQdz9yO8 GZ/Xn0FF8wL2niHuYiMmOcKQ/4kDzaJVESXF9lgA4uR2YkMcyOyWN/mJpdz3boUrOCg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795451465; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=HegcwButHpsN3X6gbpI/xw1W9zMTK2gzTlgSwZLDK7o=; b=J6B/1/kNpRO9YJRSKPLWCKRV4yEQ7if263WZgZ/5mB2adlzVMeHgYIHpFr6AKF+Wc5qe cfq1fcY9pGy9XFkuu+oEHe88KuZChtdfZ6BN5pwiSh8nU9J7py4PjVoCt3UXxBNoW/Bnt Rf8JpRXtxf2tEW/qjfEmo0APkP64uLPMJfZ+jIKizOnUmh2x1OpKyX3CHLMq0jKEhyD6m GLCkerc1VYvBPE1q3tbmptewl+qodmCyRA83wiUOAuIXmQf/jN+00az9pphB9pDULHnI7 POxpkvcqNemZLWBK6DXcROvAEJNIQgtAAv+5GE0AmgMzACgva3UP+Eco/VM7TqC9QPA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id E84401F000D4; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795451465; bh=HegcwButHpsN3X6gbpI/xw1W9zMTK2gzTlgSwZLDK7o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=TMNxdMzcWb29Her8fL5nCyhsOXRSWzu8AsxlSAG30AXJpL/ma4jbJhEqur7vOcbDJ WdW6XtcdLvsiUH+5aTWfImwvziW5f046I2SLvYQOsDaXCR5DUHyYShRA94PaLCGGqe ZPbT2raP+JsRp00ZkrgXkeHrQh2WeWOz2B/XIA/ejzqXpk7cth6SU9IpSVs3iVpxBP SL300oiv1iI0ZQuDTVy6fhk+Nl+BDDxHJ1r2XAEEXLWDAO24pTwivvtnTjzLRC7aU9 1zSlpkce1FMzU8NTtQyA/7ve/M6J7aASy59KhivVcOfo+axBoCO/x4y7+cs/8QgDG+ U4bE7QFy3b0IA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 782354C568; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 23 Nov 2026 17:30:43 +0100 Subject: [meta-webserver][scarthgap][PATCH 4/5] nginx: fix for CVE-2026-121810 MIME-Version: 1.0 Message-Id: <20261123-fix_nginx2root-v1-4-1b30332ed757@belden.com> References: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> In-Reply-To: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> To: openembedded-devel@lists.openembedded.org Cc: Patrick Vogelaar , patrick.vogelaar.dev@mailbox.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795451453; l=4251; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=18cQc14sXjcoz9SOGDhlCsgkBBPFKk//JMh2eLUdK9A=; b=pC1SRYzhL3vC17QEv7HRKy6oX63q72HNN9G+HFGcQoySIFVSv6IjV0jCZFLwZzUeARoPQlSMe PqDX1PZrBn5CCXSPazhB8FMaBDWdInmBTYo8PJ7iBoCw+sHVmIUdoFP X-Developer-Key: i=patrick.vogelaar@belden.com; a=ed25519; pk=w0QU8RmOR3hQv1DxMcz6KmySeE8yqbvO0xC1ZSSUNqY= X-Endpoint-Received: by B4 Relay for patrick.vogelaar@belden.com/20240201 with auth_id=125 X-Original-From: Patrick Vogelaar Reply-To: patrick.vogelaar@belden.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 23 Nov 2026 16:31:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132905 From: Patrick Vogelaar Pick patch [0] as mentioned in [1]. [0] https://github.com/nginx/nginx/commit/c58d2a22d12350766185c94f2245bf4be5bcfb7d [1] https://security-tracker.debian.org/tracker/CVE-2026-121810 Signed-off-by: Patrick Vogelaar --- .../nginx/nginx-1.26.3/CVE-2026-121810.patch | 70 ++++++++++++++++++++++ meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb | 1 + 2 files changed, 71 insertions(+) diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-121810.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-121810.patch new file mode 100644 index 0000000000..5a360bcebf --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-121810.patch @@ -0,0 +1,70 @@ +From 834889f29f789880eb68d4a7b824dc7fd247f65b Mon Sep 17 00:00:00 2001 +From: Roman Arutyunyan +Date: Sun, 1 Nov 2026 16:46:22 +0400 +Subject: [PATCH 05/10] QUIC: avoid main connection reuse after creating a + stream + +Previously, ngx_quic_create_stream() cleared the main connection's +reusable flag and then called ngx_get_connection() before inserting the +new stream into the tree. If the worker was low on free connections, +the drain inside ngx_get_connection() could close an idle stream of the +same main connection. Since the new stream was not in the tree yet, +that close found no remaining streams and marked the main connection +reusable again. Once reusable, the connection could later be drained +while processing one of its streams, for example when connecting to an +upstream, freeing it while still in use. + +Fix is to insert the new stream into the tree before calling +ngx_get_connection(), so the main connection is not considered idle. + +Reported by Xint.io. + +(cherry picked from commit c58d2a22d12350766185c94f2245bf4be5bcfb7d) +CVE: CVE-2026-121810 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/c58d2a22d12350766185c94f2245bf4be5bcfb7d] + +Signed-off-by: Patrick Vogelaar +--- + src/event/quic/ngx_event_quic_streams.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c +index a9a21f578..7fe044750 100644 +--- a/src/event/quic/ngx_event_quic_streams.c ++++ b/src/event/quic/ngx_event_quic_streams.c +@@ -731,12 +731,15 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id) + addr_text.data = NULL; + } + ++ ngx_rbtree_insert(&qc->streams.tree, &qs->node); ++ + reusable = c->reusable; + ngx_reusable_connection(c, 0); + + sc = ngx_get_connection(c->fd, log); + if (sc == NULL) { + ngx_destroy_pool(pool); ++ ngx_rbtree_delete(&qc->streams.tree, &qs->node); + ngx_queue_insert_tail(&qc->streams.free, &qs->queue); + ngx_reusable_connection(c, reusable); + return NULL; +@@ -803,6 +806,7 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id) + if (cln == NULL) { + ngx_close_connection(sc); + ngx_destroy_pool(pool); ++ ngx_rbtree_delete(&qc->streams.tree, &qs->node); + ngx_queue_insert_tail(&qc->streams.free, &qs->queue); + ngx_reusable_connection(c, reusable); + return NULL; +@@ -811,8 +815,6 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id) + cln->handler = ngx_quic_stream_cleanup_handler; + cln->data = sc; + +- ngx_rbtree_insert(&qc->streams.tree, &qs->node); +- + return qs; + } + +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb index 5d9fae672b..06c33d7846 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb @@ -12,6 +12,7 @@ SRC_URI:append = " \ file://CVE-2026-123634-01.patch \ file://CVE-2026-123634-02.patch \ file://CVE-2026-123633.patch \ + file://CVE-2026-121810.patch \ " SRC_URI[sha256sum] = "69ee2b237744036e61d24b836668aad3040dda461fe6f570f1787eab570c75aa" From patchwork Mon Nov 23 16:30:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Vogelaar via B4 Relay X-Patchwork-Id: 105280 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.57686.1795451474172176230 for ; Mon, 23 Nov 2026 08:31:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=fRLqQPNd; spf=pass (domain: kernel.org, ip: 172.105.4.254, mailfrom: devnull+patrick.vogelaar.belden.com@kernel.org) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 83BB062364; Mon, 23 Nov 2026 16:31:13 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795451473; b=YahQeJ8wDcBbq13wiH8ZDCvnN1kzeTfEBX0YRoH29xGEtls+HLBt46gmTohXdB67Is5S YwPCqE6B3eAZJZejpcFGbdf4740Q2T2irEnJlWyDUnm0x4PGTAbOqyKWeXBD0w79rakbI Loa7qLyBnAdYK5DPR9R704WwlRTK7ZiRqygjMCjfTfNWV+HA+W6aJomXkqT8o1ZAqYJjT KVEEDFQSyAFRsPwh1k/R84HWK5lBgKImM4WeqcQblumxHiF3g8h4yFXm+mjWRnFc6T2M4 otdjhvquCXsyA2SVfgvoGu0JMAPvcM0MP+caNilEoTTjnzuOgC1KEqYmksAeGsywKYg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795451473; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=U7MFp21/ETlCvzR8oHyFdFaXS50TRS6TDYvWMMal1FM=; b=xc80nKQ8f9ZU3h681IKWINvXOp/9OEW2qepv9BUllCn4QjOuHuc7joFwOAvBn2lae+4q nuEHhoMPQ1gztbuHZ4R+XBtKB1c/8F9z2elbacdWW1lzrsHPJHTheznSNIsJyv+ZmrVnk FdBSBeOaog1d5hUdYHqPvg81AnE4IhMI9Qr9DSo1oZoy6QHNYZB6O1D+ZIdUdp729GfrD bJWUxiFNjWMbsPHkplmty+WrWReRfQck7pojP4/qEgAbZFulbYb5yZze63F2Hr0/MK3qE m7Fi9BYNWBVE9zhBRatO2PV8HH/EAn+v8zPjcLXRe67aRzciOIkDUGGnVIdn+v/5ueA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id AF3E61F000CF; Mon, 23 Nov 2026 16:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795451473; bh=U7MFp21/ETlCvzR8oHyFdFaXS50TRS6TDYvWMMal1FM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=fRLqQPNdB599aJL0br2xt0vNQu7a+JOswQcSAFD5bJf45dJIo5ueLljSRylZYyQIS KnP3GiOyPdPOw1CDySg28Vc8+3yVmbmVC6nlqDgvjORO/wyM8IYjbhkAoGX+C5zdy3 v1O/SazOx1vmZl0QR9oyswDzB4h73SLTlOZ16YcgkrCEjGJmtJzKBYygZHxpWwNKYS y6ZPyyuSsHio+RJ/IZC1JwIaf9muyO2ULoemaHc1phpmaqxllMSdk5g149ekGl3ZjQ jahR37WPRhgsnKvwsb2CyWdlXuKnDs6C9gNUNpmvEXYVxPDlrV96oHIJcMGaL+QKDM YN4yoz2GW2x7A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 9276F4C56C; Mon, 23 Nov 2026 16:30:54 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 23 Nov 2026 17:30:44 +0100 Subject: [meta-webserver][scarthgap][PATCH 5/5] nginx: fix for CVE-2026-113425 MIME-Version: 1.0 Message-Id: <20261123-fix_nginx2root-v1-5-1b30332ed757@belden.com> References: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> In-Reply-To: <20261123-fix_nginx2root-v1-0-1b30332ed757@belden.com> To: openembedded-devel@lists.openembedded.org Cc: Patrick Vogelaar , patrick.vogelaar.dev@mailbox.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795451453; l=19523; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=bOBqLCZWpnZg6p/zIFDYxdGRnhGDx9i08rXRsGKspSE=; b=tBGtTe7PSm+/xp8QsVdSJ7OvX++2w6VD9iStx3GYyiMJ2K8FQ5rTlp8JMnMXcky0LqGejVohn odOUdVm/j6XBLB3wdusp43OPpJhFLK2TceIYI83RTC2baA6nDvUG2ls X-Developer-Key: i=patrick.vogelaar@belden.com; a=ed25519; pk=w0QU8RmOR3hQv1DxMcz6KmySeE8yqbvO0xC1ZSSUNqY= X-Endpoint-Received: by B4 Relay for patrick.vogelaar@belden.com/20240201 with auth_id=125 X-Original-From: Patrick Vogelaar Reply-To: patrick.vogelaar@belden.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 23 Nov 2026 16:31:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132908 From: Patrick Vogelaar Pick patch [0], [1], [2], [3] and [4] as mentioned in [5]. [0] https://github.com/nginx/nginx/commit/9e811a43119ac902f0d0296fb4afb34bb063cf1b [1] https://github.com/nginx/nginx/commit/df9d8d940ecb83a50b1e55ccc296d0a29cfe774c [2] https://github.com/nginx/nginx/commit/e2d23d45fa93ed236a9cdedcb54271e0a064c4f3 [3] https://github.com/nginx/nginx/commit/5deda780a9d5d1bcd5c6731d3118fa090ae900cc [4] https://github.com/nginx/nginx/commit/4c5ace9f1d5419334a2e6772a0885ee7ed3d6e91 [5] https://security-tracker.debian.org/tracker/CVE-2026-113425 Signed-off-by: Patrick Vogelaar --- .../nginx/nginx-1.26.3/CVE-2026-113425-01.patch | 94 +++++++++++++++++ .../nginx/nginx-1.26.3/CVE-2026-113425-02.patch | 44 ++++++++ .../nginx/nginx-1.26.3/CVE-2026-113425-03.patch | 87 ++++++++++++++++ .../nginx/nginx-1.26.3/CVE-2026-113425-04.patch | 72 +++++++++++++ .../nginx/nginx-1.26.3/CVE-2026-113425-05.patch | 116 +++++++++++++++++++++ meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb | 5 + 6 files changed, 418 insertions(+) diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-01.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-01.patch new file mode 100644 index 0000000000..17bf039918 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-01.patch @@ -0,0 +1,94 @@ +From cb07812b72e5f90a159a0e81e4669a115e8a2c2c Mon Sep 17 00:00:00 2001 +From: Maxim Dounin +Date: Sat, 20 Jun 2026 05:04:41 +0300 +Subject: [PATCH 06/10] Mail: updated ngx_mail_send() to set handlers on + s->quit. + +Most notably, this fixes potential issues when a fatal error message is +sent with ngx_mail_send() with s->quit set, but the read handler is not +updated. Despite s->quit, ngx_mail_send() might not be able to send the +error message immediately, and the read handler might be called on read +events. In particular, in ngx_mail_auth_http_block_read() and in +ngx_mail_proxy_block_read() this could potentially cause accesses to +freed memory or already closed connections in ngx_handle_read_event() +error handling code paths. + +Reported by Evan Hellman, +https://github.com/freenginx/nginx/issues/23 +https://github.com/freenginx/nginx/issues/24 + +Signed-off-by: Vadim Zhestikov +Origin: + +(cherry picked from commit 9e811a43119ac902f0d0296fb4afb34bb063cf1b) +CVE:CVE-2026-113425 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/9e811a43119ac902f0d0296fb4afb34bb063cf1b] + +Signed-off-by: Patrick Vogelaar +--- + src/mail/ngx_mail_handler.c | 21 +++++++++++++++++---- + 1 file changed, 17 insertions(+), 4 deletions(-) + +diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c +index 1167df3fb..5a8b59446 100644 +--- a/src/mail/ngx_mail_handler.c ++++ b/src/mail/ngx_mail_handler.c +@@ -14,6 +14,7 @@ + static void ngx_mail_proxy_protocol_handler(ngx_event_t *rev); + static void ngx_mail_init_session_handler(ngx_event_t *rev); + static void ngx_mail_init_session(ngx_connection_t *c); ++static void ngx_mail_block_read(ngx_event_t *rev); + + #if (NGX_MAIL_SSL) + static void ngx_mail_ssl_init_connection(ngx_ssl_t *ssl, ngx_connection_t *c); +@@ -415,8 +416,6 @@ ngx_mail_verify_cert(ngx_mail_session_t *s, ngx_connection_t *c) + s->out = cscf->protocol->cert_error; + s->quit = 1; + +- c->write->handler = ngx_mail_send; +- + ngx_mail_send(s->connection->write); + return NGX_ERROR; + } +@@ -436,8 +435,6 @@ ngx_mail_verify_cert(ngx_mail_session_t *s, ngx_connection_t *c) + s->out = cscf->protocol->no_cert; + s->quit = 1; + +- c->write->handler = ngx_mail_send; +- + ngx_mail_send(s->connection->write); + return NGX_ERROR; + } +@@ -818,6 +815,11 @@ again: + + ngx_add_timer(c->write, cscf->timeout); + ++ if (s->quit) { ++ c->read->handler = ngx_mail_block_read; ++ c->write->handler = ngx_mail_send; ++ } ++ + if (ngx_handle_write_event(c->write, 0) != NGX_OK) { + ngx_mail_close_connection(c); + return; +@@ -936,6 +938,17 @@ ngx_mail_session_internal_server_error(ngx_mail_session_t *s) + } + + ++static void ++ngx_mail_block_read(ngx_event_t *rev) ++{ ++ ngx_log_debug0(NGX_LOG_DEBUG_MAIL, rev->log, 0, "mail block read"); ++ ++ if (ngx_handle_read_event(rev, 0) != NGX_OK) { ++ ngx_mail_close_connection(rev->data); ++ } ++} ++ ++ + void + ngx_mail_close_connection(ngx_connection_t *c) + { +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-02.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-02.patch new file mode 100644 index 0000000000..b0a2ed8946 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-02.patch @@ -0,0 +1,44 @@ +From 602d172c5721bfcfb116314e18ef07ac7c96bdc7 Mon Sep 17 00:00:00 2001 +From: Vadim Zhestikov +Date: Wed, 4 Nov 2026 09:54:11 -0800 +Subject: [PATCH 07/10] Mail: fixed use-after-free on client reset during + auth_http request + +When a client command starts an auth_http request, the default reply +set by the POP3, IMAP and SMTP auth state handlers remains in s->out, +though it is never used: the actual reply depends on the auth_http +response. With ngx_mail_send() as the client write handler, the reply +could be sent before the authentication result was known, and if the +client reset the connection, the failed send destroyed the session +while the auth_http connection still referenced it. + +The queued reply is now discarded when the auth_http request starts, +similarly to ngx_mail_proxy_init(). + +Reported by Xint.io. + +(cherry picked from commit df9d8d940ecb83a50b1e55ccc296d0a29cfe774c) +CVE:CVE-2026-113425 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/df9d8d940ecb83a50b1e55ccc296d0a29cfe774c] + +Signed-off-by: Patrick Vogelaar +--- + src/mail/ngx_mail_auth_http_module.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c +index 27f64b92e..0e8b5209c 100644 +--- a/src/mail/ngx_mail_auth_http_module.c ++++ b/src/mail/ngx_mail_auth_http_module.c +@@ -216,6 +216,8 @@ ngx_mail_auth_http_init(ngx_mail_session_t *s) + ctx->peer.connection->data = s; + ctx->peer.connection->pool = s->connection->pool; + ++ s->out.len = 0; ++ + s->connection->read->handler = ngx_mail_auth_http_block_read; + ctx->peer.connection->read->handler = ngx_mail_auth_http_read_handler; + ctx->peer.connection->write->handler = ngx_mail_auth_http_write_handler; +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-03.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-03.patch new file mode 100644 index 0000000000..e9b67e1559 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-03.patch @@ -0,0 +1,87 @@ +From 4c09e093caaabc001fa129c52caeec0d48364499 Mon Sep 17 00:00:00 2001 +From: Vadim Zhestikov +Date: Wed, 4 Nov 2026 09:54:11 -0800 +Subject: [PATCH 08/10] Mail: blocked client writes while waiting for auth_http + response + +While waiting for the auth_http response, the client read handler is +ngx_mail_auth_http_block_read(), but the write handler was left as +ngx_mail_send(), so a client write event during the wait was handled +by a function which can close the client connection, destroying the +session while the auth_http connection still referenced it. + +The client write handler is now blocked while waiting for the auth_http +response, with proper cleanup on errors, and restored right after the +auth_http connection is closed. + +(cherry picked from commit e2d23d45fa93ed236a9cdedcb54271e0a064c4f3) +CVE:CVE-2026-113425 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/e2d23d45fa93ed236a9cdedcb54271e0a064c4f3] + +Signed-off-by: Patrick Vogelaar +--- + src/mail/ngx_mail_auth_http_module.c | 27 +++++++++++++++++++++++++++ + 1 file changed, 27 insertions(+) + +diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c +index 0e8b5209c..58f7ee61b 100644 +--- a/src/mail/ngx_mail_auth_http_module.c ++++ b/src/mail/ngx_mail_auth_http_module.c +@@ -70,6 +70,7 @@ static void ngx_mail_auth_sleep_handler(ngx_event_t *rev); + static ngx_int_t ngx_mail_auth_http_parse_header_line(ngx_mail_session_t *s, + ngx_mail_auth_http_ctx_t *ctx); + static void ngx_mail_auth_http_block_read(ngx_event_t *rev); ++static void ngx_mail_auth_http_block_write(ngx_event_t *wev); + static void ngx_mail_auth_http_dummy_handler(ngx_event_t *ev); + static ngx_buf_t *ngx_mail_auth_http_create_request(ngx_mail_session_t *s, + ngx_pool_t *pool, ngx_mail_auth_http_conf_t *ahcf); +@@ -219,6 +220,7 @@ ngx_mail_auth_http_init(ngx_mail_session_t *s) + s->out.len = 0; + + s->connection->read->handler = ngx_mail_auth_http_block_read; ++ s->connection->write->handler = ngx_mail_auth_http_block_write; + ctx->peer.connection->read->handler = ngx_mail_auth_http_read_handler; + ctx->peer.connection->write->handler = ngx_mail_auth_http_write_handler; + +@@ -690,6 +692,8 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s, + + ngx_close_connection(ctx->peer.connection); + ++ s->connection->write->handler = ngx_mail_send; ++ + if (ctx->err.len) { + + ngx_log_error(NGX_LOG_INFO, s->connection->log, 0, +@@ -1122,6 +1126,29 @@ ngx_mail_auth_http_block_read(ngx_event_t *rev) + } + + ++static void ++ngx_mail_auth_http_block_write(ngx_event_t *wev) ++{ ++ ngx_connection_t *c; ++ ngx_mail_session_t *s; ++ ngx_mail_auth_http_ctx_t *ctx; ++ ++ ngx_log_debug0(NGX_LOG_DEBUG_MAIL, wev->log, 0, ++ "mail auth http block write"); ++ ++ if (ngx_handle_write_event(wev, 0) != NGX_OK) { ++ c = wev->data; ++ s = c->data; ++ ++ ctx = ngx_mail_get_module_ctx(s, ngx_mail_auth_http_module); ++ ++ ngx_close_connection(ctx->peer.connection); ++ ngx_destroy_pool(ctx->pool); ++ ngx_mail_session_internal_server_error(s); ++ } ++} ++ ++ + static void + ngx_mail_auth_http_dummy_handler(ngx_event_t *ev) + { +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-04.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-04.patch new file mode 100644 index 0000000000..b38c34564a --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-04.patch @@ -0,0 +1,72 @@ +From 24408a432f0110f3baf78e306198ebe35d61d82f Mon Sep 17 00:00:00 2001 +From: Vadim Zhestikov +Date: Wed, 4 Nov 2026 09:54:11 -0800 +Subject: [PATCH 09/10] Mail: blocked client writes while connecting to + upstream + +While connecting to the upstream and reading its greeting, the client +read handler is ngx_mail_proxy_block_read(), but the client write +handler was left as it was. If ngx_handle_write_event() failed in it, +the client connection was closed without the upstream one, and the next +upstream event accessed the freed session. + +The client write handler is now ngx_mail_proxy_block_write(), which +closes both connections on errors the same way +ngx_mail_proxy_block_read() does. + +(cherry picked from commit 5deda780a9d5d1bcd5c6731d3118fa090ae900cc) +CVE: CVE-2026-113425 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/5deda780a9d5d1bcd5c6731d3118fa090ae900cc] + +Signed-off-by: Patrick Vogelaar +--- + src/mail/ngx_mail_proxy_module.c | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +diff --git a/src/mail/ngx_mail_proxy_module.c b/src/mail/ngx_mail_proxy_module.c +index efed9ab3e..de09f2ad3 100644 +--- a/src/mail/ngx_mail_proxy_module.c ++++ b/src/mail/ngx_mail_proxy_module.c +@@ -24,6 +24,7 @@ typedef struct { + + + static void ngx_mail_proxy_block_read(ngx_event_t *rev); ++static void ngx_mail_proxy_block_write(ngx_event_t *wev); + static void ngx_mail_proxy_pop3_handler(ngx_event_t *rev); + static void ngx_mail_proxy_imap_handler(ngx_event_t *rev); + static void ngx_mail_proxy_smtp_handler(ngx_event_t *rev); +@@ -165,6 +166,7 @@ ngx_mail_proxy_init(ngx_mail_session_t *s, ngx_addr_t *peer) + p->upstream.connection->pool = s->connection->pool; + + s->connection->read->handler = ngx_mail_proxy_block_read; ++ s->connection->write->handler = ngx_mail_proxy_block_write; + p->upstream.connection->write->handler = ngx_mail_proxy_write_handler; + + pcf = ngx_mail_get_module_srv_conf(s, ngx_mail_proxy_module); +@@ -223,6 +225,23 @@ ngx_mail_proxy_block_read(ngx_event_t *rev) + } + + ++static void ++ngx_mail_proxy_block_write(ngx_event_t *wev) ++{ ++ ngx_connection_t *c; ++ ngx_mail_session_t *s; ++ ++ ngx_log_debug0(NGX_LOG_DEBUG_MAIL, wev->log, 0, "mail proxy block write"); ++ ++ if (ngx_handle_write_event(wev, 0) != NGX_OK) { ++ c = wev->data; ++ s = c->data; ++ ++ ngx_mail_proxy_close_session(s); ++ } ++} ++ ++ + static void + ngx_mail_proxy_pop3_handler(ngx_event_t *rev) + { +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-05.patch b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-05.patch new file mode 100644 index 0000000000..5636eabdc8 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx-1.26.3/CVE-2026-113425-05.patch @@ -0,0 +1,116 @@ +From 092dab10a5ba4d5d8e951a6284fc493915ef5e34 Mon Sep 17 00:00:00 2001 +From: Vadim Zhestikov +Date: Wed, 4 Nov 2026 09:54:11 -0800 +Subject: [PATCH 10/10] Mail: blocked client writes while resolving SMTP client + +While the SMTP client address and name are being resolved, the client +read handler is ngx_mail_smtp_block_reading(), but the client write +handler was ngx_mail_send(). If ngx_handle_write_event() failed in it, +the client connection was closed, but the resolver context was not +cancelled, and the resolver handler accessed the freed session when the +resolving completed or timed out. + +The client write handler is now ngx_mail_smtp_block_writing(), which +cancels the resolver context on errors the same way +ngx_mail_smtp_block_reading() does. ngx_mail_send() is restored in +ngx_mail_smtp_greeting(), which is also needed with smtp_greeting_delay, +where the error is sent without s->quit, and in +ngx_mail_smtp_resolve_addr_handler() before the posted name resolving, +where s->resolver_ctx still points to a context which is already done. + +(cherry picked from commit 4c5ace9f1d5419334a2e6772a0885ee7ed3d6e91) +CVE: CVE-2026-113425 +Upstream-Status: Backport [https://github.com/nginx/nginx/commit/4c5ace9f1d5419334a2e6772a0885ee7ed3d6e91] + +Signed-off-by: Patrick Vogelaar +--- + src/mail/ngx_mail_smtp_handler.c | 38 ++++++++++++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + +diff --git a/src/mail/ngx_mail_smtp_handler.c b/src/mail/ngx_mail_smtp_handler.c +index e68ceedfd..d5b3408fd 100644 +--- a/src/mail/ngx_mail_smtp_handler.c ++++ b/src/mail/ngx_mail_smtp_handler.c +@@ -16,6 +16,7 @@ static void ngx_mail_smtp_resolve_addr_handler(ngx_resolver_ctx_t *ctx); + static void ngx_mail_smtp_resolve_name(ngx_event_t *rev); + static void ngx_mail_smtp_resolve_name_handler(ngx_resolver_ctx_t *ctx); + static void ngx_mail_smtp_block_reading(ngx_event_t *rev); ++static void ngx_mail_smtp_block_writing(ngx_event_t *wev); + static void ngx_mail_smtp_greeting(ngx_mail_session_t *s, ngx_connection_t *c); + static void ngx_mail_smtp_invalid_pipelining(ngx_event_t *rev); + static ngx_int_t ngx_mail_smtp_create_buffer(ngx_mail_session_t *s, +@@ -91,6 +92,7 @@ ngx_mail_smtp_init_session(ngx_mail_session_t *s, ngx_connection_t *c) + + s->resolver_ctx = ctx; + c->read->handler = ngx_mail_smtp_block_reading; ++ c->write->handler = ngx_mail_smtp_block_writing; + + if (ngx_resolve_addr(ctx) != NGX_OK) { + ngx_mail_close_connection(c); +@@ -144,6 +146,7 @@ ngx_mail_smtp_resolve_addr_handler(ngx_resolver_ctx_t *ctx) + "address resolved: %V", &s->host); + + c->read->handler = ngx_mail_smtp_resolve_name; ++ c->write->handler = ngx_mail_send; + + ngx_post_event(c->read, &ngx_posted_events); + } +@@ -175,6 +178,7 @@ ngx_mail_smtp_resolve_name(ngx_event_t *rev) + + s->resolver_ctx = ctx; + c->read->handler = ngx_mail_smtp_block_reading; ++ c->write->handler = ngx_mail_smtp_block_writing; + + if (ngx_resolve_name(ctx) != NGX_OK) { + ngx_mail_close_connection(c); +@@ -277,6 +281,38 @@ ngx_mail_smtp_block_reading(ngx_event_t *rev) + } + + ++static void ++ngx_mail_smtp_block_writing(ngx_event_t *wev) ++{ ++ ngx_connection_t *c; ++ ngx_mail_session_t *s; ++ ngx_resolver_ctx_t *ctx; ++ ++ c = wev->data; ++ s = c->data; ++ ++ ngx_log_debug0(NGX_LOG_DEBUG_MAIL, c->log, 0, "smtp writing blocked"); ++ ++ if (ngx_handle_write_event(wev, 0) != NGX_OK) { ++ ++ if (s->resolver_ctx) { ++ ctx = s->resolver_ctx; ++ ++ if (ctx->handler == ngx_mail_smtp_resolve_addr_handler) { ++ ngx_resolve_addr_done(ctx); ++ ++ } else if (ctx->handler == ngx_mail_smtp_resolve_name_handler) { ++ ngx_resolve_name_done(ctx); ++ } ++ ++ s->resolver_ctx = NULL; ++ } ++ ++ ngx_mail_close_connection(c); ++ } ++} ++ ++ + static void + ngx_mail_smtp_greeting(ngx_mail_session_t *s, ngx_connection_t *c) + { +@@ -301,6 +337,8 @@ ngx_mail_smtp_greeting(ngx_mail_session_t *s, ngx_connection_t *c) + ngx_post_event(c->read, &ngx_posted_events); + } + ++ c->write->handler = ngx_mail_send; ++ + if (sscf->greeting_delay) { + c->read->handler = ngx_mail_smtp_invalid_pipelining; + return; +-- +2.43.0 + diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb index 06c33d7846..856bc87492 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb @@ -13,6 +13,11 @@ SRC_URI:append = " \ file://CVE-2026-123634-02.patch \ file://CVE-2026-123633.patch \ file://CVE-2026-121810.patch \ + file://CVE-2026-113425-01.patch \ + file://CVE-2026-113425-02.patch \ + file://CVE-2026-113425-03.patch \ + file://CVE-2026-113425-04.patch \ + file://CVE-2026-113425-05.patch \ " SRC_URI[sha256sum] = "69ee2b237744036e61d24b836668aad3040dda461fe6f570f1787eab570c75aa"