rsync f_name() function buffer overflow
| rsync-fname-bo (36072) |
Description:
rsync is vulnerable to multiple stack-based buffer overflows, caused by improper bounds checking by the f_name() function. By sending an overly long directory name, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the application to crash.
Platforms Affected:
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 6.10
- Canonical, Ubuntu 7.04
- Debian, Debian Linux 4.0
- Gentoo, Linux
- Samba, Rsync 2.6.9
- SuSE, SuSE Linux
Remedy:
For SUSE Linux:
Refer to SUSE-SR:2007:017 for patch, upgrade, or suggested workaround information. See References.
For Ubuntu Linux (rsync):
Refer to USN-500-1 for patch, upgrade, or suggested workaround information. See References.
For Debian GNU/Linux (rsync):
Refer to DSA-1360-1 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux:
Refer to GLSA 200709-13 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- C Skills Blog - Mittwoch, 15. August 2007, rsync 2.6.9 contains two off by one stack overflows at http://c-skills.blogspot.com/2007/08/cve-2007-4091.html.
- Samba Web site, rsync at http://samba.org/rsync/.
- BID-25336: Rsync F_Name Off-By-One Buffer Overflow Vulnerability
- CVE-2007-4091: Multiple off-by-one errors in the sender.c in rsync 2.6.9 might allow remote attackers to execute arbitrary code via directory names that are not properly handled when calling the f_name function.
- DSA-1360: rsync -- buffer overflow
- FrSIRT/ADV-2007-2915: rsync f_name() Function Directory Name Handling Off-By-One Vulnerability
- GLSA-200709-13: rsync: Two buffer overflows
- SA26493: rsync "f_name()" Off-By-One Vulnerability
- SUSE-SR:2007:017: SUSE Security Summary Report
- USN-500-1: rsync vulnerability
Reported:
Aug 15, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
