SoX .wav file buffer overflow
| sox-wav-bo (16827) |
Description:
SoX is vulnerable to a stack-based buffer overflow in the st_wavstartread function in the wav.c file, caused by improper bounds checking of .wav files. A remote attacker could create a specially-crafted .wav file to overflow a buffer and execute arbitrary code on the system.
Platforms Affected:
- Conectiva, Linux 10
- Conectiva, Linux 8.0
- Conectiva, Linux 9.0
- Debian, Debian Linux 3.0
- Gentoo, Linux
- Lance Norskog, SoX 12.17.2
- Lance Norskog, SoX 12.17.3
- Lance Norskog, SoX 12.17.4
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 9.1
- MandrakeSoft, Mandrake Linux 9.1 PPC
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Linux 3.0
- Slackware, Slackware Linux 10.0
- Slackware, Slackware Linux 8.1
- Slackware, Slackware Linux 9.0
- Slackware, Slackware Linux 9.1
- Slackware, Slackware Linux current
- SuSE, Linux Enterprise Server 9
- SuSE, SuSE eMail Server III
- SuSE, SuSE Linux 8.0
- SuSE, SuSE Linux 8.1
- SuSE, SuSE Linux 8.2
- SuSE, SuSE Linux 9.0
- SuSE, SuSE Linux 9.1
- SuSE, SuSE Linux Connectivity Server
- SuSE, SuSE Linux Database Server
- SuSE, SuSE Linux Enterprise Server 7.0
- SuSE, SuSE Linux Office Server
Remedy:
Upgrade to the latest sox package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:076 : sox for more information. See References.
Mandrake Linux 9.1: 12.17.3-4.1.91mdk or later
Mandrake Linux 9.2: 12.17.4-2.1.92mdk or later
Mandrake Linux Corporate Server 2.1: 12.17.3-4.1.C21mdk or later
Mandrake Linux 10.0: 12.17.4-2.1.100mdk or later
For Red Hat Linux:
Upgrade to the latest sox package, as listed below. Refer to RHSA-2004:409-05 for more information. See References.
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 12.17.4-4.3.x86_64 or later
For Gentoo Linux:
Upgrade to the latest version of sox (12.17.4-r2 or later), as listed in GLSA 200407-23. See References.
For Conectiva Linux:
Upgrade to the latest sox package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:855 for more information. See References.
Conectiva Linux 10.0: 12.17.3-29251U10_1cl or later
Conectiva Linux 8: 12.17.3-10818U80_1cl or later
Conectiva Linux 9: 12.17.3-21828U90_1cl or later
For Slackware Linux:
Upgrade to the latest sox package, as listed below. Refer to slackware-security Mailing List, Tue, 10 Aug 2004 14:33:16 -0700 (PDT) for more information. See References.
Slackware Linux 8.1and 9.0: 12.17.4-i386-3 or later
Slackware Linux 9.1, 10.0 and -current: 12.17.4-i486-3 or later
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- Conectiva Linux Security Announcement CLSA-2004:855, Buffer overflow vulnerability at http://distro.conectiva.com.br/atualizacoes/index.php?id=a&anuncio=000855.
- Slackware Security Advisories Tue, 10 Aug 2004 14:33:16 -0700 (PDT), [slackware-security] sox (SSA:2004-223-03) at http://slackware.com/security/viewer.php?l=slackware-security&y=2004&m=slackware-security.362646.
- SoX Web page, SoX - Sound eXchange at http://sox.sourceforge.net/.
- VulnWatch Mailing List, Wed Jul 28 2004 - 13:53:13 CDT , SoX buffer overflows when handling .WAV files at http://archives.neohapsis.com/archives/vulnwatch/2004-q3/0014.html.
- BID-10819: SoX WAV File Buffer Overflow Vulnerability
- CVE-2004-0557: Multiple buffer overflows in the st_wavstartread function in wav.c for Sound eXchange (SoX) 12.17.2 through 12.17.4 allow remote attackers to execute arbitrary code via certain WAV file header fields.
- DSA-565: sox -- buffer overflow
- GLSA-200407-23: SoX: Multiple buffer overflows
- MDKSA-2004:076: Updated sox packages fix buffer overflows with malicious .wav files
- RHSA-2004-409: sox security update
- SA12175: SoX ".WAV" File Processing Buffer Overflow Vulnerabilities
- SUSE-SA:2004:023: libpng: remote system compromise
Reported:
Jul 28, 2004
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 (IBM 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.
For corrections or additions please email xforce@iss.net
