CVE-2004-1188
CVSS10.0
发布时间 :2005-01-10 00:00:00
修订时间 :2008-09-10 15:29:27
NMCOPS    

[原文]The pnm_get_chunk function in xine 0.99.2 and earlier, and other packages such as MPlayer that use the same code, does not properly verify that the chunk size is less than the PREAMBLE_SIZE, which causes a read operation with a negative length that leads to a buffer overflow via (1) RMF_TAG, (2) DATA_TAG, (3) PROP_TAG, (4) MDPR_TAG, and (5) CONT_TAG values, a different vulnerability than CVE-2004-1187.


[CNNVD]Xine pnm_get_chunk 缓冲区溢出漏洞(CNNVD-200501-144)

        
        Xine是一款开源的媒体播放引擎。
        Xine0.99.2及之前版本中pmg_get_chunk函数存在缓冲区溢出漏洞。
        pnm_get_chunk中处理RMF_TAG, DATA_TAG, PROP_TAG, MDPR_TAG和CONT_TAG的都由同一代码处理,但代码在读取数据时没有正确检查分块大小,使用一个一个长度为负值的标记将可以导致出现缓冲区溢出。

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/o:mandrakesoft:mandrake_linux:10.0::amd64
cpe:/a:xine:xine-lib:1_beta1
cpe:/a:xine:xine-lib:0.9.13
cpe:/a:xine:xine-lib:1_rc0
cpe:/a:xine:xine-lib:1_rc3c
cpe:/a:xine:xine:1_rc3b
cpe:/a:mplayer:mplayer:0.91
cpe:/a:xine:xine:1_rc0a
cpe:/a:xine:xine:1_beta12
cpe:/a:mplayer:mplayer:0.92_cvs
cpe:/a:xine:xine:1_rc3a
cpe:/a:xine:xine:1_alpha
cpe:/a:xine:xine:0.9.13
cpe:/a:xine:xine:1_beta9
cpe:/a:xine:xine:1_beta8
cpe:/a:xine:xine:1_rc2
cpe:/a:xine:xine-lib:1_beta9
cpe:/a:xine:xine-lib:1_beta11
cpe:/a:xine:xine:1_beta11
cpe:/a:mplayer:mplayer:0.90_pre
cpe:/a:xine:xine:1_rc1
cpe:/a:mplayer:mplayer:1.0_pre4
cpe:/a:xine:xine:1_rc7
cpe:/a:xine:xine-lib:1_rc3
cpe:/a:xine:xine-lib:1_rc5
cpe:/a:xine:xine:1_rc5
cpe:/a:mplayer:mplayer:0.92
cpe:/a:mplayer:mplayer:1.0_pre2
cpe:/a:xine:xine-lib:1_rc6a
cpe:/a:xine:xine:1_beta5
cpe:/a:xine:xine-lib:1_beta2
cpe:/a:xine:xine:1_beta4
cpe:/a:xine:xine-lib:1_beta5
cpe:/a:xine:xine-lib:1_alpha
cpe:/a:xine:xine:0.9.8
cpe:/a:mplayer:mplayer:head_cvs
cpe:/a:xine:xine-lib:0.99
cpe:/a:xine:xine-lib:1_beta12
cpe:/a:xine:xine:1_beta1
cpe:/a:xine:xine:1_beta10
cpe:/o:mandrakesoft:mandrake_linux:10.1MandrakeSoft Mandrake Linux 10.1
cpe:/a:xine:xine-lib:0.9.8
cpe:/a:mplayer:mplayer:0.90_rc
cpe:/a:xine:xine-lib:1_beta7
cpe:/a:mplayer:mplayer:1.0_pre3
cpe:/a:xine:xine:1_beta6
cpe:/a:xine:xine-lib:1_rc6
cpe:/a:mplayer:mplayer:1.0_pre5
cpe:/a:mplayer:mplayer:1.0_pre5try1
cpe:/a:xine:xine-lib:1_beta8
cpe:/o:mandrakesoft:mandrake_linux:10.1::x86_64
cpe:/a:xine:xine-lib:1_beta3
cpe:/a:xine:xine-lib:1_rc3a
cpe:/a:xine:xine:1_rc3
cpe:/a:xine:xine:1_beta2
cpe:/a:xine:xine:1_rc6
cpe:/a:mplayer:mplayer:0.90_rc4
cpe:/a:mplayer:mplayer:1.0_pre5try2
cpe:/a:xine:xine:1_beta3
cpe:/a:xine:xine-lib:1_rc2
cpe:/a:xine:xine-lib:1_rc7
cpe:/a:xine:xine:1_beta7
cpe:/a:xine:xine:1_rc4
cpe:/a:xine:xine-lib:1_rc4
cpe:/a:xine:xine:1_rc6a
cpe:/a:xine:xine-lib:1_beta10
cpe:/a:xine:xine-lib:1_rc1
cpe:/o:mandrakesoft:mandrake_linux:10.0MandrakeSoft Mandrake Linux 10.0
cpe:/a:mplayer:mplayer:1.0_pre1
cpe:/a:xine:xine-lib:1_beta4
cpe:/a:xine:xine-lib:1_beta6
cpe:/a:xine:xine:1_rc0
cpe:/a:mplayer:mplayer:0.92.1
cpe:/a:xine:xine:0.9.18
cpe:/a:mplayer:mplayer:1.0_pre3try2
cpe:/a:xine:xine:1_rc8
cpe:/a:mplayer:mplayer:0.90
cpe:/a:xine:xine-lib:1_rc3b

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.idefense.com/application/poi/display?id=177&type=vulnerabilities
(VENDOR_ADVISORY)  IDEFENSE  20041221 Multiple Vendor Xine version 0.99.2 PNM Handler Negative Read Length Heap Overflow Vulnerability
http://xforce.iss.net/xforce/xfdb/18638
(UNKNOWN)  XF  xine-pnmgetchunk-bo(18638)
http://www.mplayerhq.hu/MPlayer/patches/pnm_fix_20041215.diff
(UNKNOWN)  CONFIRM  http://www.mplayerhq.hu/MPlayer/patches/pnm_fix_20041215.diff
http://www.mandriva.com/security/advisories?name=MDKSA-2005:011
(UNKNOWN)  MANDRAKE  MDKSA-2005:011
http://cvs.sourceforge.net/viewcvs.py/xine/xine-lib/src/input/pnm.c?r1=1.20&r2=1.21
(UNKNOWN)  CONFIRM  http://cvs.sourceforge.net/viewcvs.py/xine/xine-lib/src/input/pnm.c?r1=1.20&r2=1.21

