Rsync xattr Handling Flaw Can Crash Receivers and Risk Code Execution
Patch & Detection Intelligence · 17 sources · Updated 3mo ago · First seen May 19, 2026

A vulnerability tracked as CVE-2026-41035 affects rsync extended attribute handling and can be triggered when transfers use -X or --xattrs. The flaw occurs in receive_xattr(), where untrusted extended-attribute metadata is mishandled during sorting, causing memory corruption. Red Hat rated the issue Important with a CVSS v3 score of 7.4, warning that successful exploitation can crash the rsync process for denial of service and may also allow arbitrary code execution.
Public debugging details tied the bug to rsync 3.4.1, where qsort() used the wire-provided attribute count instead of the number of entries actually retained after filtering. On non-Linux, non-root receivers such as FreeBSD, filtered namespaces like security.* or trusted.* could leave stale or uninitialized array elements that led to a SIGSEGV in rsync_xal_compare_names() via strcmp() on a NULL pointer. Red Hat said exploitation requires extended attributes to be explicitly enabled, advised administrators to avoid -X or --xattrs unless necessary, and published fixes across affected Red Hat Enterprise Linux product streams.


