Skip to content

Commit 648b4bc

Browse files
[AUTO-CHERRYPICK] Patch ceph for CVE-2025-1744 [CRITICAL] - branch main (#12897)
Co-authored-by: KavyaSree2610 <92566732+KavyaSree2610@users.noreply.github.com>
1 parent bb05f4d commit 648b4bc

2 files changed

Lines changed: 49 additions & 2 deletions

File tree

SPECS/ceph/CVE-2025-1744.patch

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

SPECS/ceph/ceph.spec

Lines changed: 4 additions & 2 deletions
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: 16.2.10
8-
Release: 6%{?dist}
8+
Release: 7%{?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
@@ -17,7 +17,7 @@ Patch2: CVE-2022-3650.patch
1717
Patch3: CVE-2022-3854.patch
1818
Patch4: CVE-2023-43040.patch
1919
Patch5: CVE-2024-38517.patch
20-
20+
Patch6: CVE-2025-1744.patch
2121
#
2222
# Copyright (C) 2004-2019 The Ceph Project Developers. See COPYING file
2323
# at the top-level directory of this distribution and at
@@ -1813,6 +1813,8 @@ exit 0
18131813
%config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml
18141814

18151815
%changelog
1816+
* Tue Mar 11 2025 Kavya Sree Kaitepalli <kkaitepalli@microsoft.com> - 16.2.10-7
1817+
- Patch CVE-2025-1744
18161818
* Sat Aug 24 2024 Jon Slobodzian <joslobo@microsoft.com> - 16.2.10-6
18171819
- Add missing Requires for shadow-utils
18181820

0 commit comments

Comments
 (0)