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 dedf9dca6f65fc84b1c568c337950d636ddb51bc..4fd4971617cbaa3dfbd887b0a9262e38762691c0 100644 --- a/rsync.spec +++ b/rsync.spec @@ -1,6 +1,6 @@ Name: rsync Version: 3.1.3 -Release: 11 +Release: 12 Summary: Fast incremental file transfer utility License: GPLv3+ URL: http://rsync.samba.org/ @@ -49,6 +49,7 @@ Patch28: backport-CVE-2024-12088.patch Patch29: backport-CVE-2024-12747.patch Patch30: backport-Fix-FLAG_GOT_DIR_FLIST-collission-with-FLAG_HLINKED.patch Patch31: backport-Fix_use-after-free_in_generator.patch +Patch32: backport-CVE-2025-10158.patch %description Rsync is an open source utility that provides fast incremental file transfer. @@ -109,6 +110,9 @@ install -D -m644 %{SOURCE6} %{buildroot}/%{_unitdir}/rsyncd@.service %{_mandir}/man5/rsyncd.conf.5* %changelog +* Thu Nov 20 2025 yujingbo - 3.1.3-12 +- fix CVE-2025-10158 + * Thu Jan 16 2025 Funda Wang - 3.1.3-11 - fix CVE-2024-12085, CVE-2024-12086, CVE-2024-12087, CVE-2024-12088, CVE-2024-12747