diff --git a/backport-CVE-2025-10158.patch b/backport-CVE-2025-10158.patch new file mode 100644 index 0000000000000000000000000000000000000000..6527476e3b04fc9818c81c093a58414479b6d50a --- /dev/null +++ b/backport-CVE-2025-10158.patch @@ -0,0 +1,27 @@ +From 797e17fc4a6f15e3b1756538a9f812b63942686f Mon Sep 17 00:00:00 2001 +From: Andrew Tridgell +Date: Sat, 23 Aug 2025 17:26:53 +1000 +Subject: [PATCH] fixed an invalid access to files array + +this was found by Calum Hutton from Rapid7. It is a real bug, but +analysis shows it can't be leverged into an exploit. Worth fixing +though. + +Many thanks to Calum and Rapid7 for finding and reporting this +--- + sender.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/sender.c b/sender.c +index a4d46c39e..b1588b701 100644 +--- a/sender.c ++++ b/sender.c +@@ -262,6 +262,8 @@ void send_files(int f_in, int f_out) + + if (ndx - cur_flist->ndx_start >= 0) + file = cur_flist->files[ndx - cur_flist->ndx_start]; ++ else if (cur_flist->parent_ndx < 0) ++ exit_cleanup(RERR_PROTOCOL); + else + file = dir_flist->files[cur_flist->parent_ndx]; + if (F_PATHNAME(file)) { diff --git a/rsync.spec b/rsync.spec index d512e870862a3d003cca68ca26f5a5225b16953f..e9b284eb9a9c704f794df5aedc2fc2a5dcf29d58 100644 --- a/rsync.spec +++ b/rsync.spec @@ -1,6 +1,6 @@ Name: rsync Version: 3.2.5 -Release: 4 +Release: 5 Summary: Fast incremental file transfer utility License: GPLv3+ URL: http://rsync.samba.org/ @@ -23,6 +23,7 @@ Patch6008: backport-CVE-2024-12088.patch Patch6009: backport-CVE-2024-12747.patch Patch6010: backport-Fix-FLAG_GOT_DIR_FLIST-collission-with-FLAG_HLINKED.patch Patch6011: backport-Fix_use-after-free_in_generator.patch +Patch6012: backport-CVE-2025-10158.patch BuildRequires: git gcc systemd libacl-devel libattr-devel autoconf popt-devel BuildRequires: lz4-devel openssl-devel libzstd-devel @@ -86,6 +87,9 @@ install -D -m644 %{SOURCE5} %{buildroot}/%{_unitdir}/rsyncd@.service %{_mandir}/man5/rsyncd.conf.5* %changelog +* Thu Nov 20 2025 yujingbo - 3.2.5-5 +- fix CVE-2025-10158 + * Wed Jan 15 2025 Funda Wang - 3.2.5-4 - fix CVE-2024-12085, CVE-2024-12086, CVE-2024-12087, CVE-2024-12088, CVE-2024-12747