Skip to content

Commit 1672678

Browse files
authored
Merge branch '3.0-dev' into azure-autosec/rust/3.0/893441
2 parents 078f944 + 92fff69 commit 1672678

File tree

63 files changed

+1867
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1867
-136
lines changed

.pipelines/templates/PackageBuild.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ parameters:
134134
type: string
135135
default: ""
136136

137-
- name: pipArtifactFeeds
138-
type: string
139-
default: ""
140-
141137
- name: publishLogs
142138
type: boolean
143139
default: true
@@ -167,12 +163,6 @@ steps:
167163
parameters:
168164
buildRepoRoot: ${{ parameters.buildRepoRoot }}
169165

170-
- ${{ if parameters.pipArtifactFeeds }}:
171-
- task: PipAuthenticate@1
172-
inputs:
173-
artifactFeeds: "${{ parameters.pipArtifactFeeds }}"
174-
displayName: "Authenticate to custom pip artifact feeds"
175-
176166
- ${{ if parameters.customToolchainTarballName }}:
177167
- script: |
178168
toolchain_archive="$(find "${{ parameters.inputArtifactsFolder }}" -name "${{ parameters.customToolchainTarballName }}" -print -quit)"

.pipelines/templates/PackageBuildPRCheck.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ stages:
136136
maxCPU: "${{ configuration.maxCPUs }}"
137137
outputArtifactsFolder: $(ob_outputDirectory)
138138
outputRPMsTarballName: $(outputRPMsTarballName)
139-
pipArtifactFeeds: "mariner/Mariner-Pypi-Feed"
140139
selfRepoName: self
141140
testSuiteName: "[${{ configuration.name }}] Package test"
142141

@@ -197,7 +196,6 @@ stages:
197196
isUseCCache: true
198197
maxCPU: "${{ configuration.maxCPUs }}"
199198
outputArtifactsFolder: $(ob_outputDirectory)
200-
pipArtifactFeeds: "mariner/Mariner-Pypi-Feed"
201199
selfRepoName: self
202200
srpmPackList: "$(testListFromToolchain)"
203201
testRerunList: "$(testListFromToolchain)"

.pipelines/templates/PackageTestResultsAnalysis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ parameters:
3232
default: "$(Agent.TempDirectory)"
3333

3434
steps:
35-
# TODO: the "--index-url" argument must be removed once accessing internal ADO feeds from fork PR checks is supported.
36-
- bash: pip3 install --user junit_xml==1.9 --index-url https://pypi.org/simple
37-
retryCountOnTaskFailure: 3
35+
- bash: sudo tdnf install -y python3-junit-xml
3836
displayName: "Install Python dependencies"
3937

4038
- task: PythonScript@0

