🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1915

Bug#1148187: vinyl-cache: diff for NMU version 9.0.1-4.1

#1915
From: Aron Xu
Date: Sat, 24 Oct 2026 07:30
146 lines
6412 bytes
--R9L8BeI/PPw0cCTy
Content-Type: multipart/mixed; boundary="zeYljULUSSpRNdq1"
Content-Disposition: inline


--zeYljULUSSpRNdq1
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


Control: tags 1148187 + patch
Control: tags 1148187 + pending

Dear maintainer,

I've prepared an NMU for vinyl-cache (versioned as 9.0.1-4.1) and
uploaded it to DELAYED/7. Please feel free to tell me if I
should cancel it.

Regards.


--=20
Regards,
Aron Xu

--zeYljULUSSpRNdq1
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="vinyl-cache-9.0.1-4.1-nmu.diff"
Content-Transfer-Encoding: quoted-printable

diffstat for vinyl-cache-9.0.1 vinyl-cache-9.0.1

 changelog         |    8 ++++++++
 patches/fix_vsv20 |   51 +++++++++++++++++++++++++++++++++++++++++++++++++=
++
 patches/series    |    1 +
 3 files changed, 60 insertions(+)

diff -Nru vinyl-cache-9.0.1/debian/changelog vinyl-cache-9.0.1/debian/chang=
elog
--- vinyl-cache-9.0.1/debian/changelog	2026-07-07 21:12:18.000000000 +0800
+++ vinyl-cache-9.0.1/debian/changelog	2026-10-23 13:07:48.000000000 +0800
@@ -1,3 +1,11 @@
+vinyl-cache (9.0.1-4.1) unstable; urgency=3Dhigh
+
+  * Non-maintainer upload.
+  * Backport the fix for the VCL .upper()/.lower() workspace overflow
+    (CVE-2026-93894, VSV00020). (Closes: #1148187)
+
+ -- Aron Xu <aron@debian.org>  Fri, 23 Oct 2026 13:07:48 +0800
+
 vinyl-cache (9.0.1-4) unstable; urgency=3Dmedium
=20
   * Add more Varnish compatibility:
diff -Nru vinyl-cache-9.0.1/debian/patches/fix_vsv20 vinyl-cache-9.0.1/debi=
an/patches/fix_vsv20
--- vinyl-cache-9.0.1/debian/patches/fix_vsv20	1970-01-01 07:30:00.00000000=
0 +0730
+++ vinyl-cache-9.0.1/debian/patches/fix_vsv20	2026-10-23 13:07:48.00000000=
0 +0800
@@ -0,0 +1,51 @@
+Description: Bound case-conversion writes by the workspace reservation
+ Preserve the single-string no-copy optimization while checking the
+ reservation before writing any converted or unchanged byte.
+Author: Walid Boudebouda <walid.boudebouda@gmail.com>
+Origin: upstream, https://code.vinyl-cache.org/vinyl-cache/vinyl-cache/com=
mit/853d397f30753bce1587991fcf9193c63fb4d1eb
+Bug: https://vinyl-cache.org/security/VSV00020.html
+Bug-Debian: https://bugs.debian.org/1148187
+Forwarded: not-needed
+Last-Update: 2026-10-23
+
+diff --git a/bin/vinyld/cache/cache_vrt.c b/bin/vinyld/cache/cache_vrt.c
+index 7bc2e62519..7c1168aef4 100644
+--- a/bin/vinyld/cache/cache_vrt.c
++++ b/bin/vinyld/cache/cache_vrt.c
+@@ -511,7 +511,7 @@ VRT_UpperLowerStrands(VRT_CTX, VCL_STRANDS s, int up)
+ 	unsigned u;
+ 	char *b, *e, *r;
+ 	const char *p, *q =3D NULL;
+-	int i, copy =3D 0;
++	int i, copy =3D 0, op =3D 0;
+=20
+ 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
+ 	CHECK_OBJ_NOTNULL(ctx->ws, WS_MAGIC);
+@@ -525,15 +525,20 @@ VRT_UpperLowerStrands(VRT_CTX, VCL_STRANDS s, int up)
+ 		if (q !=3D NULL)
+ 			copy =3D 1;
+ 		for(p =3D q =3D s->p[i]; *p !=3D '\0'; p++) {
+-			if ((up && vct_islower(*p)) ||
+-			    (!up && vct_isupper(*p))) {
+-				*b++ =3D *p ^ 0x20;
++			op =3D up ? vct_islower(*p) : vct_isupper(*p);
++
++			if (op)
+ 				copy =3D 1;
+-			} else if (b < e) {
+-				*b++ =3D *p;
+-			}
+-			if (copy && b =3D=3D e)
++
++			if (!copy && b =3D=3D e)
++				continue;
++			else if (b =3D=3D e)
+ 				break;
++
++			if (op)
++				*b++ =3D *p ^ 0x20;
++			else
++				*b++ =3D *p;
+ 		}
+ 		if (copy && b =3D=3D e) {
+ 			WS_Release(ctx->ws, 0);
diff -Nru vinyl-cache-9.0.1/debian/patches/series vinyl-cache-9.0.1/debian/=
patches/series
--- vinyl-cache-9.0.1/debian/patches/series	2026-07-07 08:35:29.000000000 +=
0800
+++ vinyl-cache-9.0.1/debian/patches/series	2026-10-23 13:07:48.000000000 +=
0800
@@ -3,3 +3,4 @@
 varnish_compatibility
 fix_vcc_cc
 set_vcs_version
+fix_vsv20

--zeYljULUSSpRNdq1--

--R9L8BeI/PPw0cCTy
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEExq6D0hxncEPaPayX+GQ1dHE8m64FAmrcW8kACgkQ+GQ1dHE8
m65VTgf/fELpm8BRZKgViAByLHI+grUy83lOKraoH21DSjngOELbWNLm7dBLav85
8GMvn7t3ZsH5yMcAdxdZCiscy/JyiSHreBxx4wS1/s5UR7nlmQwg06HpGzbey/OD
5X5Mf4se+FH63LF3YOUmVc6QXubDaSkEEoTnYPBN/QVgOtkCB6wxMmaGmDOsPHRc
1Ierx7OzN69kqmYMudUuoSlSV+YvgJaEIFbNForFDYCbiAdrZgdhmOU9g7F6C4VF
IMrIoJtsJgtqTLoWRVNXheJNbUBtAE8y5L8K2/r5niTuCtFSGc2QHOFKmbML7N/Y
spdPC4L9l0X2VocaP+Yzhu6Pr7ri9A==
=+HaU
-----END PGP SIGNATURE-----

--R9L8BeI/PPw0cCTy--
Technical Details
Message-ID: <NREmt-7ypS-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NEsj7-cTk-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Aron Xu <aron@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1148187: vinyl-cache: diff for NMU version 9.0.1-4.1
Date: Sat, 24 Oct 2026 09:30:01 +0200
Message-ID: <NREmt-7ypS-13@gated-at.bofh.it>
References: <NEsj7-cTk-7@gated-at.bofh.it>
X-Original-To: 1148187@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Oct 24 07:23:55 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Aron Xu <aron@debian.org>, 1148187@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+varnish-team@tracker.debian.org
X-Debian-Pr-Message: followup 1148187
X-Debian-Pr-Package: src:vinyl-cache
X-Debian-Pr-Keywords: security upstream
X-Debian-Pr-Source: vinyl-cache
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="R9L8BeI/PPw0cCTy"
Content-Disposition: inline
X-PGP-Key-ID: C38E8160A17841FE
X-Nmudiff-Version: 2.26.11~bpo13+1
X-Debian-User: aron
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998502
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 146
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 24 Oct 2026 15:18:34 +0800
X-Original-Message-ID: <atxbyuQ_iAGYpQWH@workstation>
X-Original-References: <178968199025.43902.13611931305542607805.reportbug@eldamar.lan>