
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-41035 is a use-after-free (UAF) vulnerability in rsync's receive_xattr() function, affecting rsync versions 3.0.1 through 3.4.1. The flaw was introduced in commit d724dd186 on 2008-03-07 and publicly disclosed on April 16, 2026, by researcher Przemyslaw Frasunek via the oss-security mailing list. The vulnerability arises when receive_xattr() passes a wire-supplied (untrusted) count to qsort() instead of the actual number of stored items, causing stale heap data to be sorted into the active xattr list and creating dangling pointers. It has a CVSS v3.1 base score of 7.8 (High) per NVD, and affects rsync on Linux (in specific configurations) and more broadly on non-Linux platforms such as FreeBSD and macOS (Github Advisory, Openwall OSS-Sec).
The root cause is classified as CWE-130 (Improper Handling of Length Parameter Inconsistency) and CWE-805 (Buffer Access with Incorrect Length Value). In xattrs.c, the receive_xattr() function pre-allocates space for count xattr items read from the wire, but the loop that populates temp_xattr may skip items via continue (due to namespace filtering), resulting in temp_xattr.count < count. The subsequent qsort() call at line 864 incorrectly uses the wire-supplied count rather than temp_xattr.count, causing it to operate over stale rsync_xa structs from a prior file's xattr processing (since temp_xattr is a static variable). These stale entries — containing dangling pointers to previously freed heap allocations — are then persisted in the global rsync_xal_l list, enabling read-after-free, double-free, and free-of-allocated-memory conditions in rsync_xal_set() and recv_xattr_request(). On Linux, the bug is only triggered when need_sort is set (i.e., when using --fake-super or an xattr filter that passes non-user namespace xattrs); on FreeBSD/macOS, need_sort defaults to 1, making all -X configurations vulnerable (Openwall OSS-Sec, rsync Issue #871).
Successful exploitation can result in information disclosure (heap layout leaked via tcache metadata written as xattr values to destination files), denial of service (reliable receiver process crash via heap corruption or SIGSEGV), and potential remote code execution through heap state corruption. The vulnerability affects the rsync receiver process, meaning a malicious rsync sender can target any victim running rsync -X in a vulnerable configuration. On non-Linux platforms (FreeBSD, macOS), all deployments using -X are affected, broadening the attack surface significantly. IBM Cloud Pak for Data System is also listed as an affected product (Openwall OSS-Sec, IBM Advisory).
No public proof-of-concept exploit code is currently available; the oss-security disclosure provides a detailed technical analysis of exploitation primitives but stops short of providing runnable payloads or step-by-step reproduction instructions (Openwall OSS-Sec). There is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.014% (very low probability of exploitation in the next 30 days), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. The vulnerability requires user interaction (victim must invoke rsync with -X) and specific configuration conditions on Linux, limiting opportunistic exploitation (Github Advisory).
-X (--xattrs) flag, particularly those using --fake-super, non-root configurations with xattr filters, or non-Linux platforms (FreeBSD, macOS) where all -X configurations are vulnerable.security.* or trusted.*) to populate the static temp_xattr array with exploitable rsync_xa structs at specific array indices.count higher than the number of xattrs that will pass the receiver's namespace filter, ensuring temp_xattr.count < count after filtering. This causes qsort() to operate over stale entries from the priming file.rsync_xa structs (with dangling pointers to freed heap memory from the priming file) are sorted into the active portion of temp_xattr and stored in rsync_xal_l. When the receiver subsequently processes these entries in rsync_xal_set() or recv_xattr_request(), dangling pointers are dereferenced, enabling read-after-free, double-free, or heap metadata leakage.-X flag); core dumps from rsync with stack traces referencing receive_xattr(), qsort(), or rsync_xal_compare_names().lsetxattr).security.*, trusted.*, system.*) to receivers running as non-root or with --fake-super.The fix was included in rsync 3.4.2, released April 28, 2026, which corrects the qsort() call in xattrs.c to use temp_xattr.count instead of the wire-supplied count (rsync Releases). Users should upgrade to rsync 3.4.2 or later immediately. As a workaround, avoid using the -X (--xattrs) flag if extended attribute transfer is not required, or restrict rsync access to trusted senders only. On Linux, avoiding --fake-super and not configuring xattr filters that pass non-user namespace xattrs reduces exposure. Red Hat has issued patches for RHEL 6 through 10 and OpenShift Container Platform via multiple errata (e.g., RHSA-2026:17481 for RHEL 8, RHSA-2026:19152 for RHEL 10); Ubuntu, SUSE, AlmaLinux, Fedora, Mageia, and openSUSE have also released updated packages (Red Hat Bugzilla).
The vulnerability was responsibly disclosed by Przemyslaw Frasunek via the oss-security mailing list on April 16, 2026, with a detailed technical write-up covering root cause, exploitation primitives, and a suggested one-line fix. The rsync project responded promptly, merging the fix (PR #875) and releasing rsync 3.4.2 within approximately 12 days of disclosure. The GitHub issue (#871) filed by a separate reporter (venglin) on April 15, 2026, independently identified the same crash on FreeBSD, corroborating the finding. Major Linux distributions including Red Hat, Ubuntu, SUSE, AlmaLinux, Fedora, and Mageia issued security advisories and updated packages within weeks of disclosure, reflecting broad industry attention to the vulnerability (Openwall OSS-Sec, rsync Releases, Red Hat Bugzilla).
Fix availability across major Linux distributions and their releases.
bookworm
rsync: 3.2.7-1+deb12u5
sid
rsync: 3.4.2+ds1-1
trixie
rsync: 3.4.1+ds1-5+deb13u2
OpenShift
el8:openshift/ose-rhel-coreos-8-0:412.86.202608241157-0
RHEL 8
:baseos:rsync-0:3.1.3-25.el8_10.src
RHEL 9
:appstream:rsync-0:3.2.3-9.el9_0.5.src
RHEL 10
rsync-0:3.4.1-2.el10_0.2.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."