Bug 441683 (CVE-2008-1720)

Summary: CVE-2008-1720 rsync: integer overflow in xattr handling
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ssorce
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-17 06:41:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 441689, 441690, 442430    
Bug Blocks:    

Description Tomas Hoger 2008-04-09 14:13:09 UTC
Sebastian Krahmer of SuSE reported and integer overflow leading to a heap buffer
overflow in the xattr handling code (function expand_item_list()) used by rsync.

This issue affects rsync 2.6.9 and all rsync 3.x versions with xattr support
enabled.  Upstream released version 3.0.2:

  http://samba.anu.edu.au/rsync/security.html#s3_0_2

including the fix:

  http://rsync.samba.org/ftp/rsync/security/rsync-3.0.1-xattr-alloc.diff

Upstream advisory also documents following mitigation to prevent exploitation of
the issue on affected versions:

  Those running a writable rsync daemon can opt to refuse the "xattrs" option
  as a way to avoid the problem without an upgrade:

    refuse options = xattrs

  (If you already refuse options, be sure to append "xattrs" to your existing
  config parameter rather than adding another refuse directive.)

Comment 1 Simo Sorce 2008-04-09 14:19:31 UTC
F-7,F-8 and F-9 packages released.
no RHEL product seem to be affected.

Comment 3 Fedora Update System 2008-04-09 14:53:24 UTC
rsync-2.6.9-6.fc7 has been submitted as an update for Fedora 7

Comment 4 Fedora Update System 2008-04-09 14:53:31 UTC
rsync-2.6.9-5.fc8 has been submitted as an update for Fedora 8

Comment 6 Tomas Hoger 2008-04-10 17:14:38 UTC
This issue did not affect rsync packages as shipped in Red Hat Enterprise Linux
2.1, 3, 4 and 5.

Comment 7 Fedora Update System 2008-04-17 03:47:19 UTC
rsync-2.6.9-5.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2008-04-17 03:48:28 UTC
rsync-2.6.9-6.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Red Hat Product Security 2008-04-17 06:41:36 UTC
This issue was addressed in:

Fedora:
  https://admin.fedoraproject.org/updates/F7/FEDORA-2008-3060
  https://admin.fedoraproject.org/updates/F8/FEDORA-2008-3047