- 漏洞信息

Xine pnm_get_chunk 缓冲区溢出漏洞
危急 缓冲区溢出
2005-01-10 00:00:00 2005-10-28 00:00:00
远程  
        
        Xine是一款开源的媒体播放引擎。
        Xine0.99.2及之前版本中pmg_get_chunk函数存在缓冲区溢出漏洞。
        pnm_get_chunk中处理RMF_TAG, DATA_TAG, PROP_TAG, MDPR_TAG和CONT_TAG的都由同一代码处理,但代码在读取数据时没有正确检查分块大小,使用一个一个长度为负值的标记将可以导致出现缓冲区溢出。

- 公告与补丁

        目前厂商已经发布了升级补丁以修复此安全问题,补丁获取链接:
        http://www.xine-project.org/releases

- 漏洞信息 (F35475)

iDEFENSE Security Advisory 2004-12-21.1 (PacketStormID:F35475)
2004-12-31 00:00:00
iDefense Labs  idefense.com
advisory,remote,overflow,arbitrary
CVE-2004-1188
[点击下载]

iDEFENSE Security Advisory 12.21.2004-1 - Remote exploitation of a buffer overflow in version 0.99.2 of xine could allow execution of arbitrary code. The vulnerability specifically exists in the RMF_TAG, DATA_TAG, PROP_TAG, MDPR_TAG and CONT_TAG handling code of the pnm_get_chunk() function. These tags are all handled by the same code. The code does not perform correct checking on the chunk size before reading data in. If the size given is less than the PREAMBLE_SIZE, a negative length read is made into a fixed length buffer. Because the read length parameter is an unsigned value, the negative length is interpreted as a very large length, allowing a buffer overflow to occur.

Multiple Vendor Xine version 0.99.2 PNM Handler Negative Read Length 
Heap Overflow Vulnerability

iDEFENSE Security Advisory 12.21.04
www.idefense.com/application/poi/display?id=177&type=vulnerabilities
December 21, 2004

I. BACKGROUND

Xine is a multimedia player which runs on multiple platforms.
More information is available at:
   
   http://xinehq.de/

II. DESCRIPTION

Remote exploitation of a buffer overflow in version 0.99.2 of xine could
allow execution of arbitrary code.

The vulnerability specifically exists in the RMF_TAG, DATA_TAG, 
PROP_TAG, MDPR_TAG and CONT_TAG handling code of the pnm_get_chunk() 
function. These tags are all handled by the same code. The code does not

perform correct checking on the chunk size before reading data in. If 
the size given is less than the PREAMBLE_SIZE, a negative length read is

made into a fixed length buffer. Because the read length parameter is an

