public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/varnish] f43: Added patch for VSV00020 aka CVE-2026-93894
@ 2026-11-19 11:31 Ingvar Hagelund
  0 siblings, 0 replies; only message in thread
From: Ingvar Hagelund @ 2026-11-19 11:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/varnish
Branch : f43
Commit : fefa81a88ca208a99c8c13c078273cb8c43f6391
Author : Ingvar Hagelund <ingvar@redpill-linpro.com>
Date   : 2026-11-19T12:31:35+01:00
Stats  : +60/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/varnish/c/fefa81a88ca208a99c8c13c078273cb8c43f6391?branch=f43

Log:
Added patch for VSV00020 aka CVE-2026-93894

---
diff --git a/varnish-7.7_vsv20_90f5bacc.patch b/varnish-7.7_vsv20_90f5bacc.patch
new file mode 100644
index 0000000..ded4574
--- /dev/null
+++ b/varnish-7.7_vsv20_90f5bacc.patch
@@ -0,0 +1,53 @@
+From 90f5bacc14b2404e6cc349ba015f0f73b8515136 Mon Sep 17 00:00:00 2001
+From: Walid Boudebouda <walid.boudebouda@gmail.com>
+Date: Mon, 6 Jul 2026 09:41:16 +0200
+Subject: [PATCH] cache_vrt: Polish VRT_UpperLowerStrands()
+
+---
+ bin/varnishd/cache/cache_vrt.c | 21 +++++++++++++--------
+ 1 file changed, 13 insertions(+), 8 deletions(-)
+
+diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
+index 89fd5f1..fc66c10 100644
+--- a/bin/varnishd/cache/cache_vrt.c
++++ b/bin/varnishd/cache/cache_vrt.c
+@@ -502,7 +502,7 @@ VRT_UpperLowerStrands(VRT_CTX, VCL_STRANDS s, int up)
+ 	unsigned u;
+ 	char *b, *e, *r;
+ 	const char *p, *q = NULL;
+-	int i, copy = 0;
++	int i, copy = 0, op = 0;
+ 
+ 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
+ 	CHECK_OBJ_NOTNULL(ctx->ws, WS_MAGIC);
+@@ -516,15 +516,20 @@ VRT_UpperLowerStrands(VRT_CTX, VCL_STRANDS s, int up)
+ 		if (q != NULL)
+ 			copy = 1;
+ 		for(p = q = s->p[i]; *p != '\0'; p++) {
+-			if ((up && vct_islower(*p)) ||
+-			    (!up && vct_isupper(*p))) {
+-				*b++ = *p ^ 0x20;
++			op = up ? vct_islower(*p) : vct_isupper(*p);
++
++			if (op)
+ 				copy = 1;
+-			} else if (b < e) {
+-				*b++ = *p;
+-			}
+-			if (copy && b == e)
++
++			if (!copy && b == e)
++				continue;
++			else if (b == e)
+ 				break;
++
++			if (op)
++				*b++ = *p ^ 0x20;
++			else
++				*b++ = *p;
+ 		}
+ 		if (copy && b == e) {
+ 			WS_Release(ctx->ws, 0);
+--
+libgit2 1.9.7
+

diff --git a/varnish.spec b/varnish.spec
index 46c1fcb..2b3af28 100644
--- a/varnish.spec
+++ b/varnish.spec
@@ -32,7 +32,7 @@
 Summary: High-performance HTTP accelerator
 Name: varnish
 Version: 7.7.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
 URL: https://www.varnish-cache.org/
 Source0: http://varnish-cache.org/_downloads/%{name}-%{version}.tgz
@@ -52,6 +52,8 @@ Patch4:   varnish-8.0_vsv18_e8eccd46.patch
 Patch5:   varnish-8.0_vsv18_1a907310.patch
 # Upstream patches for VSV00019
 Patch6:   varnish-8.0_vsv19_db19a0c6-9985187a.patch
+# Upstream patch for VSV00020
+Patch7:   varnish-7.7_vsv20_90f5bacc.patch
 
 %if %{with bundled_jemalloc}
 # bundled jemalloc patch
@@ -168,6 +170,7 @@ Documentation files for %name
 %patch 4 -p1
 %patch 5 -p1
 %patch 6 -p1
+%patch 7 -p1
 
 tar xzf %SOURCE1
 ln -s pkg-varnish-cache-%{commit1}/redhat redhat
@@ -426,6 +429,9 @@ test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc
 
 
 %changelog
+* Thu Nov 19 2026 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.7.3-3
+- Added patch for VSV00020 aka CVE-2026-93894
+
 * Mon Jun 15 2026 Ingvar Hagelund <ingvar@redpill-linpro.com> - 7.7.3-2
 - Update to latest 7.7.x release available, a security release
 - Includes fixes for VSV00017 aka CVE-2025-8671

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

only message in thread, other threads:[~2026-11-19 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 11:31 [rpms/varnish] f43: Added patch for VSV00020 aka CVE-2026-93894 Ingvar Hagelund

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