SPECS-EXTENDED/389-ds-base/389-ds-base.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ExcludeArch: i686
6868
Summary: 389 Directory Server (%{variant})
6969
Name: 389-ds-base
7070
Version: 3.1.1
71-
Release: 5%{?dist}
71+
Release: 6%{?dist}
7272
License: GPL-3.0-or-later AND (0BSD OR Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT) AND (CC-BY-4.0 AND MIT) AND (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND (MIT OR CC0-1.0) AND (MIT OR Unlicense) AND 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MIT AND ISC AND MPL-2.0 AND PSF-2.0
7373
URL: https://www.port389.org
7474
Vendor: Microsoft Corporation
@@ -732,6 +732,9 @@ exit 0
732732
%endif
733733

734734
%changelog
735+
* Mon Jul 21 2025 Jyoti Kanase <[email protected]> - 3.1.1-6
736+
- Bump release to rebuild with rust
737+
735738
* Fri Jun 13 2025 Kavya Sree Kaitepalli <[email protected]> - 3.1.1-5
736739
- Bump release to rebuild with rust
737740

SPECS-EXTENDED/ripgrep/ripgrep.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
Name: ripgrep
2222
Version: 13.0.0
23-
Release: 8%{?dist}
23+
Release: 9%{?dist}
2424
Summary: A search tool that combines ag with grep
2525
License: MIT AND Unlicense
2626
Vendor: Microsoft Corporation
@@ -104,6 +104,9 @@ install -Dm 644 complete/_rg %{buildroot}%{_datadir}/zsh/site-functions/_rg
104104
%{_datadir}/zsh
105105

106106
%changelog
107+
* Mon Jul 21 2025 Jyoti Kanase <[email protected]> - 13.0.0-9
108+
- Bump release to rebuild with rust
109+
107110
* Fri Jun 13 2025 Kavya Sree Kaitepalli <[email protected]> - 13.0.0-8
108111
- Bump release to rebuild with rust
109112

SPECS-EXTENDED/rust-cbindgen/rust-cbindgen.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Summary: Tool for generating C bindings to Rust code
33
Name: rust-cbindgen
44
Version: 0.24.3
5-
Release: 4%{?dist}
5+
Release: 5%{?dist}
66
License: MIT
77
Vendor: Microsoft Corporation
88
Distribution: Azure Linux
@@ -96,6 +96,9 @@ RUSTFLAGS=%{rustflags} cargo test --release
9696
%endif
9797

9898
%changelog
99+
* Mon Jul 21 2025 Jyoti Kanase <[email protected]> - 0.24.3-5
100+
- Bump release to rebuild with rust
101+
99102
* Fri Jun 13 2025 Kavya Sree Kaitepalli <[email protected]> - 0.24.3-4
100103
- Bump release to rebuild with rust
101104

SPECS-EXTENDED/tardev-snapshotter/tardev-snapshotter.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Summary: Tardev Snapshotter for containerd
44
Name: tardev-snapshotter
55
Version: 3.2.0.tardev1
6-
Release: 2%{?dist}
6+
Release: 3%{?dist}
77
License: ASL 2.0
88
Group: Tools/Container
99
Vendor: Microsoft Corporation
@@ -67,6 +67,9 @@ fi
6767
%config(noreplace) %{_unitdir}/%{name}.service
6868

6969
%changelog
70+
* Mon Jul 21 2025 Jyoti Kanase <[email protected]> - 3.2.0.tardev1-3
71+
- Bump release to rebuild with rust
72+
7073
* Fri Jun 13 2025 Kavya Sree Kaitepalli <[email protected]> - 3.2.0.tardev1-2
7174
- Bump release to rebuild with rust
7275

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
From b424803abdb2bec818e4fbcb251ce031c22aca53 Mon Sep 17 00:00:00 2001
2+
From: Gary Gregory <[email protected]>
3+
Date: Sat, 21 Sep 2024 17:23:08 -0400
4+
Subject: [PATCH] Rewrite ClassUtils.getClass() without recursion to avoid
5+
StackOverflowError on very long inputs.
6+
7+
- This was found fuzz testing Apache Commons Text which relies on
8+
ClassUtils.
9+
- OssFuzz Issue 42522972:
10+
apache-commons-text:StringSubstitutorInterpolatorFuzzer: Security
11+
exception in org.apache.commons.lang3.ClassUtils.getClass
12+
13+
Upstream Patch Reference: https://github.com/apache/commons-lang/commit/b424803abdb2bec818e4fbcb251ce031c22aca53.patch
14+
---
15+
src/changes/changes.xml | 1 +
16+
.../org/apache/commons/lang3/ClassUtils.java | 46 +++++++++----------
17+
2 files changed, 23 insertions(+), 24 deletions(-)
18+
19+
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
20+
index 5731324..dd2577b 100644
21+
--- a/src/changes/changes.xml
22+
+++ b/src/changes/changes.xml
23+
@@ -47,6 +47,7 @@ The <action> type attribute can be add,update,fix,remove.
24+
25+
<release version="3.8.1" date="2018-09-19" description="This release is a bugfix for Restoring Bundle-SymbolicName in the MANIFEST.mf file.">
26+
<action issue="LANG-1419" type="fix" dev="chtompki">Restore BundleSymbolicName for OSGi</action>
27+
+ <action type="fix" dev="ggregory" due-to="OSS-Fuzz, Gary Gregory">Rewrite ClassUtils.getClass(...) without recursion to avoid StackOverflowError on very long inputs. OSS-Fuzz Issue 42522972: apache-commons-text:StringSubstitutorInterpolatorFuzzer: Security exception in org.apache.commons.lang3.ClassUtils.getClass.</action>
28+
</release>
29+
30+
<release version="3.8" date="2018-08-15" description="New features and bug fixes. Requires Java 7, supports Java 8, 9, 10.">
31+
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java
32+
index be9f0dd..a9ec195 100644
33+
--- a/src/main/java/org/apache/commons/lang3/ClassUtils.java
34+
+++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java
35+
@@ -985,30 +985,27 @@ public class ClassUtils {
36+
*/
37+
public static Class<?> getClass(
38+
final ClassLoader classLoader, final String className, final boolean initialize) throws ClassNotFoundException {
39+
- try {
40+
- Class<?> clazz;
41+
- if (namePrimitiveMap.containsKey(className)) {
42+
- clazz = namePrimitiveMap.get(className);
43+
- } else {
44+
- clazz = Class.forName(toCanonicalName(className), initialize, classLoader);
45+
- }
46+
- return clazz;
47+
- } catch (final ClassNotFoundException ex) {
48+
- // allow path separators (.) as inner class name separators
49+
- final int lastDotIndex = className.lastIndexOf(PACKAGE_SEPARATOR_CHAR);
50+
-
51+
- if (lastDotIndex != -1) {
52+
- try {
53+
- return getClass(classLoader, className.substring(0, lastDotIndex) +
54+
- INNER_CLASS_SEPARATOR_CHAR + className.substring(lastDotIndex + 1),
55+
- initialize);
56+
- } catch (final ClassNotFoundException ex2) { // NOPMD
57+
- // ignore exception
58+
+ // This method was re-written to avoid recursion and stack overflows found by fuzz testing.
59+
+ String next = className;
60+
+ int lastDotIndex = -1;
61+
+ do {
62+
+ try {
63+
+ Class<?> clazz;
64+
+ if (namePrimitiveMap.containsKey(next)) {
65+
+ clazz = namePrimitiveMap.get(next);
66+
+ } else {
67+
+ clazz = Class.forName(toCanonicalName(next), initialize, classLoader);
68+
+ }
69+
+ return clazz;
70+
+ } catch (final ClassNotFoundException ex) {
71+
+ lastDotIndex = next.lastIndexOf(PACKAGE_SEPARATOR_CHAR);
72+
+ if (lastDotIndex != -1) {
73+
+ next = next.substring(0, lastDotIndex) +
74+
+ INNER_CLASS_SEPARATOR_CHAR + next.substring(lastDotIndex + 1);
75+
}
76+
}
77+
-
78+
- throw ex;
79+
- }
80+
+ } while (lastDotIndex != -1);
81+
+ throw new ClassNotFoundException(next);
82+
}
83+
84+
/**
85+
@@ -1124,9 +1121,10 @@ public class ClassUtils {
86+
private static String toCanonicalName(String className) {
87+
className = StringUtils.deleteWhitespace(className);
88+
Validate.notNull(className, "className must not be null.");
89+
- if (className.endsWith("[]")) {
90+
+ final String arrayMarker = "[]";
91+
+ if (className.endsWith(arrayMarker)) {
92+
final StringBuilder classNameBuffer = new StringBuilder();
93+
- while (className.endsWith("[]")) {
94+
+ while (className.endsWith(arrayMarker)) {
95+
className = className.substring(0, className.length() - 2);
96+
classNameBuffer.append("[");
97+
}
98+
--
99+
2.34.1
100+

SPECS/apache-commons-lang3/apache-commons-lang3.spec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Summary: Apache Commons Lang Package
1919
Name: apache-%{short_name}
2020
Version: 3.8.1
21-
Release: 5%{?dist}
21+
Release: 6%{?dist}
2222
License: Apache-2.0
2323
Vendor: Microsoft Corporation
2424
Distribution: Azure Linux
@@ -27,6 +27,7 @@ URL: https://commons.apache.org/proper/commons-lang
2727
Source0: https://archive.apache.org/dist/commons/lang/source/%{short_name}-%{version}-src.tar.gz
2828
Source1: build.xml
2929
Source2: default.properties
30+
Patch0: CVE-2025-48924.patch
3031
BuildRequires: ant
3132
BuildRequires: ant-junit
3233
BuildRequires: fdupes
@@ -57,9 +58,8 @@ Group: Documentation/HTML
5758
Javadoc for %{name}.
5859

5960
%prep
60-
%setup -q -n %{short_name}-%{version}-src
61-
cp %{SOURCE1} .
62-
cp %{SOURCE2} .
61+
%autosetup -n %{short_name}-%{version}-src -p1
62+
cp %{SOURCE1} %{SOURCE2} .
6363
sed -i 's/\r//' *.txt
6464

6565
%pom_remove_parent .
@@ -98,6 +98,9 @@ cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
9898
%{_javadocdir}/%{name}
9999

100100
%changelog
101+
* Wed Jul 16 2025 Aninda Pradhan <[email protected]> - 3.8.1-6
102+
- Addressed CVE-2025-48924
103+
101104
* Fri Mar 17 2023 Mykhailo Bykhovtsev <[email protected]> - 3.8.1-5
102105
- Moved from extended to core
103106
- License verified

SPECS/ceph/CVE-2024-48916.patch

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From be105ab62fd4c93be9f9e5896e28c702534b0c56 Mon Sep 17 00:00:00 2001
2+
From: Pritha Srivastava <[email protected]>
3+
Date: Tue, 5 Nov 2024 12:03:00 +0530
4+
Subject: [PATCH] rgw/sts: fix to disallow unsupported JWT algorithms while
5+
authenticating AssumeRoleWithWebIdentity using JWT obtained from an external
6+
IDP.
7+
8+
fixes: https://tracker.ceph.com/issues/68836
9+
10+
Signed-off-by: Pritha Srivastava <[email protected]>
11+
---
12+
src/rgw/rgw_rest_sts.cc | 3 +++
13+
1 file changed, 3 insertions(+)
14+
15+
diff --git a/src/rgw/rgw_rest_sts.cc b/src/rgw/rgw_rest_sts.cc
16+
index 09f77f61d..23328236a 100644
17+
--- a/src/rgw/rgw_rest_sts.cc
18+
+++ b/src/rgw/rgw_rest_sts.cc
19+
@@ -444,6 +444,9 @@ WebTokenEngine::validate_signature(const DoutPrefixProvider* dpp, const jwt::dec
20+
.allow_algorithm(jwt::algorithm::ps512{cert});
21+
22+
verifier.verify(decoded);
23+
+ } else {
24+
+ ldpp_dout(dpp, 0) << "Unsupported algorithm: " << algorithm << dendl;
25+
+ throw -EINVAL;
26+
}
27+
} catch (std::runtime_error& e) {
28+
ldpp_dout(dpp, 0) << "Signature validation failed: " << e.what() << dendl;
29+
--
30+
2.45.4
31+

0 commit comments

Comments
 (0)