Multiple BSD systems strfmon() integer overflow
| bsd-strfmon-overflow (41504) |
Description:
Multiple BSD systems are vulnerable to multiple integer overflows, caused by improper bounds checking by the strfmon() function in the libc library. By sending a specially-crafted value containing malicious format specifiers, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the system to crash.
Platforms Affected:
- FreeBSD, FreeBSD 6.0
- FreeBSD, FreeBSD 7.0
- NetBSD, NetBSD 4.0
Remedy:
For NetBSD:
Apply the fix, available from the NetBSD CVS Repository. See References.
Consequences:
Gain Access
References:
- BugTraq Mailing List, Thu Mar 27 2008 - 09:09:49 CDT, [securityreason] *BSD libc (strfmon) Multiple vulnerabilities at http://archives.neohapsis.com/archives/bugtraq/2008-03/0406.html.
- FreeBSD Web site, FreeBSD at http://www.freebsd.org/.
- GNU Web site, GNU C Library at http://www.gnu.org/software/libc/.
- NetBSD CVS Repository, CVS log for src/lib/libc/stdlib/strfmon.c at http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/strfmon.c.
- BID-28479: Multiple BSD Platforms 'strfmon()' Function Integer Overflow Weakness
- CVE-2008-1391: Multiple integer overflows in libc in NetBSD 4.x, FreeBSD 6.x and 7.x, and probably other BSD and Apple Mac OS platforms allow context-dependent attackers to execute arbitrary code via large values of certain integer fields in the format argument to (1) the strfmon function in lib/libc/stdlib/strfmon.c, related to the GET_NUMBER macro; and (2) the printf function, related to left_prec and right_prec.
- SA29574: FreeBSD "strfmon()" Multiple Integer Overflows
- SECTRACK ID: 1019722: libc strfmon() Integer Overflows May Let Users Execute Arbitrary Code
Reported:
Mar 27, 2008
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
