CVE-2011-1097: Buffer Overflow

Published Feb 4, 2011
·
Updated

rsync 3.x before 3.0.8, when certain recursion, deletion, and ownership options are used, allows remote rsync servers to cause a denial of service (heap memory corruption and application crash) or possibly execute arbitrary code via malformed data.

Other sources

Wayne Davison and I have identified a memory safety bug in rsync >= 3.0.0, affecting the generator process (receiving side) when incremental recursion is on, --delete is on, and --owner is off. Under these conditions, some of the generator's deletion functions temporarily increment fileextracnt, a global variable that governs the in-memory format of filestructs, and restore the original value on completion. The increment was intended to only affect the temporary file lists used to implement deletion, but it can also affect incremental file-list chunks that happen to be received during a call to one of these functions, which will be created in the wrong format. When the original fileextracnt is restored, the value originally stored in each applicable OPTEXTRA field will show up in the next one as listed in rsync.h.

Most of the fields are opaque data or are validated upon use, so their corruption leads to incorrect results but no danger to rsync itself. However, rsync uses the invariant that the FHLPREV field (applicable when --hard-links is on) forms a linked list of file indices consistent with the FLAGHLINK flags. The movement of the FHLGNUM values (which can be chosen arbitrarily by the sender subject to some constraints) into the FHLPREV field has the potential to break memory safety.

Upstream fix for the 3.0.x branch (sum of three commits): http://gitweb.samba.org/?p=rsync.git;a=commitdiff;h=83b94efa6b60a3ff5eee4c5f7812c617a90a03f6;hp=c8255147b06b74dad940d32f9cef5fbe17595239

Upstream bug report (marked fixed, but a full explanation has not been posted due to the security implications): https://bugzilla.samba.org/showbug.cgi?id=7936

I would appreciate Red Hat's help in getting a CVE and determining the severity of the issue. In my testing, I have been able to make an rsync 3.0.7 generator incur valgrind errors and then segfault (details forthcoming), but we have neither confirmed nor ruled out arbitrary code execution.

Red Hat

Affected Software

8 affected components
samba rsync=3.0.5
samba rsync=3.0.0
samba rsync=3.0.3
samba rsync=3.0.2
samba rsync=3.0.7
samba rsync=3.0.4
samba rsync=3.0.1
samba rsync=3.0.6

Event History

Feb 4, 2011
Data Sourced
via Red Hat·12:21 AM
DescriptionSeverityAffected Software
Mar 30, 2011
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2011-1097?

CVE-2011-1097 has a severity that can lead to denial of service and potential remote code execution.

2

How do I fix CVE-2011-1097?

To fix CVE-2011-1097, upgrade rsync to version 3.0.8 or later.

3

Which versions of rsync are affected by CVE-2011-1097?

CVE-2011-1097 affects rsync versions prior to 3.0.8, including versions 3.0.0 through 3.0.7.

4

What are the potential impacts of CVE-2011-1097?

The potential impacts of CVE-2011-1097 include application crashes and remote code execution vulnerabilities.

5

Who identified CVE-2011-1097?

CVE-2011-1097 was identified by Wayne Davison and others regarding memory safety issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203