CVE-2003-0577
CVSS7.5
发布时间 :2003-08-18 00:00:00
修订时间 :2008-09-10 15:19:42
NMCOS    

[原文]mpg123 0.59r allows remote attackers to cause a denial of service and possibly execute arbitrary code via an MP3 file with a zero bitrate, which creates a negative frame size.


[CNNVD]mpg123不正确计算帧大小内存破坏漏洞(CNNVD-200308-052)

        
        mpg123是一款使用于Linux和Unix操作系统下的MP3播放程序。
        mpg123不正确计算帧大小(framesize),远程攻击者可以利用这个漏洞构建恶意MP3文件,当mpg123播放时导致程序崩溃,可能以mpg123进程权限在系统上执行任意指令。
        mpg123在播放零字节大小的MP3文件时,会由于分配负的帧大小缓冲区而崩溃。可能以mpg123进程权限在系统上执行任意指令,不过没有得到证实。
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/a:mpg123:mpg123:pre0.59s
cpe:/a:mpg123:mpg123:0.59r

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0577
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2003-0577
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200308-052
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/6629
(VENDOR_ADVISORY)  BID  6629
http://www.securityfocus.com/archive/1/306903
(PATCH)  BUGTRAQ  20030116 Re[2]: Local/remote mpg123 exploit
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000695
(VENDOR_ADVISORY)  CONECTIVA  CLA-2003:695
ftp://ftp.sco.com/pub/updates/OpenLinux/3.1.1/Server/CSSA-2004-002.0/CSSA-2004-002.0.txt
(UNKNOWN)  SCO  CSSA-2004-002.0
http://www.mandriva.com/security/advisories?name=MDKSA-2003:078
(UNKNOWN)  MANDRAKE  MDKSA-2003:078
http://secunia.com/advisories/7875
(UNKNOWN)  SECUNIA  7875

- 漏洞信息

mpg123不正确计算帧大小内存破坏漏洞
高危 未知
2003-08-18 00:00:00 2005-10-20 00:00:00
远程  
        
        mpg123是一款使用于Linux和Unix操作系统下的MP3播放程序。
        mpg123不正确计算帧大小(framesize),远程攻击者可以利用这个漏洞构建恶意MP3文件,当mpg123播放时导致程序崩溃,可能以mpg123进程权限在系统上执行任意指令。
        mpg123在播放零字节大小的MP3文件时,会由于分配负的帧大小缓冲区而崩溃。可能以mpg123进程权限在系统上执行任意指令,不过没有得到证实。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 3APA3A <3APA3A@SECURITY.NNOV.RU>提供如下第三方补丁:
        --- common.old 2003-01-15 21:42:15.000000000 +0300
        +++ common.c 2003-01-15 21:42:38.000000000 +0300
        @@ -123,7 +123,7 @@
         return FALSE;
         if(!((head>>17)&3))
         return FALSE;
        - if( ((head>>12)&0xf) == 0xf)
        + if( ((head>>12)&0xf) == 0xf || (head>>12)&0xf) == 0)
         return FALSE;
         if( ((head>>10)&0x3) == 0x3 )
         return FALSE;
        for pre0.59s:
        --- common.old 2003-01-15 20:51:15.000000000 +0300
        +++ common.c 2003-01-15 20:25:26.000000000 +0300
        @@ -127,7 +127,7 @@
         return FALSE;
         if(!((head>>17)&3))
         return FALSE;
        - if( ((head>>12)&0xf) == 0xf || (head>>12)&0xf) == 0)
        + if( ((head>>12)&0xf) == 0xf)
         return FALSE;
         if( ((head>>10)&0x3) == 0x3 )
         return FALSE;
        @@ -140,7 +140,7 @@
         * -1: giving up
         * 1: synched
         */
        -#define MAX_INPUT_FRAMESIZE 1920
        +#define MAX_INPUT_FRAMESIZE 4096
         #define SYNC_HEAD_MASK 0xffff0000
         #define SYNC_HEAD_MASK_FF 0x0000f000
         #define LOOK_AHEAD_NUM 3
        @@ -237,6 +237,8 @@
         }
         }
         else {
        + if(frameInfo.framesize > MAX_INPUT_FRAMESIZE) return 0;
        +
         if(!rds->read_frame_body(rds,dummybuf,frameInfo.framesize))
         return 0;
        厂商补丁:
        mpg123
        ------
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://www.mpg123.de

- 漏洞信息

8421
mpg123 Negative Framesize MP3 File Handling Arbitrary Code Execution
Context Dependent Input Manipulation
Loss of Integrity Upgrade, Third-Party Solution
Exploit Unknown Vendor Verified, Third-party Verified

- 漏洞描述

mpg123 contains a flaw in the handling of MP3 files. With a specially crafted MP3 file that causes a negative framesize, a context-dependent attacker can potentially execute arbitrary code.

- 时间线

2003-01-16 Unknow
Unknow 2007-02-07

- 解决方案

It has been reported that this issue has been fixed. Upgrade to version 0.65, or higher, to address this vulnerability.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

mpg123 Incorrect Framesize Calculation Memory Corruption Vulnerability
Unknown 6629
Yes No
2003-01-16 12:00:00 2009-07-11 07:17:00
This vulnerability was reported by 3APA3A <3APA3A@SECURITY.NNOV.RU>.

- 受影响的程序版本

mpg123 mpg123 0.59 r
+ Conectiva Linux 8.0
+ Conectiva Linux 7.0
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Gentoo Linux 1.4
+ Gentoo Linux
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ Mandriva Linux Mandrake 10.1 x86_64
+ Mandriva Linux Mandrake 10.1
+ Mandriva Linux Mandrake 10.0 AMD64
+ Mandriva Linux Mandrake 10.0
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1
+ Mandriva Linux Mandrake 9.0
mpg123 mpg123 pre0.59s

- 漏洞讨论

A memory corruption vulnerability has been reported for mpg123 that may result in code execution.

The vulnerability exists when mpg123 is used to play certain MP3 files. It has been reported that when playing MP3 files with a bitrate of zero, mpg123 will incorrectly allocate a negative framesize buffer.

It may be possible to exploit this vulnerability to execute malicious attacker-supplied code.

- 漏洞利用

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com &lt;mailto:vuldb@securityfocus.com&gt;.

- 解决方案

Mandrake has released a security advisory (MDKSA-2003:078) to address this issue. Affected users are advised to apply the fixes as soon as possible. Further information regarding obtaining and applying fixes can be found in the referenced advisory. Fixes are linked below.

Fixes available:


mpg123 mpg123 0.59 r

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站