public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nginx-mod-brotli] f44: Build against libbrotli-1.2.1 - Fixes CVE-2026-111497
@ 2026-11-20 14:47 Mikel Olasagasti Uranga
  0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-11-20 14:47 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 14:47 [rpms/nginx-mod-brotli] f44: Build against libbrotli-1.2.1 - Fixes CVE-2026-111497 Mikel Olasagasti Uranga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox