From patchwork Mon Nov 30 11:26:35 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: 106479 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30410.1796038012271232704 for ; Mon, 30 Nov 2026 03:26:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20260515 header.b=FhYRV1V1; 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 D352C61F4F; Mon, 30 Nov 2026 11:26:50 +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=1796038009; b=nHnbEALrAys/xbbFbGg7LVWFHoHWeC2zt3On6VTIkrvxl7iJCwRfqWgBgd475/nkYjAc Rwt1wrHzPtTgsmupnRzLh/4hIZUrKdyJZGYxKv12/GE70Syq+tWGYCxtQh3YUaFvgJSAM GJnOFxDBd4AlKvwjRGZjt1dpJ4yjJ+mtyyg2+gSZWk6nGYUgGIft/LJqhlaFt84qOln6G ZA8vCJlnZXPZCZlou8qbuCZCBNM1Oynh2PZS7OZM1G7byekpoaHS56jjptYEk0mS76LET Dw4u4ADuAayEsKN9XURS8oUcreXYR6HAItGoKKWEfl7YtgVDhLbm5Se3CxTh/ki+U0Q== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796038009; 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=avG2EizsBgHew0DcoMWlagwyvMsdZxyCtusVxpI9bdG7izTcl180hTr7gr66xGh764PE vXhPdN3WKy7KsBjt3/x+aHY9/gSasXGYwc9+k5b0Y8sGflvuaoyq5XKC4OFcCPbFvoT5S UwnK4vDpxtQJhYxqH/TyLPQW4OLoTfuJdPsRNLzpo9upibQl1qoecQhBZedPZ6FT+3vbK l9cwf3C5g7+bCP5k1z2nYt/8WptwugiQXvKyUihPWRYvt0RmXBAI7Trw1HOy4mxxeUuD/ grKzI3vfqB+aMAUwgf6Qo/IJyCq3N1akeHI5178myhITa9pBnADzODvXHcGjbct0nQw== 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 173821F000C1; 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=1796038009; bh=8RPLc9R+imROcfxP6fu/96/JcV3of+Mk5pjOa7hl9ZU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=FhYRV1V1bb7xj2i4oD4u2Z1gwD0dEgrDVHFGTfdHyt3NhA/A9WZxyW8XOT+Dj0fD6 pEUytsgfEq9MSP0Phel5dA2yVRpx+7usCI0qKhM31LUrJ//xIDI9yQqd/C+SuA05Dn D2RKDbzC3KNk+17WiwQtsMkUvybekNtiv4YCHcoa7VXbNlatYSbyir1tiGoWgepa+u kKiFdG/m472tVH1y6kw67JTc01qtaCWkGoYXr+ae4ZeJ98Vtw21yZoWaXaoPP+Ftaw GgUGQAKkiPcryU52Ym7372HP+Ps5z78Kmw7mralMWzD+gTan2P6UXo3kML2BjkEWQf 8gMoferfboz+A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 9058D4E7DF; Mon, 30 Nov 2026 11:26:39 +0000 (UTC) From: Patrick Vogelaar via B4 Relay Date: Mon, 30 Nov 2026 12:26:35 +0100 Subject: [meta-webserver][scarthgap][PATCH v2 1/5] nginx: fix for CVE-2026-123007 MIME-Version: 1.0 Message-Id: <20261130-fix_nginx2root-v2-1-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=5389; i=patrick.vogelaar@belden.com; s=20240201; h=from:subject:message-id; bh=sl+SYHio9pl1mwO2VG7JCTHtcn53Bo+ql8yxIo4agnI=; b=y+m2ssu//FH9Mj2CKULjX/km0AnvMOvVXf0So1fG4KsNTQoKTYXrxS63neFmsLSfXzlo8MdYW d2lrycFfzEaBqrlu6rC/2W54c8/zn4k0VCe6x40PwG/zqqk+aj29TAq 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:26:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133537 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"