rsync: upgrade 3.2.7 -> 3.4.4
PATCH 1/1 rsync: upgrade 3.2.7 -> 3.4.4
- Drop 14 CVE patches fixed upstream in 3.4.x series
- Refresh prototypes patch for 3.4.4
- All CVE-2024-12084 through CVE-2024-12088, CVE-2024-12747, CVE-2025-10158, CVE-2026-41035 resolved in this release
---
...-prototypes-to-function-declarations.patch | 171 ----------------
.../files/0001-Add-missing-prototypes.patch | 81 ++++++++
.../rsync/files/CVE-2024-12084-0001.patch | 156 --------------
.../rsync/files/CVE-2024-12084-0002.patch | 43 ----
.../rsync/files/CVE-2024-12085.patch | 32 ---
.../rsync/files/CVE-2024-12086-0001.patch | 42 ----
.../rsync/files/CVE-2024-12086-0002.patch | 108 ----------
.../rsync/files/CVE-2024-12086-0003.patch | 108 ----------
.../rsync/files/CVE-2024-12086-0004.patch | 41 ----
.../rsync/files/CVE-2024-12087-0001.patch | 49 -----
.../rsync/files/CVE-2024-12087-0002.patch | 31 ---
.../rsync/files/CVE-2024-12087-0003.patch | 40 ----
.../rsync/files/CVE-2024-12088.patch | 141 -------------
.../rsync/files/CVE-2024-12747.patch | 192 ------------------
.../rsync/files/CVE-2025-10158.patch | 36 ----
.../rsync/files/CVE-2026-41035.patch | 39 ----
.../rsync/{rsync_3.2.7.bb => rsync_3.4.4.bb} | 18 +-
17 files changed, 83 insertions(+), 1245 deletions(-)
delete mode 100644 meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch
create mode 100644 meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12084-0001.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12084-0002.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12085.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12086-0001.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12086-0002.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12086-0003.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12086-0004.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12087-0001.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12087-0002.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12087-0003.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12088.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2024-12747.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2025-10158.patch
delete mode 100644 meta/recipes-devtools/rsync/files/CVE-2026-41035.patch
rename meta/recipes-devtools/rsync/{rsync_3.2.7.bb => rsync_3.4.4.bb} (77%)meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch deleted +0 -171
@@ -1,171 +0,0 @@ -From 651425fced0691d9063fe417388ba6ca1c38c40b Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 29 Aug 2022 19:53:28 -0700 -Subject: [PATCH] Add missing prototypes to function declarations - -With Clang 15+ compiler -Wstrict-prototypes is triggering warnings which -are turned into errors with -Werror, this fixes the problem by adding -missing prototypes - -Fixes errors like -| log.c:134:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] -| static void syslog_init() -| ^ -| void - -Upstream-Status: Submitted [https://lists.samba.org/archive/rsync/2022-August/032858.html] -Signed-off-by: Khem Raj <[email protected]> - ---- - checksum.c | 2 +- - exclude.c | 2 +- - hlink.c | 3 +-- - lib/pool_alloc.c | 2 +- - log.c | 2 +- - main.c | 2 +- - syscall.c | 4 ++-- - zlib/crc32.c | 2 +- - zlib/trees.c | 2 +- - zlib/zutil.c | 4 ++-- - 10 files changed, 12 insertions(+), 13 deletions(-) - -diff --git a/checksum.c b/checksum.c -index 60de365..67a9e16 100644 ---- a/checksum.c -+++ b/checksum.c -@@ -778,7 +778,7 @@ static void verify_digest(struct name_num_item *nni, BOOL check_auth_list) - } - #endif - --void init_checksum_choices() -+void init_checksum_choices(void) - { - #if defined SUPPORT_XXH3 || defined USE_OPENSSL - struct name_num_item *nni; -diff --git a/exclude.c b/exclude.c -index ffe55b1..a85ea76 100644 ---- a/exclude.c -+++ b/exclude.c -@@ -363,7 +363,7 @@ void implied_include_partial_string(const char *s_start, const char *s_end) - memcpy(partial_string_buf, s_start, partial_string_len); - } - --void free_implied_include_partial_string() -+void free_implied_include_partial_string(void) - { - if (partial_string_buf) { - if (partial_string_len) -diff --git a/hlink.c b/hlink.c -index 20291f2..5c26a6b 100644 ---- a/hlink.c -+++ b/hlink.c -@@ -117,8 +117,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count) - struct ht_int32_node *node = NULL; - int32 gnum, gnum_next; - -- qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)()) hlink_compare_gnum); -- -+ qsort(ndx_list, ndx_count, sizeof ndx_list[0], (int (*)(const void *, const void *)) hlink_compare_gnum); - for (from = 0; from < ndx_count; from++) { - file = hlink_flist->sorted[ndx_list[from]]; - gnum = F_HL_GNUM(file); -diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c -index a1a7245..4eae062 100644 ---- a/lib/pool_alloc.c -+++ b/lib/pool_alloc.c -@@ -9,7 +9,7 @@ struct alloc_pool - size_t size; /* extent size */ - size_t quantum; /* allocation quantum */ - struct pool_extent *extents; /* top extent is "live" */ -- void (*bomb)(); /* called if malloc fails */ -+ void (*bomb)(const char *, const char *, int); /* called if malloc fails */ - int flags; - - /* statistical data */ -diff --git a/log.c b/log.c -index e4ba1cc..8482b71 100644 ---- a/log.c -+++ b/log.c -@@ -131,7 +131,7 @@ static void logit(int priority, const char *buf) - } - } - --static void syslog_init() -+static void syslog_init(void) - { - int options = LOG_PID; - -diff --git a/main.c b/main.c -index d2a7b9b..c50af45 100644 ---- a/main.c -+++ b/main.c -@@ -244,7 +244,7 @@ void read_del_stats(int f) - stats.deleted_files += stats.deleted_specials = read_varint(f); - } - --static void become_copy_as_user() -+static void become_copy_as_user(void) - { - char *gname; - uid_t uid; -diff --git a/syscall.c b/syscall.c -index d92074a..92ca86d 100644 ---- a/syscall.c -+++ b/syscall.c -@@ -389,9 +389,9 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence) - { - #ifdef HAVE_LSEEK64 - #if !SIZEOF_OFF64_T -- OFF_T lseek64(); -+ OFF_T lseek64(int fd, OFF_T offset, int whence); - #else -- off64_t lseek64(); -+ off64_t lseek64(int fd, off64_t offset, int whence); - #endif - return lseek64(fd, offset, whence); - #else -diff --git a/zlib/crc32.c b/zlib/crc32.c -index 05733f4..50c6c02 100644 ---- a/zlib/crc32.c -+++ b/zlib/crc32.c -@@ -187,7 +187,7 @@ local void write_table(out, table) - /* ========================================================================= - * This function can be used by asm versions of crc32() - */ --const z_crc_t FAR * ZEXPORT get_crc_table() -+const z_crc_t FAR * ZEXPORT get_crc_table(void) - { - #ifdef DYNAMIC_CRC_TABLE - if (crc_table_empty) -diff --git a/zlib/trees.c b/zlib/trees.c -index 9c66770..0d9047e 100644 ---- a/zlib/trees.c -+++ b/zlib/trees.c -@@ -231,7 +231,7 @@ local void send_bits(s, value, length) - /* =========================================================================== - * Initialize the various 'constant' tables. - */ --local void tr_static_init() -+local void tr_static_init(void) - { - #if defined(GEN_TREES_H) || !defined(STDC) - static int static_init_done = 0; -diff --git a/zlib/zutil.c b/zlib/zutil.c -index bbba7b2..61f8dc9 100644 ---- a/zlib/zutil.c -+++ b/zlib/zutil.c -@@ -27,12 +27,12 @@ z_const char * const z_errmsg[10] = { - ""}; - - --const char * ZEXPORT zlibVersion() -+const char * ZEXPORT zlibVersion(void) - { - return ZLIB_VERSION; - } - --uLong ZEXPORT zlibCompileFlags() -+uLong ZEXPORT zlibCompileFlags(void) - { - uLong flags; -
meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes.patch new file +81 -0
81 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12084-0001.patch deleted +0 -156
156 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12084-0002.patch deleted +0 -43
43 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12085.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 589b0691e59f761ccb05ddb8e1124991440db2c7 Mon Sep 17 00:00:00 2001 -From: Andrew Tridgell <[email protected]> -Date: Thu, 14 Nov 2024 09:57:08 +1100 -Subject: [PATCH] prevent information leak off the stack - -prevent leak of uninitialised stack data in hash_search - -CVE: CVE-2024-12085 - -Upstream-Status: Backport [https://git.samba.org/?p=rsync.git;a=commit;h=589b0691e59f761ccb05ddb8e1124991440db2c7] - -Signed-off-by: Archana Polampalli <[email protected]> ---- - match.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/match.c b/match.c -index 36e78ed2..dfd6af2c 100644 ---- a/match.c -+++ b/match.c -@@ -147,6 +147,9 @@ static void hash_search(int f,struct sum_struct *s, - int more; - schar *map; - -+ // prevent possible memory leaks -+ memset(sum2, 0, sizeof sum2); -+ - /* want_i is used to encourage adjacent matches, allowing the RLL - * coding of the output to work more efficiently. */ - want_i = 0; --- -2.40.0
meta/recipes-devtools/rsync/files/CVE-2024-12086-0001.patch deleted +0 -42
42 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12086-0002.patch deleted +0 -108
108 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12086-0003.patch deleted +0 -108
108 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12086-0004.patch deleted +0 -41
41 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12087-0001.patch deleted +0 -49
49 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12087-0002.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 344327385fa47fa5bb67a32c237735e6240cfb93 Mon Sep 17 00:00:00 2001 -From: Andrew Tridgell <[email protected]> -Date: Tue, 26 Nov 2024 16:12:45 +1100 -Subject: [PATCH] range check dir_ndx before use - -CVE: CVE-2024-12087 - -Upstream-Status: Backport [https://git.samba.org/?p=rsync.git;a=commit;h=344327385fa47fa5bb67a32c237735e6240cfb93] - -Signed-off-by: Archana Polampalli <[email protected]> ---- - flist.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/flist.c b/flist.c -index 847b1054..087f9da6 100644 ---- a/flist.c -+++ b/flist.c -@@ -2585,6 +2585,10 @@ struct file_list *recv_file_list(int f, int dir_ndx) - #endif - - if (inc_recurse && dir_ndx >= 0) { -+ if (dir_ndx >= dir_flist->used) { -+ rprintf(FERROR_XFER, "rsync: refusing invalid dir_ndx %u >= %u\n", dir_ndx, dir_flist->used); -+ exit_cleanup(RERR_PROTOCOL); -+ } - struct file_struct *file = dir_flist->files[dir_ndx]; - if (file->flags & FLAG_GOT_DIR_FLIST) { - rprintf(FERROR_XFER, "rsync: refusing malicious duplicate flist for dir %d\n", dir_ndx); --- -2.40.0
meta/recipes-devtools/rsync/files/CVE-2024-12087-0003.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 996af4a79f9afe4d7158ecdd87c78cee382c6b39 Mon Sep 17 00:00:00 2001 -From: Natanael Copa <[email protected]> -Date: Wed, 15 Jan 2025 15:10:24 +0100 -Subject: [PATCH] Fix FLAG_GOT_DIR_FLIST collission with FLAG_HLINKED - -fixes commit 688f5c379a43 (Refuse a duplicate dirlist.) - -Fixes: https://github.com/RsyncProject/rsync/issues/702 -Fixes: https://github.com/RsyncProject/rsync/issues/697 -CVE: CVE-2024-12087 - -Upstream-Status: Backport [https://github.com/RsyncProject/rsync/commit/996af4a79f9afe4d7158ecdd87c78cee382c6b39] - -Signed-off-by: Archana Polampalli <[email protected]> ---- - rsync.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/rsync.h b/rsync.h -index 9be1297b..479ac484 100644 ---- a/rsync.h -+++ b/rsync.h -@@ -84,7 +84,6 @@ - #define FLAG_DUPLICATE (1<<4) /* sender */ - #define FLAG_MISSING_DIR (1<<4) /* generator */ - #define FLAG_HLINKED (1<<5) /* receiver/generator (checked on all types) */ --#define FLAG_GOT_DIR_FLIST (1<<5)/* sender/receiver/generator - dir_flist only */ - #define FLAG_HLINK_FIRST (1<<6) /* receiver/generator (w/FLAG_HLINKED) */ - #define FLAG_IMPLIED_DIR (1<<6) /* sender/receiver/generator (dirs only) */ - #define FLAG_HLINK_LAST (1<<7) /* receiver/generator */ -@@ -93,6 +92,7 @@ - #define FLAG_SKIP_GROUP (1<<10) /* receiver/generator */ - #define FLAG_TIME_FAILED (1<<11)/* generator */ - #define FLAG_MOD_NSEC (1<<12) /* sender/receiver/generator */ -+#define FLAG_GOT_DIR_FLIST (1<<13)/* sender/receiver/generator - dir_flist only */ - - /* These flags are passed to functions but not stored. */ - --- -2.40.0
meta/recipes-devtools/rsync/files/CVE-2024-12088.patch deleted +0 -141
141 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2024-12747.patch deleted +0 -192
192 lines not on this page · raw message
meta/recipes-devtools/rsync/files/CVE-2025-10158.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 797e17fc4a6f15e3b1756538a9f812b63942686f Mon Sep 17 00:00:00 2001 -From: Andrew Tridgell <[email protected]> -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 - -CVE: CVE-2025-10158 -Upstream-Status: Backport -[https://github.com/RsyncProject/rsync/commit/797e17fc4a6f15e3b1756538a9f812b63942686f] -Signed-off-by: Adarsh Jagadish Kamini<[email protected]> ---- - sender.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/sender.c b/sender.c -index 2bbff2fa..5528071e 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)) { --- -2.44.1 -
meta/recipes-devtools/rsync/files/CVE-2026-41035.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From bb0a8118c2d2ab01140bac5e4e327e5e1ef90c9c Mon Sep 17 00:00:00 2001 -From: Andrew Tridgell <[email protected]> -Date: Wed, 22 Apr 2026 09:57:45 +1000 -Subject: [PATCH] xattrs: fixed count in qsort - -this fixes the count passed to the sort of the xattr list. This issue -was reported here: - -https://www.openwall.com/lists/oss-security/2026/04/16/2 - -the bug is not exploitable due to the fork-per-connection design of -rsync, the attack is the equivalent of the user closing the socket -themselves. - -CVE: CVE-2026-41035 -Upstream-Status: Backport [https://github.com/RsyncProject/rsync/commit/bb0a8118c2d2ab01140bac5e4e327e5e1ef90c9c] -Signed-off-by: Hitendra Prajapati <[email protected]> ---- - xattrs.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/xattrs.c b/xattrs.c -index 26e50a6..65166ee 100644 ---- a/xattrs.c -+++ b/xattrs.c -@@ -860,8 +860,8 @@ void receive_xattr(int f, struct file_struct *file) - rxa->num = num; - } - -- if (need_sort && count > 1) -- qsort(temp_xattr.items, count, sizeof (rsync_xa), rsync_xal_compare_names); -+ if (need_sort && temp_xattr.count > 1) -+ qsort(temp_xattr.items, temp_xattr.count, sizeof (rsync_xa), rsync_xal_compare_names); - - ndx = rsync_xal_store(&temp_xattr); /* adds item to rsync_xal_l */ - --- -2.50.1 -
meta/recipes-devtools/rsync/rsync_3.4.4.bb renamed from meta/recipes-devtools/rsync/rsync_3.2.7.bb +2 -16
@@ -14,23 +14,9 @@ SRC_URI = "https://download.samba.org/pub/${BPN}/src/${BP}.tar.gz \ file://rsyncd.conf \ file://makefile-no-rebuild.patch \ file://determism.patch \ - file://0001-Add-missing-prototypes-to-function-declarations.patch \ - file://CVE-2024-12084-0001.patch \ - file://CVE-2024-12084-0002.patch \ - file://CVE-2024-12085.patch \ - file://CVE-2024-12086-0001.patch \ - file://CVE-2024-12086-0002.patch \ - file://CVE-2024-12086-0003.patch \ - file://CVE-2024-12086-0004.patch \ - file://CVE-2024-12087-0001.patch \ - file://CVE-2024-12087-0002.patch \ - file://CVE-2024-12087-0003.patch \ - file://CVE-2024-12088.patch \ - file://CVE-2024-12747.patch \ - file://CVE-2025-10158.patch \ - file://CVE-2026-41035.patch \ + file://0001-Add-missing-prototypes.patch \ " -SRC_URI[sha256sum] = "4e7d9d3f6ed10878c58c5fb724a67dacf4b6aac7340b13e488fb2dc41346f2bb" +SRC_URI[sha256sum] = "bd88cf82fa653da32314fb229136407c5c90f80d1758d8f4b091767877d8fa96" inherit autotools-brokensep
Signature · 1 line
2.55.0
Hi,
Thank you for maintaining the stable branch. Per the stable branch policy, please ignore this version upgrade patch. The existing 14 CVE backport patches already cover the listed CVEs in the recipe.
I will follow the stable branch rules and send individual CVE backport patches for any new CVEs going forward.
Thanks,
Lian
Hi,
Per the stable branch policy, please ignore this version upgrade patch. The existing 14 CVE backport patches already cover the listed CVEs in the recipe.
I will follow the stable branch rules and send individual CVE backport patches for any new CVEs going forward.
Thanks,
Lian