Skip to content

Commit cd7cf07

Browse files
authored
Patched CVE-2023-26253 in glusterfs. (CP: #9717) (#9719)
1 parent 4fa1760 commit cd7cf07

2 files changed

Lines changed: 48 additions & 3 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
2+
index e2c963aac38..d6633875fb3 100644
3+
--- a/xlators/mount/fuse/src/fuse-bridge.c
4+
+++ b/xlators/mount/fuse/src/fuse-bridge.c
5+
@@ -6486,6 +6486,7 @@ notify(xlator_t *this, int32_t event, void *data, ...)
6+
int32_t ret = 0;
7+
fuse_private_t *private = NULL;
8+
gf_boolean_t start_thread = _gf_false;
9+
+ gf_boolean_t event_graph = _gf_true;
10+
glusterfs_graph_t *graph = NULL;
11+
struct pollfd pfd = {0};
12+
13+
@@ -6493,9 +6494,6 @@ notify(xlator_t *this, int32_t event, void *data, ...)
14+
15+
graph = data;
16+
17+
- gf_log("fuse", GF_LOG_DEBUG, "got event %d on graph %d", event,
18+
- ((graph) ? graph->id : 0));
19+
-
20+
switch (event) {
21+
case GF_EVENT_GRAPH_NEW:
22+
break;
23+
@@ -6581,9 +6579,19 @@ notify(xlator_t *this, int32_t event, void *data, ...)
24+
}
25+
26+
default:
27+
+ /* Set the event_graph to false so that event
28+
+ debug msg would not try to access invalid graph->id
29+
+ while data object is not matched to graph object
30+
+ for ex in case of upcall event data object represents
31+
+ gf_upcall object
32+
+ */
33+
+ event_graph = _gf_false;
34+
break;
35+
}
36+
37+
+ gf_log("fuse", GF_LOG_DEBUG, "got event %d on graph %d", event,
38+
+ ((graph && event_graph) ? graph->id : -1));
39+
+
40+
return ret;
41+
}
42+

SPECS/glusterfs/glusterfs.spec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
Summary: Distributed File System
111111
Name: glusterfs
112112
Version: 7.9
113-
Release: 5%{?dist}
113+
Release: 6%{?dist}
114114
License: GPLv2 OR LGPLv3+
115115
Vendor: Microsoft Corporation
116116
Distribution: Mariner
@@ -121,6 +121,7 @@ Source2: glusterfsd.sysconfig
121121
Source7: glusterfsd.service
122122
Source8: glusterfsd.init
123123
Patch0001: 0001-rpc-rpc-lib-src-Makefile.am.patch
124+
Patch0002: CVE-2023-26253.patch
124125

125126
BuildRequires: bison
126127
BuildRequires: flex
@@ -554,8 +555,7 @@ functionality, and also few other scripts required for setup.
554555
This package provides the glusterfs thin-arbiter translator.
555556

556557
%prep
557-
%setup -q -n %{name}-%{version}%{?dev}
558-
%patch0001 -p1
558+
%autosetup -n %{name}-%{version}%{?dev} -p1
559559

560560
%build
561561

@@ -1226,6 +1226,9 @@ exit 0
12261226
%endif
12271227

12281228
%changelog
1229+
* Mon Jul 08 2024 Pawel Winogrodzki <pawelwi@microsoft.com> - 7.9-6
1230+
- Patching CVE-2023-26253.
1231+
12291232
* Wed Sep 20 2023 Jon Slobodzian <joslobo@microsoft.com> - 7.9-5
12301233
- Recompile with stack-protection fixed gcc version (CVE-2023-4039)
12311234

0 commit comments

Comments
 (0)