REDHAT-BUG-2515407: Medium severity rsync rsync vulnerability
rsync 3.2.3 before 3.5.0 contains an out-of-bounds write in parsesizearg() where the return value of snprintf() is used directly as an index into a .bss-segment array without bounds checking. When snprintf truncates the formatted size string, the return value equals the number of characters that would have been written including the truncated portion, and this value may exceed the array length. The subsequent indexed write targets memory outside the intended array bounds, corrupting .bss memory.
Affected Software
Event History
Frequently Asked Questions
Which rsync versions are affected?
The issue affects rsync versions 3.2.3 through versions earlier than 3.5.0. Systems running rsync 3.5.0 or later are not identified as affected by the provided data.
What condition is required to trigger the memory corruption?
An attacker must cause parse_size_arg() to format a size string that is truncated by snprintf(). The resulting would-have-been output length must exceed the bounds of the target .bss array, so that value is used as an out-of-bounds index.
How can I determine whether my system is exposed?
Check the installed rsync version. If it is 3.2.3 or later but earlier than 3.5.0, it falls within the affected version range described here.
What should be done to remediate the issue?
Update rsync to version 3.5.0 or later. The provided references include Red Hat security advisories RHSA-2026:67462, RHSA-2026:67463, and RHSA-2026:71446.