public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
To: git-commits@fedoraproject.org
Subject: [rpms/nginx-mod-brotli] f44: Build against libbrotli-1.2.1 - Fixes CVE-2026-111497
Date: Fri, 20 Nov 2026 14:47:35 GMT	[thread overview]
Message-ID: <179518605532.1.14927290772924108430.rpms-nginx-mod-brotli-e4f96b6561f5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/nginx-mod-brotli
Branch : f44
Commit : e4f96b6561f5983f22347ef1734a152d6f13b9dd
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date   : 2026-10-24T11:55:49+02:00
Stats  : +27/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/nginx-mod-brotli/c/e4f96b6561f5983f22347ef1734a152d6f13b9dd?branch=f44

Log:
Build against libbrotli-1.2.1 - Fixes CVE-2026-111497

---
diff --git a/133.patch b/133.patch
new file mode 100644
index 0000000..9ed2f9a
--- /dev/null
+++ b/133.patch
@@ -0,0 +1,22 @@
+From 9367e727e43e6b0f1c55a07fb10c0d9bb6197684 Mon Sep 17 00:00:00 2001
+From: sahandevs <sahandevs@gmail.com>
+Date: Mon, 16 May 2022 17:26:43 +0430
+Subject: [PATCH] check if accept encoding is not empty
+
+---
+ filter/ngx_http_brotli_filter_module.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/filter/ngx_http_brotli_filter_module.c b/filter/ngx_http_brotli_filter_module.c
+index 592b767..4d85364 100644
+--- a/filter/ngx_http_brotli_filter_module.c
++++ b/filter/ngx_http_brotli_filter_module.c
+@@ -213,6 +213,8 @@ static ngx_int_t check_accept_encoding(ngx_http_request_t* req) {
+   if (accept_encoding_entry == NULL) return NGX_DECLINED;
+   accept_encoding = &accept_encoding_entry->value;
+ 
++  if (accept_encoding->len < kEncodingLen) return NGX_DECLINED;
++
+   cursor = accept_encoding->data;
+   end = cursor + accept_encoding->len;
+   while (1) {

diff --git a/nginx-mod-brotli.spec b/nginx-mod-brotli.spec
index a7b550d..840b9a6 100644
--- a/nginx-mod-brotli.spec
+++ b/nginx-mod-brotli.spec
@@ -10,7 +10,12 @@ Summary:        NGINX module for Brotli compression
 License:        BSD-2-Clause
 URL:            https://github.com/google/ngx_brotli
 Source:         %{url}/archive/v%{upstream_tag}/ngx_brotli-%{upstream_tag}.tar.gz
+# check if accept encoding is not empty
+# https://github.com/google/ngx_brotli/pull/133
+Patch:          https://patch-diff.githubusercontent.com/raw/google/ngx_brotli/pull/133.patch
 # Patches to ensure system's brotli library is used
+# https://github.com/google/ngx_brotli/pull/150
+# https://github.com/google/ngx_brotli/pull/172
 Patch:          https://patch-diff.githubusercontent.com/raw/google/ngx_brotli/pull/150.patch
 Patch:          https://patch-diff.githubusercontent.com/raw/google/ngx_brotli/pull/172.patch
 

                 reply	other threads:[~2026-11-20 14:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179518605532.1.14927290772924108430.rpms-nginx-mod-brotli-e4f96b6561f5@fedoraproject.org \
    --to=mikel@olasagasti.info \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox