Skip to content

Commit 95035b5

Browse files
CBL-Mariner-Botazurelinux-securityjykanase
authored
Merge PR "[AUTO-CHERRYPICK] [AutoPR- Security] Patch perl-DBI for CVE-2026-9698 [HIGH] - branch 3.0-dev" microsoft#17769
Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jykanase <v-jykanase@microsoft.com>
1 parent dfd008b commit 95035b5

4 files changed

Lines changed: 48 additions & 5 deletions

File tree

SPECS/perl-DBI/CVE-2026-9698.patch

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From bfe5d73c162d2d1f761a639a0aa33aad6a9eb54e Mon Sep 17 00:00:00 2001
2+
From: "H.Merijn Brand - Tux" <linux@tux.freedom.nl>
3+
Date: Wed, 27 May 2026 11:16:50 +0200
4+
Subject: [PATCH] Fix possible stack overflow (old issue already noted by Tim)
5+
6+
Upstream-reference: https://github.com/perl5-dbi/dbi/commit/bfe5d73c162d2d1f761a639a0aa33aad6a9eb54e.patch
7+
https://sources.debian.org/src/libdbi-perl/1.643-4%2Bdeb12u1/debian/patches/Fix-possible-stack-overflow-old-issue-already-noted-.patch
8+
---
9+
DBI.xs | 7 ++-----
10+
1 file changed, 2 insertions(+), 5 deletions(-)
11+
12+
diff --git a/DBI.xs b/DBI.xs
13+
index 01a543b..8858e21 100644
14+
--- a/DBI.xs
15+
+++ b/DBI.xs
16+
@@ -3998,7 +3998,6 @@ XS(XS_DBI_dispatch)
17+
SV **statement_svp = NULL;
18+
const int is_warning = (!SvTRUE(err_sv) && strlen(SvPV_nolen(err_sv))==1);
19+
const char *err_meth_name = meth_name;
20+
- char intro[200];
21+
22+
if (meth_type == methtype_set_err) {
23+
SV **sem_svp = hv_fetch((HV*)SvRV(h), "dbi_set_err_method", 18, GV_ADDWARN);
24+
@@ -4006,10 +4005,8 @@ XS(XS_DBI_dispatch)
25+
err_meth_name = SvPV_nolen(*sem_svp);
26+
}
27+
28+
- /* XXX change to vsprintf into sv directly */
29+
- sprintf(intro,"%s %s %s: ", HvNAME(DBIc_IMP_STASH(imp_xxh)), err_meth_name,
30+
- SvTRUE(err_sv) ? "failed" : is_warning ? "warning" : "information");
31+
- msg = sv_2mortal(newSVpv(intro,0));
32+
+ msg = sv_2mortal(newSVpvf("%s %s %s: ", HvNAME(DBIc_IMP_STASH(imp_xxh)), err_meth_name,
33+
+ SvTRUE(err_sv) ? "failed" : is_warning ? "warning" : "information"));
34+
if (SvOK(DBIc_ERRSTR(imp_xxh)))
35+
sv_catsv(msg, DBIc_ERRSTR(imp_xxh));
36+
else
37+
--
38+
2.45.4
39+

SPECS/perl-DBI/perl-DBI.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
Summary: A database access API for perl
66
Name: perl-DBI
77
Version: 1.643
8-
Release: 4%{?dist}
8+
Release: 5%{?dist}
99
Group: Development/Libraries
1010
License: GPL+ or Artistic
1111
URL: http://dbi.perl.org/
1212
# The source tarball must be repackaged to remove the DBI/FAQ.pm, since the
1313
# license is not a FSF free license.
1414
Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
1515
Patch0: CVE-2026-10879.patch
16+
Patch1: CVE-2026-9698.patch
1617
Vendor: Microsoft Corporation
1718
Distribution: Azure Linux
1819
BuildRequires: perl >= 5.28.0
@@ -163,6 +164,9 @@ make test
163164
%{_mandir}/man3/*.3*
164165

165166
%changelog
167+
* Wed Jun 17 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 1.643-5
168+
- Patch for CVE-2026-9698
169+
166170
* Tue Jun 09 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 1.643-4
167171
- Patch for CVE-2026-10879
168172

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ perl-CPAN-Meta-YAML-0.018-511.azl3.noarch.rpm
336336
perl-Data-Dumper-2.188-511.azl3.aarch64.rpm
337337
perl-DBD-SQLite-1.74-2.azl3.aarch64.rpm
338338
perl-DBD-SQLite-debuginfo-1.74-2.azl3.aarch64.rpm
339-
perl-DBI-1.643-4.azl3.aarch64.rpm
340-
perl-DBI-debuginfo-1.643-4.azl3.aarch64.rpm
339+
perl-DBI-1.643-5.azl3.aarch64.rpm
340+
perl-DBI-debuginfo-1.643-5.azl3.aarch64.rpm
341341
perl-DBIx-Simple-1.37-7.azl3.noarch.rpm
342342
perl-DBM_Filter-0.06-511.azl3.noarch.rpm
343343
perl-debugger-1.60-511.azl3.noarch.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ perl-CPAN-Meta-YAML-0.018-511.azl3.noarch.rpm
344344
perl-Data-Dumper-2.188-511.azl3.x86_64.rpm
345345
perl-DBD-SQLite-1.74-2.azl3.x86_64.rpm
346346
perl-DBD-SQLite-debuginfo-1.74-2.azl3.x86_64.rpm
347-
perl-DBI-1.643-4.azl3.x86_64.rpm
348-
perl-DBI-debuginfo-1.643-4.azl3.x86_64.rpm
347+
perl-DBI-1.643-5.azl3.x86_64.rpm
348+
perl-DBI-debuginfo-1.643-5.azl3.x86_64.rpm
349349
perl-DBIx-Simple-1.37-7.azl3.noarch.rpm
350350
perl-DBM_Filter-0.06-511.azl3.noarch.rpm
351351
perl-debugger-1.60-511.azl3.noarch.rpm

0 commit comments

Comments
 (0)