Hi, I've prepared nginx 1.22.1-9+deb12u12 for bookworm-security. Attached is the debdiff ready for review, and attached is a draft DLA announcement.
I have also sent the same fixes to the security team for trixie. I will
reserve the DLA and upload once they issue a DSA if there are no issues.
The patch is taken directly from upstream' two commits referenced in the
CVE notes and applies cleanly without any changes required.
[ Details ]
The debdiff contains only the following change:
* Backport security fixes from upstream 1.30.8:
- d/p/CVE-2026-132779.patch: avoid repeating send_chain() when it sent
nothing.
The patch description (taken from upstream's commit messages):
Previously, ngx_http_write_filter() re-posted the write event to
continue a capped send whenever output data remained and
c->write->ready was still set. This was wrong when c->send_chain()
returned without sending anything while the write event still looked
ready, notably when SSL_write() returned SSL_ERROR_WANT_READ. The
event was then re-posted on every event loop iteration, busy-looping
the worker at 100% CPU.
The implicit progress check was lost in 00f4be1 (1.21.4). It is
now restored by requiring that c->send_chain() advanced c->sent.
Previously, ngx_chain_writer() re-posted the write event to continue
a capped send whenever output data remained and c->write->ready was
still set. This was wrong when c->send_chain() returned without
sending anything while the write event still looked ready, notably
when SSL_write() returned SSL_ERROR_WANT_READ. The event was then
re-posted on every event loop iteration, busy-looping the worker at
100% CPU.
The re-post was introduced without a progress check in b3b3681
(1.21.4). A check is now added by requiring that c->send_chain()
advanced c->sent.
Origin: upstream,
https://github.com/nginx/nginx/commit/98cf776e3c035b1819744861fda97841e285960c
Origin: upstream,
https://github.com/nginx/nginx/commit/32c3957216a69e7d047f9bfb790ef5b00b6d4984
[ Tests ]
I was not able to find a PoC to test the effectiveness of the patch.
Autopkgtest passes (run with both unshare and lxc to ensure
isolation-container tests are covered).
I also did smoke tests to check TLSv1.3 early data still worked and did
not regress. Running nginx in a clean trixie VM (using QEMU), nginx was
configured to use the snakeoil SSL cert provided by the ssl-certs
package, as well as use `ssl_protocols TLSv1.3` and `ssl_early_data on`
options. From the host, openssl s_client is used against the guest to
verify the early data function using the following commands (assuming
guest 443 is forwarded to host 4443):
printf 'GET / HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' >
request.txt
{ cat request.txt; sleep 2; } | openssl s_client -connect 127.0.0.1:4443
-servername localhost -tls1_3 -sess_out session.pem
# This command will say "Early data was not sent" and produce a session.pem
file containing the TLS session.
openssl s_client -connect 127.0.0.1:4443 -servername localhost -tls1_3 -
early_data request.txt -sess_in session.pem
# This command will say "Early data was accepted"
The same behaviour was observed before and after the patch was applied
within the VM.
[ Build ]
Debusine: https://debusine.debian.net/debian/developers/work-request/1686238/
Salsa:
https://salsa.debian.org/Maytha8/nginx-lts/-/tree/debian/bookworm?ref_type=heads
--
Maytham
------------------------------------------------------------------------- Debian LTS Advisory DLA-XXXX-1 [email protected] https://www.debian.org/lts/security/ Maytham Alsudany December 01, 2026 https://wiki.debian.org/LTS ------------------------------------------------------------------------- Package : nginx Version : 1.22.1-9+deb12u12 CVE ID : CVE-2026-132779 A vulnerability has been discovered in Nginx, a high-peformance web and reverse server: If configured to use TLSv1.3 and SSL early data is enabled, a denial of service attack was possible. For Debian 12 bookworm, this problem has been fixed in version 1.22.1-9+deb12u12. We recommend that you upgrade your nginx packages. For the detailed security status of nginx please refer to its security tracker page at: https://security-tracker.debian.org/tracker/nginx Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS
diff -Nru nginx-1.22.1/debian/changelog nginx-1.22.1/debian/changelog --- nginx-1.22.1/debian/changelog 2026-11-20 05:02:23.000000000 +0800 +++ nginx-1.22.1/debian/changelog 2026-11-30 21:57:59.000000000 +0800 @@ -1,3 +1,12 @@ +nginx (1.22.1-9+deb12u12) bookworm-security; urgency=high + + * Non-maintainer upload by the LTS Team. + * Backport security fixes from upstream 1.30.8: + - d/p/CVE-2026-132779.patch: avoid repeating send_chain() when it sent + nothing. + + -- Maytham Alsudany <[email protected]> Mon, 30 Nov 2026 21:57:59 +0800 + nginx (1.22.1-9+deb12u11) bookworm-security; urgency=high [ Jan Mojžíš ] diff -Nru nginx-1.22.1/debian/patches/CVE-2026-132779.patch nginx-1.22.1/debian/patches/CVE-2026-132779.patch --- nginx-1.22.1/debian/patches/CVE-2026-132779.patch 1970-01-01 08:00:00.000000000 +0800 +++ nginx-1.22.1/debian/patches/CVE-2026-132779.patch 2026-11-30 21:56:54.000000000 +0800 @@ -0,0 +1,108 @@ +From: Roman Arutyunyan <[email protected]> +Date: Tue, 17 Nov 2026 23:02:36 +0400 +Subject: [PATCH] Avoid repeating send_chain() when it sent nothing + +Previously, ngx_http_write_filter() re-posted the write event to +continue a capped send whenever output data remained and +c->write->ready was still set. This was wrong when c->send_chain() +returned without sending anything while the write event still looked +ready, notably when SSL_write() returned SSL_ERROR_WANT_READ. The +event was then re-posted on every event loop iteration, busy-looping +the worker at 100% CPU. + +The implicit progress check was lost in 00f4be1 (1.21.4). It is +now restored by requiring that c->send_chain() advanced c->sent. + +Reported by yxd05. + +Previously, ngx_chain_writer() re-posted the write event to continue +a capped send whenever output data remained and c->write->ready was +still set. This was wrong when c->send_chain() returned without +sending anything while the write event still looked ready, notably +when SSL_write() returned SSL_ERROR_WANT_READ. The event was then +re-posted on every event loop iteration, busy-looping the worker at +100% CPU. + +The re-post was introduced without a progress check in b3b3681 +(1.21.4). A check is now added by requiring that c->send_chain() +advanced c->sent. + +Origin: upstream, https://github.com/nginx/nginx/commit/98cf776e3c035b1819744861fda97841e285960c +Origin: upstream, https://github.com/nginx/nginx/commit/32c3957216a69e7d047f9bfb790ef5b00b6d4984 + +--- a/src/core/ngx_output_chain.c ++++ b/src/core/ngx_output_chain.c +@@ -660,7 +660,7 @@ + { + ngx_chain_writer_ctx_t *ctx = data; + +- off_t size; ++ off_t size, sent; + ngx_chain_t *cl, *ln, *chain; + ngx_connection_t *c; + +@@ -777,6 +777,8 @@ + return NGX_OK; + } + ++ sent = c->sent; ++ + chain = c->send_chain(c, ctx->out, ctx->limit); + + ngx_log_debug1(NGX_LOG_DEBUG_CORE, c->log, 0, +@@ -786,7 +788,7 @@ + return NGX_ERROR; + } + +- if (chain && c->write->ready) { ++ if (chain && c->write->ready && c->sent != sent) { + ngx_post_event(c->write, &ngx_posted_next_events); + } + +--- a/src/http/ngx_http_write_filter_module.c ++++ b/src/http/ngx_http_write_filter_module.c +@@ -47,7 +47,7 @@ + ngx_int_t + ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) + { +- off_t size, sent, nsent, limit; ++ off_t size, sent, psent, nsent, limit; + ngx_uint_t last, flush, sync; + ngx_msec_t delay; + ngx_chain_t *cl, *ln, **ll, *chain; +@@ -308,13 +308,14 @@ + + if (r->limit_rate) { + ++ psent = sent; + nsent = c->sent; + + if (r->limit_rate_after) { + +- sent -= r->limit_rate_after; +- if (sent < 0) { +- sent = 0; ++ psent -= r->limit_rate_after; ++ if (psent < 0) { ++ psent = 0; + } + + nsent -= r->limit_rate_after; +@@ -323,7 +324,7 @@ + } + } + +- delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate); ++ delay = (ngx_msec_t) ((nsent - psent) * 1000 / r->limit_rate); + + if (delay > 0) { + c->write->delayed = 1; +@@ -331,7 +332,7 @@ + } + } + +- if (chain && c->write->ready && !c->write->delayed) { ++ if (chain && c->write->ready && !c->write->delayed && sent != c->sent) { + ngx_post_event(c->write, &ngx_posted_next_events); + } + diff -Nru nginx-1.22.1/debian/patches/series nginx-1.22.1/debian/patches/series --- nginx-1.22.1/debian/patches/series 2026-11-20 05:01:59.000000000 +0800 +++ nginx-1.22.1/debian/patches/series 2026-11-30 21:57:56.000000000 +0800 @@ -37,3 +37,4 @@ CVE-2026-123007.patch CVE-2026-113425.patch CVE-2026-125283.patch +CVE-2026-132779.patch
signature.asc
Description: This is a digitally signed message part
