rsync: Two buffer overflows

Security Team  Contact Address

Updated September 20, 2007

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200709-13 / rsync
Release Date September 20, 2007
Latest Revision September 20, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-misc/rsync < 2.6.9-r3 >= 2.6.9-r3 All supported architectures

Related bugreports: #189132

Synopsis

Two user-assisted buffer overflow vulnerabilities have been discovered in rsync.

2.  Impact Information

Background

rsync is a file transfer program to keep remote directories synchronized.

Description

Sebastian Krahmer from the SUSE Security Team discovered two off-by-one errors in the function "f_name()" in file sender.c when processing overly long directory names.

Impact

A remote attacker could entice a user to synchronize a repository containing specially crafted directories, leading to the execution of arbitrary code with the privileges of the user running the application.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All rsync users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/rsync-2.6.9-r3"

4.  References