unsigned value, the negative length is interpreted as a very large 
length, allowing a buffer overflow to occur.

III. ANALYSIS

Exploitation of this vulnerability allows execution of arbitrary code 
with the privileges of the targeted user.

In order to exploit this vulnerability, an attacker would have to 
convince the targeted user to open a connection to a malicious PNM 
server with xine, using a pnm://address/ URL. Depending on configuration

options, this may be exploitable simply by clicking on a link, or it may

require the user to launch the application, specifically requesting the 
malicious content.

IV. DETECTION

iDEFENSE Labs has confirmed the existence of this vulnerability in xine 
version 0.99.2. It is suspected that earlier versions of xine also 
contain this vulnerability.

This vulnerability also affects MPlayer prior to MPlayer 1.0pre5try2.

V. WORKAROUND

iDEFENSE is currently unaware of any effective workarounds for this 
issue.

VI. VENDOR RESPONSE

xine-lib 1-rc8 was released to address this vulnerability and is
available for download at:

   http://xinehq.de/index.php/releases
   
An xine patch for this vulnerability is available at:

 
http://cvs.sourceforge.net/viewcvs.py/xine/xine-lib/src/input/pnm.c?r1=1
.20&r2=1.21
   
An MPlayer patch for this vulnerability is available at:

   http://www.mplayerhq.hu/MPlayer/patches/pnm_fix_20041215.diff

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
names CAN-2004-1188 to these issues. This is a candidate for inclusion
in the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

12/10/2004  Initial vendor notification
12/11/2004  Initial vendor response
12/21/2004  Public disclosure

IX. CREDIT

The discoverer of this vulnerability wishes to remain anonymous.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

X. LEGAL NOTICES

Copyright (c) 2004 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.
    

- 漏洞信息

12662
xine pnm_get_chunk() Function Multiple Tag Overflow
Remote / Network Access, Context Dependent Input Manipulation
Loss of Integrity Patch / RCS, Upgrade
Exploit Private Vendor Verified, Coordinated Disclosure

- 漏洞描述

- 时间线

2004-12-21 Unknow
Unknow 2004-12-21

- 解决方案

Upgrade to version 1-rc8 or higher, as it has been reported to fix this vulnerability. In addition, xine and Mplayer have released patches for some older versions.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

MPlayer And Xine PNM_Get_Chunk Multiple Remote Client-Side Buffer Overflow Vulnerabilities
Boundary Condition Error 12076
Yes No
2004-12-21 12:00:00 2009-07-12 09:26:00
The individual that discovered these vulnerabilities wishes to remain anonymous.

- 受影响的程序版本

xine xine-lib 0.99
+ S.u.S.E. Linux Personal 9.1
+ S.u.S.E. Linux Personal 9.0 x86_64
+ S.u.S.E. Linux Personal 9.0
xine xine-lib 0.9.13
xine xine-lib 0.9.8
xine xine-lib 1-rc8
xine xine-lib 1-rc7
xine xine-lib 1-rc6a
xine xine-lib 1-rc6
xine xine-lib 1-rc5
xine xine-lib 1-rc4
xine xine-lib 1-rc3c
+ Slackware Linux 9.1
+ Slackware Linux -current
xine xine-lib 1-rc3b
xine xine-lib 1-rc3a
xine xine-lib 1-rc3
xine xine-lib 1-rc2
xine xine-lib 1-rc1
xine xine-lib 1-rc0
xine xine-lib 1-beta9
xine xine-lib 1-beta8
xine xine-lib 1-beta7
xine xine-lib 1-beta6
xine xine-lib 1-beta5
xine xine-lib 1-beta4
xine xine-lib 1-beta3
xine xine-lib 1-beta2
xine xine-lib 1-beta12
xine xine-lib 1-beta11
xine xine-lib 1-beta10
xine xine-lib 1-beta1
xine xine-lib 1-alpha
xine xine 0.9.18
+ S.u.S.E. Linux Personal 8.2
xine xine 0.9.13
xine xine 0.9.8
- 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
xine xine 1-rc8
xine xine 1-rc7
xine xine 1-rc6a
xine xine 1-rc6
xine xine 1-rc5
xine xine 1-rc4
xine xine 1-rc3b
xine xine 1-rc3a
xine xine 1-rc3
xine xine 1-rc2
xine xine 1-rc1
xine xine 1-rc1
xine xine 1-rc0a
xine xine 1-rc0
xine xine 1-beta9
xine xine 1-beta8
xine xine 1-beta7
xine xine 1-beta6
xine xine 1-beta5
xine xine 1-beta4
xine xine 1-beta3
xine xine 1-beta2
xine xine 1-beta12
xine xine 1-beta11
xine xine 1-beta10
xine xine 1-beta1
xine xine 1-alpha
Turbolinux Turbolinux Desktop 10.0
Turbolinux Home
S.u.S.E. Linux Personal 9.2
S.u.S.E. Linux Personal 9.1
S.u.S.E. Linux Personal 9.0 x86_64
S.u.S.E. Linux Personal 9.0
S.u.S.E. Linux Personal 8.2
MPlayer MPlayer 1.0 pre5try2
MPlayer MPlayer 1.0 pre5try1
MPlayer MPlayer 1.0 pre5
+ Gentoo Linux 1.4
+ Gentoo Linux
MPlayer MPlayer 1.0 pre4
MPlayer MPlayer 1.0 pre3try2
MPlayer MPlayer 1.0 pre3
MPlayer MPlayer 1.0 pre2
MPlayer MPlayer 1.0 pre1
MPlayer MPlayer 0.92.1
MPlayer MPlayer 0.92
MPlayer MPlayer 0.91
+ Mandriva Linux Mandrake 9.2
MPlayer MPlayer 0.90 rc series
MPlayer MPlayer 0.90 pre series
MPlayer MPlayer 0.90
MPlayer MPlayer 0.9 0rc4
+ Mandriva Linux Mandrake 9.1
MPlayer MPlayer HEAD CVS
MPlayer MPlayer 0_92 CVS
Mandriva Linux Mandrake 10.1 x86_64
Mandriva Linux Mandrake 10.1
Mandriva Linux Mandrake 10.0 AMD64
Mandriva Linux Mandrake 10.0
xine xine 1-rc8

