rsync: upgrade 3.2.7 -> 3.5.1
cover rsync: upgrade 3.2.7 -> 3.5.1
From: Darsh Kelaiya <[email protected]>
Upgrade rsync on Scarthgap directly from 3.2.7 to 3.5.1 in one commit. This consolidates six OE-Core master upgrades; their commit references and original contributor credits are retained in the patch.
The TSC approved an exception to the stable branch policy for rsync on Scarthgap and Wrynose [1]. The maintainers concluded that upgrading is preferable to carrying the large security backport series or leaving the CVEs unpatched. They recommended 3.5.1 to align with master and Blacksail and include the regression fixes following 3.5.0. This patch implements that approved upgrade using published release tarballs.
Versions 3.4.1 and 3.4.2 include the fixes carried by Scarthgap's existing CVE patches. Remove all fourteen redundant source patches, including CVE-2025-10158.patch and CVE-2026-41035.patch. Version 3.4.4 includes the security fixes from 3.4.3 and subsequent regression fixes. Version 3.5.0 fixes 33 further security issues with differing affected-version ranges. Version 3.5.1 addresses reported 3.5.0 regressions, including path handling and access to standard-stream file descriptors [2]. The three retained source patches are refreshed for the new releases.
The backport retains Scarthgap's WORKDIR-based installation and existing build configuration. Internationalized domain name support is exposed through the optional idn PACKAGECONFIG and is disabled by default.
Compatibility considerations: 3.5.1 changes the wire protocol number to 33 and adds logical-block statistics when both peers use protocol
33. Rsync documents negotiation of the newest protocol shared by both peers [3]. Mixed-version transfer behavior still needs runtime validation.
[1] https://lists.openembedded.org/g/openembedded-core/message/248203
[2] https://download.samba.org/pub/rsync/NEWS
[3] https://download.samba.org/pub/rsync/rsync.1
Darsh Kelaiya (1):
rsync: upgrade 3.2.7 -> 3.5.1
...-prototypes-to-function-declarations.patch | 126 ++----------
.../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/files/determism.patch | 20 +-
.../rsync/files/makefile-no-rebuild.patch | 11 +-
.../rsync/{rsync_3.2.7.bb => rsync_3.5.1.bb} | 17 +-
18 files changed, 37 insertions(+), 1195 deletions(-)
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.5.1.bb} (79%)Signature · 1 line
2.35.6
PATCH 1/1 rsync: upgrade 3.2.7 -> 3.5.1
From: Darsh Kelaiya <[email protected]>
Consolidate six OE-Core master upgrades into one Scarthgap backport using the published rsync 3.5.1 release tarball.
The TSC approved this exception to the stable branch policy for rsync on Scarthgap and Wrynose [1]. The upgrade avoids carrying the large security backport series and includes the regression fixes following 3.5.0. It also aligns the version with master and Blacksail.
The release includes the earlier security fixes from 3.4.x and the 33 security fixes in 3.5.0. The affected version ranges differ between those CVEs. Version 3.5.1 fixes path handling, standard-stream access and other regressions introduced in 3.5.0 [2].
Backport Changes:
- Upgrade directly from Scarthgap's 3.2.7 recipe to 3.5.1, folding the intermediate version updates and source patch refreshes together.
- Remove all fourteen existing CVE patches because their fixes are included in the release sources. These cover CVE-2024-12084, CVE-2024-12085, CVE-2024-12086, CVE-2024-12087, CVE-2024-12088, CVE-2024-12747, CVE-2025-10158 and CVE-2026-41035.
- Retain Scarthgap's WORKDIR-based installation and build configuration.
- Refresh the three retained source patches and add the optional idn PACKAGECONFIG from master, disabled by default.
Upstream 3.5.0 security fixes:
CVE-2026-53802 CVE-2026-53803 CVE-2026-53785 CVE-2026-53784 CVE-2026-53793 CVE-2026-53795 CVE-2026-53796 CVE-2026-53797 CVE-2026-53799 CVE-2026-53800 CVE-2026-53801 CVE-2026-53783 CVE-2026-53786 CVE-2026-53798 CVE-2026-53788 CVE-2026-53789 CVE-2026-53791 CVE-2026-53790 CVE-2026-53792 CVE-2026-53794 CVE-2026-70461 CVE-2026-70458 CVE-2026-70456 CVE-2026-70457 CVE-2026-70459 CVE-2026-70464 CVE-2026-70455 CVE-2026-70453 CVE-2026-70452 CVE-2026-70463 CVE-2026-70460 CVE-2026-70462 CVE-2026-70454
The original upgrade authors are credited as follows:
- Wang Mingyu: 3.2.7 -> 3.3.0.
- Archana Polampalli: 3.3.0 -> 3.4.1.
- Richard Purdie: 3.4.1 -> 3.4.2 and 3.4.2 -> 3.4.4.
- Jaipaul Cheernam: 3.4.4 -> 3.5.0 and 3.5.0 -> 3.5.1.
[1] https://lists.openembedded.org/g/openembedded-core/message/248203
[2] https://download.samba.org/pub/rsync/NEWS
---
...-prototypes-to-function-declarations.patch | 126 ++----------
.../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/files/determism.patch | 20 +-
.../rsync/files/makefile-no-rebuild.patch | 11 +-
.../rsync/{rsync_3.2.7.bb => rsync_3.5.1.bb} | 17 +-
18 files changed, 37 insertions(+), 1195 deletions(-)
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.5.1.bb} (79%)meta/recipes-devtools/rsync/files/0001-Add-missing-prototypes-to-function-declarations.patch +16 -110
@@ -1,4 +1,4 @@ -From 651425fced0691d9063fe417388ba6ca1c38c40b Mon Sep 17 00:00:00 2001 +From 56a785a7d964f797a786b2d5b75d9cee51b530b1 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
@@ -15,25 +15,19 @@ Fixes errors like Upstream-Status: Submitted [https://lists.samba.org/archive/rsync/2022-August/032858.html] Signed-off-by: Khem Raj <[email protected]> - +Signed-off-by: Archana Polampalli <[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(-) + checksum.c | 2 +- + exclude.c | 2 +- + log.c | 2 +- + main.c | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/checksum.c b/checksum.c -index 60de365..67a9e16 100644 +index 4c91c2b..b3635a0 100644 --- a/checksum.c +++ b/checksum.c -@@ -778,7 +778,7 @@ static void verify_digest(struct name_num_item *nni, BOOL check_auth_list) +@@ -796,7 +796,7 @@ static void verify_digest(struct name_num_item *nni, BOOL check_auth_list) } #endif
@@ -43,10 +37,10 @@ index 60de365..67a9e16 100644 #if defined SUPPORT_XXH3 || defined USE_OPENSSL struct name_num_item *nni; diff --git a/exclude.c b/exclude.c -index ffe55b1..a85ea76 100644 +index 7476f6a..b939a0c 100644 --- a/exclude.c +++ b/exclude.c -@@ -363,7 +363,7 @@ void implied_include_partial_string(const char *s_start, const char *s_end) +@@ -460,7 +460,7 @@ void implied_include_partial_string(const char *s_start, const char *s_end) memcpy(partial_string_buf, s_start, partial_string_len); }
@@ -55,38 +49,11 @@ index ffe55b1..a85ea76 100644 { 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 +index 889b57b..19e5e98 100644 --- a/log.c +++ b/log.c -@@ -131,7 +131,7 @@ static void logit(int priority, const char *buf) +@@ -140,7 +140,7 @@ static void logit(int priority, const char *buf) } }
@@ -96,11 +63,11 @@ index e4ba1cc..8482b71 100644 int options = LOG_PID; diff --git a/main.c b/main.c -index d2a7b9b..c50af45 100644 +index ed6e554..b5f9448 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); +@@ -250,7 +250,7 @@ void read_del_stats(int f) + stats.deleted_files += stats.deleted_specials = read_varint_bounded(f, 0, MAX_WIRE_DEL_STAT, "deleted_specials"); } -static void become_copy_as_user()
@@ -108,64 +75,3 @@ index d2a7b9b..c50af45 100644 { 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/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/files/determism.patch +14 -6
@@ -1,7 +1,12 @@ +From e784131e4ccbaf8ad7107d1f7a7f13da8c675827 Mon Sep 17 00:00:00 2001 +From: Richard Purdie <[email protected]> +Date: Sun, 21 Feb 2021 09:45:48 +0000 +Subject: [PATCH] rsync: Fix a file sorting determinism issue + The Makefile calls awk on a "*.c" glob. The results of this glob are sorted but the order depends on the locale settings, particularly whether "util.c" and "util2.c" sort before or after each other. In en_US.UTF-8 -they sort one way, in C, they sort the other. The sorting order changes +they sort one way, in C, they sort the other. The sorting order changes the output binaries. The behaviour also changes dependning on whether SHELL (/bin/sh) is dash or bash.
@@ -15,12 +20,15 @@ Upstream-Status: Backport [ish, see below] After discussion upstream renamed util.c to util1.c which avoids the problem in a different way. This patch can be dropped when we upgrade to include: https://github.com/WayneD/rsync/commit/d3085f7add38a5cf833a0b31cb0637ff46c80f8d +--- + Makefile.in | 5 +++++ + 1 file changed, 5 insertions(+) -Index: rsync-3.2.3/Makefile.in -=================================================================== ---- rsync-3.2.3.orig/Makefile.in -+++ rsync-3.2.3/Makefile.in -@@ -26,6 +26,11 @@ MKDIR_P=@MKDIR_P@ +diff --git a/Makefile.in b/Makefile.in +index de24949..bb9bb27 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -28,6 +28,11 @@ MKDIR_P=@MKDIR_P@ VPATH=$(srcdir) SHELL=/bin/sh
meta/recipes-devtools/rsync/files/makefile-no-rebuild.patch +5 -6
@@ -1,4 +1,4 @@ -From 81700d1a0e51391028c761cc8ef1cd660084d114 Mon Sep 17 00:00:00 2001 +From 0e1f2aec0dbfc150013860b42b41645cebe236b7 Mon Sep 17 00:00:00 2001 From: Ross Burton <[email protected]> Date: Tue, 12 Apr 2016 15:51:54 +0100 Subject: [PATCH] rsync: remove upstream's rebuild logic
@@ -8,18 +8,17 @@ generally overcomplicated, and we ensure that autoreconf is invoked if required. Upstream-Status: Inappropriate Signed-off-by: Ross Burton <[email protected]> - --- Makefile.in | 54 ----------------------------------------------------- 1 file changed, 54 deletions(-) diff --git a/Makefile.in b/Makefile.in -index 3cde955..d963a70 100644 +index 716171d..de24949 100644 --- a/Makefile.in +++ b/Makefile.in -@@ -190,60 +190,6 @@ gensend: gen - fi - rsync -aic $(GENFILES) git-version.h $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/ || true +@@ -267,60 +267,6 @@ conf: configure.sh config.h.in + .PHONY: gen + gen: conf proto.h man git-version.h -aclocal.m4: $(srcdir)/m4/*.m4 - aclocal -I $(srcdir)/m4
meta/recipes-devtools/rsync/rsync_3.5.1.bb renamed from meta/recipes-devtools/rsync/rsync_3.2.7.bb +2 -15
@@ -15,22 +15,8 @@ SRC_URI = "https://download.samba.org/pub/${BPN}/src/${BP}.tar.gz \ 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 \ " -SRC_URI[sha256sum] = "4e7d9d3f6ed10878c58c5fb724a67dacf4b6aac7340b13e488fb2dc41346f2bb" +SRC_URI[sha256sum] = "c55f9c9dc10fb8bec397b399a0fdded53cc9a2d8e30891bb0d63724d25c37bef" inherit autotools-brokensep
@@ -40,6 +26,7 @@ PACKAGECONFIG ??= "acl attr \ PACKAGECONFIG[acl] = "--enable-acl-support,--disable-acl-support,acl," PACKAGECONFIG[attr] = "--enable-xattr-support,--disable-xattr-support,attr," +PACKAGECONFIG[idn] = "--enable-idn,--disable-idn,libidn2" PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," PACKAGECONFIG[lz4] = "--enable-lz4,--disable-lz4,lz4" PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
Signature · 1 line
2.35.6