Skip to content

Commit 2925a10

Browse files
authored
[Medium] Patch Fio for CVE-2025-10823 (microsoft#14725)
1 parent 9a5d354 commit 2925a10

File tree

4 files changed

+48
-7
lines changed

4 files changed

+48
-7
lines changed

SPECS/fio/CVE-2025-10823.patch

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 6a39dfaffdb8a6c2080eec0dc7fb1ee532d54025 Mon Sep 17 00:00:00 2001
2+
From: Jens Axboe <[email protected]>
3+
Date: Tue, 23 Sep 2025 11:50:46 -0600
4+
Subject: [PATCH] options: check for NULL input string and fail
5+
6+
Waste of time busy work.
7+
8+
Link: https://github.com/axboe/fio/issues/1982
9+
Signed-off-by: Jens Axboe <[email protected]>
10+
11+
Modified patch to apply to AzureLinux
12+
Modified-by: Akarsh Chaudhary <[email protected]>
13+
Date: Wed, 24 Sep 2025
14+
15+
Upstream Patch Reference: https://github.com/axboe/fio/commit/6a39dfaffdb8a6c2080eec0dc7fb1ee532d54025.patch
16+
---
17+
options.c | 2 ++
18+
1 file changed, 2 insertions(+)
19+
20+
diff --git a/options.c b/options.c
21+
index e06d9b6..07ebec0 100644
22+
--- a/options.c
23+
+++ b/options.c
24+
@@ -1486,6 +1486,8 @@ static int str_buffer_pattern_cb(void *data, const char *input)
25+
{
26+
struct thread_data *td = cb_data_to_td(data);
27+
int ret;
28+
+ if (!input)
29+
+ return 1;
30+
31+
/* FIXME: for now buffer pattern does not support formats */
32+
ret = parse_and_fill_pattern(input, strlen(input), td->o.buffer_pattern,
33+
--
34+
2.45.4
35+

SPECS/fio/fio.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"fio-3.30.tar.bz2": "a6f4c0181112588a826b36ee634d5476dd562b7d19ac9c239abd1dabe3dc51e2"
3+
"fio-3.30.tar.gz": "305647377527a2827223065582dd8a9269e69866426b341699d55bb4e4d3cc71"
44
}
5-
}
5+
}

SPECS/fio/fio.spec

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
Summary: Multithreaded IO generation tool
22
Name: fio
33
Version: 3.30
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
License: GPLv2
66
Vendor: Microsoft Corporation
77
Distribution: Mariner
88
URL: https://git.kernel.dk/?p=fio.git;a=summary
9-
Source0: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
9+
Source0: https://github.com/axboe/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
10+
11+
Patch1: CVE-2025-10823.patch
12+
1013
BuildRequires: gcc
1114
BuildRequires: gnupg2
1215
BuildRequires: libaio-devel
@@ -22,7 +25,7 @@ BuildRequires: zlib-devel
2225
BuildRequires: libpmem-devel
2326
BuildRequires: libpmemblk-devel
2427
%endif
25-
%if %{with_check}
28+
%if 0%{?with_check}
2629
BuildRequires: CUnit-devel
2730
%endif
2831

@@ -125,7 +128,7 @@ Requires: %{name} = %{version}-%{release}
125128
RDMA engine for %{name}.
126129

127130
%prep
128-
%autosetup -p1
131+
%autosetup -n %{name}-%{name}-%{version} -p1
129132

130133
%py3_shebang_fix \
131134
tools/fio_jsonplus_clat2csv \
@@ -191,6 +194,9 @@ EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %make_build
191194
%{_libdir}/fio/fio-rdma.so
192195

193196
%changelog
197+
* Wed Sep 24 2025 Akarsh Chaudhary <[email protected]>- 3.30-3
198+
- Patch CVE-2025-10823
199+
194200
* Wed Sep 20 2023 Jon Slobodzian <[email protected]> - 3.30-2
195201
- Recompile with stack-protection fixed gcc version (CVE-2023-4039)
196202

cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3589,7 +3589,7 @@
35893589
"other": {
35903590
"name": "fio",
35913591
"version": "3.30",
3592-
"downloadUrl": "https://brick.kernel.dk/snaps/fio-3.30.tar.bz2"
3592+
"downloadUrl": "https://github.com/axboe/fio/archive/refs/tags/fio-3.30.tar.gz"
35933593
}
35943594
}
35953595
},

0 commit comments

Comments
 (0)