- 不受影响的程序版本

xine xine 1-rc8

- 漏洞讨论

Multiple buffer overflow vulnerabilities are reported to exist in the xine and MPlayer utilities. The following issues are reported:

Several buffer overflow vulnerabilities are reported to exist in the 'pnm_get_chunk()' function.

Reports indicate that the vulnerabilities present themselves in the RMF_TAG, DATA_TAG, PROP_TAG, MDPR_TAG and CONT_TAG handling code of 'pnm_get_chunk()'.

A remote attacker may potentially leverage this memory corruption to execute arbitrary code in the context of a user that uses the vulnerable utility to connect to a malicious PNM server.

An additional buffer overflow vulnerability is reported to exist in the PNA_TAG handling code of the 'pnm_get_chunk()' function.

It is reported that supplied PNA_TAG data is copied into a finite buffer without sufficient boundary checks. This results in memory corruption. A remote attacker may potentially leverage this memory corruption to execute arbitrary code in the context of a user that uses the vulnerable utility to connect to a malicious PNM server.

- 漏洞利用

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 <mailto:vuldb@securityfocus.com>.

- 解决方案

xine-lib 1-rc8 has been released dealing with this issue.

Turbolinux has released a security announcement (TLSA- 24022005) and fixes to address these and other vulnerabilities. Customers are advised to peruse the referenced advisory for further information regarding obtaining and applying appropriate updates.

Mandrake Linux has released an advisory (MDKSA-2004:157) along with fixes dealing with this issue. Please see the referenced advisory for more information.

Conectiva has released an advisory CLA-2005:910 to address various issues in MPlayer. Please see the referenced advisory for more information.

Gentoo has released an advisory GLSA 200501-07 to address various issues in xine-lib. Gentoo users may carry out the following commands to update their systems:

emerge --sync
emerge --ask --oneshot --verbose media-libs/xine-lib

Please see the referenced advisory for more information.

Mandrake has released an advisory MDKSA-2005:011 to address various issues in xine-lib. Please see the referenced advisory for more information.

SuSE Linux has released a security summary report (SUSE-SR:2005:002) that contains fixes to address this and other vulnerabilities. Customers are advised to peruse the referenced advisory for further information regarding obtaining and applying appropriate updates.


xine xine-lib 1-rc2

xine xine-lib 1-rc5

xine xine 1-rc3

xine xine-lib 1-rc3

xine xine-lib 1-rc0

xine xine 1-rc0a

xine xine 1-rc5

xine xine-lib 1-rc6

xine xine-lib 1-rc6a

xine xine-lib 1-rc3a

xine xine-lib 1-rc3b

xine xine-lib 1-rc1

xine xine-lib 1-rc7

xine xine-lib 1-rc4

xine xine-lib 1-rc3c

MPlayer MPlayer 0.92

MPlayer MPlayer 1.0 pre3

MPlayer MPlayer 1.0 pre4

MPlayer MPlayer 1.0 pre5

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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