Skip to content

Commit 21fec47

Browse files
[AutoPR- Security] Patch ceph for CVE-2024-47866 [MEDIUM] (microsoft#15093)
1 parent 58d14d0 commit 21fec47

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

SPECS/ceph/CVE-2024-47866.patch

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 9d2825f03bb094836052de8c35666e7a720c1f28 Mon Sep 17 00:00:00 2001
2+
From: Suyash Dongre <[email protected]>
3+
Date: Wed, 20 Aug 2025 23:22:41 +0530
4+
Subject: [PATCH] Check if `HTTP_X_AMZ_COPY_SOURCE` header is empty
5+
6+
The issue was that the `HTTP_X_AMZ_COPY_SOURCE` header could be present but empty (i.e., an empty string rather than NULL). The code only checked if the pointer was not NULL, but didn't verify that the string had content. When an empty string was passed to RGWCopyObj::parse_copy_location(), it would eventually try to access name_str[0] on an empty string, causing a crash.
7+
8+
Fixes: https://tracker.ceph.com/issues/72669
9+
10+
Signed-off-by: Suyash Dongre <[email protected]>
11+
Signed-off-by: Azure Linux Security Servicing Account <[email protected]>
12+
Upstream-reference: https://patch-diff.githubusercontent.com/raw/ceph/ceph/pull/65159.patch
13+
---
14+
src/rgw/rgw_op.cc | 3 +++
15+
1 file changed, 3 insertions(+)
16+
17+
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
18+
index 655f057..0287e67 100644
19+
--- a/src/rgw/rgw_op.cc
20+
+++ b/src/rgw/rgw_op.cc
21+
@@ -4977,6 +4977,9 @@ bool RGWCopyObj::parse_copy_location(const std::string_view& url_src,
22+
params_str = url_src.substr(pos + 1);
23+
}
24+
25+
+ if (name_str.empty()) {
26+
+ return false;
27+
+ }
28+
if (name_str[0] == '/') // trim leading slash
29+
name_str.remove_prefix(1);
30+
31+
--
32+
2.45.4
33+

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: 16.2.10
8-
Release: 10%{?dist}
8+
Release: 11%{?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
@@ -21,6 +21,7 @@ Patch6: CVE-2025-1744.patch
2121
Patch7: CVE-2025-52939.patch
2222
Patch8: CVE-2024-48916.patch
2323
Patch9: CVE-2025-9648.patch
24+
Patch10: CVE-2024-47866.patch
2425
#
2526
# Copyright (C) 2004-2019 The Ceph Project Developers. See COPYING file
2627
# at the top-level directory of this distribution and at
@@ -1814,6 +1815,9 @@ exit 0
18141815
%config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml
18151816

18161817
%changelog
1818+
* Fri Nov 14 2025 Azure Linux Security Servicing Account <[email protected]> - 16.2.10-11
1819+
- Patch for CVE-2024-47866
1820+
18171821
* Fri Oct 03 2025 Azure Linux Security Servicing Account <[email protected]> - 16.2.10-10
18181822
- Patch for CVE-2025-9648
18191823

0 commit comments

Comments
 (0)