Commit Graph

15 Commits

Author SHA1 Message Date
RHEL Packaging Agent
bdabab39cb Fix CVE-2026-29518: TOCTOU symlink race in non-chrooted daemon modules
Add patch for CVE-2026-29518, a TOCTOU race condition where a
local attacker with write access to a non-chrooted rsync daemon
module can replace a parent directory component with a symlink
between path validation and file open, enabling reads/writes
outside the module boundary.

The patch adds secure_relative_open() which walks parent path
components under RESOLVE_BENEATH (or per-component O_NOFOLLOW
on older kernels), anchored at a trusted dirfd. It is enabled
automatically for daemon modules configured with
"use chroot = no".

The patch was adapted for rsync 3.1.3 by removing references
to APIs introduced in rsync 3.2+ (open_noatime, my_strdup),
adding stub definitions for standalone test utilities, and
adjusting test helpers for the 3.1.3 shell-based test
framework.

CVE: CVE-2026-29518
Upstream patches:
 - 1a5ad81add.patch
 - 99b36291d0.patch
 - 72d1cf1c28.patch
 - 61d987c54a.patch
 - 24852cda3d.patch
 - d22b6bc7d1.patch
 - 39b3074a1a.patch
 - a277a06b10.patch
Resolves: RHEL-174950

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-06-14 23:05:48 +02:00
Michal Ruprich
205b34f3e7 Fix use-after-free in xattr qsort count
The upstream fix corrects the count parameter passed to qsort when sorting
the xattr list in receive_xattr(). The variable 'count' could diverge from
temp_xattr.count, leading to incorrect sort bounds.

[CVE: cve-2026-41035]
Upstream patches:
 - bb0a8118c2
Resolves: RHEL-169141

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-05-07 12:21:15 +02:00
Michal Ruprich
b6c530d7ca Resolves: RHEL-152887 - CVE-2025-10158 - Out of bounds array access via negative index 2026-03-11 14:58:46 +01:00
Michal Ruprich
8f6c64941f Resolves: RHEL-52004 - Slowness in rsync due to extra validation steps 2025-05-28 14:52:18 +02:00
Michal Ruprich
12b12b0194 Resolves: RHEL-91519 - Improper Pointer Arithmetic in pcl 2025-05-26 14:31:54 +02:00
Michal Ruprich
896893c93a Resolves: RHEL-70207 - Path traversal vulnerability in rsync 2025-02-04 10:43:43 +01:00
Michal Ruprich
3c55673deb Resolves: RHEL-70207 - Path traversal vulnerability in rsync
Resolves: RHEL-70209 - --safe-links option bypass leads to path traversal
Resolves: RHEL-72502 - Race Condition in rsync Handling Symbolic Links
Resolves: RHEL-70157 - Info Leak via Uninitialized Stack Contents
2025-02-03 12:54:22 +01:00
Troy Dawson
2b82963588 Bring gating.yaml over from Brew dist-git
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-10 11:24:11 -08:00
James Antill
2a899ff68b Import rpm: c8s 2023-02-27 15:20:42 -05:00
CentOS Sources
e5461b77ec Auto sync2gitlab import of rsync-3.1.3-19.el8_7.1.src.rpm 2022-11-11 04:15:18 +00:00
CentOS Sources
e5df0189f0 Auto sync2gitlab import of rsync-3.1.3-19.el8.src.rpm 2022-08-24 22:30:43 +00:00
CentOS Sources
e1ec8b5df8 Auto sync2gitlab import of rsync-3.1.3-17.el8.src.rpm 2022-08-11 18:16:40 +00:00
CentOS Sources
e7590313b7 Auto sync2gitlab import of rsync-3.1.3-16.el8.src.rpm 2022-08-02 20:14:29 +00:00
James Antill
c2d5ee855b Auto sync2gitlab import of rsync-3.1.3-14.el8.src.rpm 2022-05-26 14:14:00 -04:00
James Antill
d382b3b3e5 Initial c8s branch. 2022-05-26 14:13:55 -04:00