From patchwork Mon Nov 30 11:26:38 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: 106481 Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30412.1796038023549938789 for ; Mon, 30 Nov 2026 03:27:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=UF2dcKLH; 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 5B6B4429C6; Mon, 30 Nov 2026 11:27:03 +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=1796038022; b=pOkEKjzeoNU1eLtqLrXEJpB0KenuGP9mv5KnyvmyElup5mAsRME47wavu6QrwiNa2FCE w9Uva0rps91uo5ad+rU7DhRzOqnYWyQdsxRq/WWy8+XUj7iLZTRGK0y7sYyNZe3WumsUC iAE+beZR6y4fWqtJKUMbyPSetrppOid5cX8fJbrcORFsvdEdJLRtrmvaqJMJeDd/Gm102 Pv7fruLnphalBw35mOVpGAroYg8wUW502kvLzm5+4XIjcEpNYmyfup7Kg6jLVW/gWIrwy iaMniZps9pleW/9uLchATPOVI7zEKfO+rCrGWik1RFYPNhNgjGOGriN8yoFhC/BH68w== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796038022; 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=SwFMoX3lTtVfIhG/pT2DVMa/01GCr2Jejd6JyoCKru+B5cXmfecEs3wDbdFWPFi/h4Aq YaHka83pd7pbmfSLhOubMrSQo0u2zG5IgwlY8qg7GE9Sd4B7hF0qcalxsCQx9yxUgrYdj s3eaRzXkt33Mi+dBsnhE6HLRnemIRU3PCcWJvWOIcXGKsImxVESlDIuneA5JgoGJbxr2r 4v9ZLyNiLTLvLMVfOHEIKwUz/fD5mVVrMYmpn+xbLt/nURB1Ra2RNM2zKIxu+GIjS9L1D RLSNeDJF+WnaI272XGnZvSDM8T5VIZ3CjNHarpYXnCQBTpN6nyboDV5xVT2IS00iw7w== 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 784B11F0089B; Mon, 30 Nov 2026 11:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796038022; bh=HegcwButHpsN3X6gbpI/xw1W9zMTK2gzTlgSwZLDK7o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=UF2dcKLH0w5EgDSNrnclTcHayLgRsRSRjl92jLo7YDzW76A0ohFgwVZnXX5W9VPQV YG3poBZNkwPfol6P2kAn8v1gjIr7If5R5kTL0JWBKPSOa91uZLMs6qXC7g/fES4aWi eTJYgloO4PiC5xYJNeJn4xKV3F+N4n2AMBNG9W1nfSutqescPa37PWQ1juKwtCFIzm AfbBzRMg2q94pN8WhBrjg9jdzujERjk4gVLkw2R6g+14ZCCwfRsuE7jnZej5mrr+HF WOOULE6yQ0FZ+5ibxTFTNiuVbTJ9Us+djlFbtH4GOwxQ910e4rha5tiwhIkCCz00Nv OoS0nb1AC+LKA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 0292F4E7EB; Mon, 30 Nov 2026 11:26:40 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 30 Nov 2026 12:26:38 +0100 Subject: [meta-webserver][scarthgap][PATCH v2 4/5] nginx: fix for CVE-2026-121810 MIME-Version: 1.0 Message-Id: <20261130-fix_nginx2root-v2-4-d5bc7476bdab@belden.com> References: <20261130-fix_nginx2root-v2-0-d5bc7476bdab@belden.com> In-Reply-To: <20261130-fix_nginx2root-v2-0-d5bc7476bdab@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=1796037998; l=4251; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=18cQc14sXjcoz9SOGDhlCsgkBBPFKk//JMh2eLUdK9A=; b=eEVAORXk9Rz9mXtvr9M5E/c5JSuSRHlgLV2HQTjosg6iYrpc3CSouyIpJn+u5xBGctXBMsPnN wQj0N7SfTj/BoLaL3/RJw2SpGMMxfQnyarddwa7gt+dD0wGp3VQbsB+ 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, 30 Nov 2026 11:27:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133539 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"