Skip to content

Commit 1e721f7

Browse files
[AUTO-CHERRYPICK] Patch ceph for CVE-2025-1744 [CRITICAL] - branch 3.0-dev (#12926)
Co-authored-by: KavyaSree2610 <92566732+KavyaSree2610@users.noreply.github.com>
1 parent b2ae0b8 commit 1e721f7

2 files changed

Lines changed: 51 additions & 1 deletion

File tree

SPECS/ceph/CVE-2025-1744.patch

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From b72bc56777fc7b4f63aabbf23217d082846397b7 Mon Sep 17 00:00:00 2001
2+
From: kavyasree <kkaitepalli@microsoft.com>
3+
Date: Tue, 11 Mar 2025 12:26:11 +0530
4+
Subject: [PATCH] Patch for CVE-2025-1744
5+
6+
Reference: https://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d
7+
---
8+
src/boost/libs/beast/test/extern/zlib-1.2.11/inflate.c | 5 +++--
9+
.../tools/boost_install/test/iostreams/zlib-1.2.11/inflate.c | 5 +++--
10+
2 files changed, 6 insertions(+), 4 deletions(-)
11+
12+
diff --git a/src/boost/libs/beast/test/extern/zlib-1.2.11/inflate.c b/src/boost/libs/beast/test/extern/zlib-1.2.11/inflate.c
13+
index ac333e8c2..a32c9bdba 100644
14+
--- a/src/boost/libs/beast/test/extern/zlib-1.2.11/inflate.c
15+
+++ b/src/boost/libs/beast/test/extern/zlib-1.2.11/inflate.c
16+
@@ -759,8 +759,9 @@ int flush;
17+
if (copy > have) copy = have;
18+
if (copy) {
19+
if (state->head != Z_NULL &&
20+
- state->head->extra != Z_NULL) {
21+
- len = state->head->extra_len - state->length;
22+
+ state->head->extra != Z_NULL &&
23+
+ (len = state->head->extra_len - state->length) <
24+
+ state->head->extra_max) {
25+
zmemcpy(state->head->extra + len, next,
26+
len + copy > state->head->extra_max ?
27+
state->head->extra_max - len : copy);
28+
diff --git a/src/boost/tools/boost_install/test/iostreams/zlib-1.2.11/inflate.c b/src/boost/tools/boost_install/test/iostreams/zlib-1.2.11/inflate.c
29+
index ac333e8c2..91b2e6445 100644
30+
--- a/src/boost/tools/boost_install/test/iostreams/zlib-1.2.11/inflate.c
31+
+++ b/src/boost/tools/boost_install/test/iostreams/zlib-1.2.11/inflate.c
32+
@@ -759,8 +759,9 @@ int flush;
33+
if (copy > have) copy = have;
34+
if (copy) {
35+
if (state->head != Z_NULL &&
36+
- state->head->extra != Z_NULL) {
37+
- len = state->head->extra_len - state->length;
38+
+ state->head->extra != Z_NULL &&
39+
+ (len = state->head->extra_len - state->length) <
40+
+ state->head->extra_max) {
41+
zmemcpy(state->head->extra + len, next,
42+
len + copy > state->head->extra_max ?
43+
state->head->extra_max - len : copy);
44+
--
45+
2.34.1
46+

SPECS/ceph/ceph.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Summary: User space components of the Ceph file system
66
Name: ceph
77
Version: 18.2.2
8-
Release: 5%{?dist}
8+
Release: 6%{?dist}
99
License: LGPLv2 and LGPLv3 and CC-BY-SA and GPLv2 and Boost and BSD and MIT and Public Domain and GPLv3 and ASL-2.0
1010
URL: https://ceph.io/
1111
Vendor: Microsoft Corporation
@@ -25,6 +25,7 @@ Patch10: CVE-2020-10722.patch
2525
Patch11: CVE-2024-25629.patch
2626
Patch12: CVE-2021-24032.patch
2727
Patch13: CVE-2020-10724.patch
28+
Patch14: CVE-2025-1744.patch
2829
#
2930
# Copyright (C) 2004-2019 The Ceph Project Developers. See COPYING file
3031
# at the top-level directory of this distribution and at
@@ -2013,6 +2014,9 @@ exit 0
20132014
%config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml
20142015

20152016
%changelog
2017+
* Tue 11 Mar 2025 Kavya Sree Kaitepalli <kkaitepalli@microsoft.com> - 18.2.2-6
2018+
- Patch CVE-2025-1744
2019+
20162020
* Wed Feb 05 2025 Kevin Lockwood <v-klockwood@microsoft.com> - 18.2.2-5
20172021
- Fix for CVE-2012-2677
20182022
- Fix for CVE-2020-10723

0 commit comments

Comments
 (0)