summaryrefslogtreecommitdiff
blob: c2bf8e725717b2a2cfc4f1558ce70e055b3bfa19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200804-16">
  <title>rsync: Execution of arbitrary code</title>
  <synopsis>
    A buffer overflow in rsync might lead to the remote execution of arbitrary
    code when extended attributes are being used.
  </synopsis>
  <product type="ebuild">rsync</product>
  <announced>2008-04-17</announced>
  <revised count="01">2008-04-17</revised>
  <bug>216887</bug>
  <access>remote</access>
  <affected>
    <package name="net-misc/rsync" auto="yes" arch="*">
      <unaffected range="ge">2.6.9-r6</unaffected>
      <vulnerable range="lt">2.6.9-r6</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    rsync is a file transfer program to keep remote directories
    synchronized.
    </p>
  </background>
  <description>
    <p>
    Sebastian Krahmer of SUSE reported an integer overflow in the
    expand_item_list() function in the file util.c which might lead to a
    heap-based buffer overflow when extended attribute (xattr) support is
    enabled.
    </p>
  </description>
  <impact type="high">
    <p>
    A remote attacker could send a file containing specially crafted
    extended attributes to an rsync deamon, or entice a user to sync from
    an rsync server containing specially crafted files, possibly leading to
    the execution of arbitrary code.
    </p>
    <p>
    Please note that extended attributes are only enabled when USE="acl" is
    enabled, which is the default setting.
    </p>
  </impact>
  <workaround>
    <p>
    Disable extended attributes in the rsync daemon by setting "<i>refuse
    options = xattrs</i>" in the file "/etc/rsyncd.conf" (or append
    "xattrs" to an existing "refuse" statement). When synchronizing to a
    server, do not provide the "-X" parameter to rsync. You can also
    disable the "acl" USE flag for rsync and recompile the package.
    </p>
  </workaround>
  <resolution>
    <p>
    All rsync users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=net-misc/rsync-2.6.9-r6"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1720">CVE-2008-1720</uri>
  </references>
  <metadata tag="requester" timestamp="2008-04-14T22:37:35Z">
    rbu
  </metadata>
  <metadata tag="submitter" timestamp="2008-04-14T23:01:29Z">
    rbu
  </metadata>
  <metadata tag="bugReady" timestamp="2008-04-14T23:01:42Z">
    rbu
  </metadata>
</glsa>