Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89976 - media-libs/xine-lib - multiple heap overflows in MMS and Real RTSP streaming clients
Summary: media-libs/xine-lib - multiple heap overflows in MMS and Real RTSP streaming ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Security
URL:
Whiteboard: A2 [glsa] koon
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 14:22 UTC by Carsten Lohrke (RETIRED)
Modified: 2020-04-06 20:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2005-04-21 14:22:59 UTC
Announcement-ID: XSA-2004-8

Summary:
By a user receiving data from a malicious network streaming server, an
attacker can overrun a heap buffer, which can, on some systems, lead to
or help in executing attacker-chosen malicious code with the permissions
of the user running a xine-lib based media application.

Description:
Both the MMS and Real RTSP streaming client code made some too strong
assumptions on the transfered data. Several critical bounds checks were
missing, resulting in the possibility of heap overflows, should the remote
server not adhere to these assumptions. In the MMS case, a remote server
could present content with too many individual streams, in the RTSP case,
a remote server's reply could have too many lines.
An attacker can setup a server delivering malicious data to the users. This
can be used to overflow a heap buffer, which can, with certain implementations
of heap management, lead to attacker chosen data written to the stack. This
can cause attacker-chosen code being executed with the permissions of the
user running the application. By tricking users to retrieve a stream, which
can be as easy as providing a link on a website, this vulnerability can be
exploited remotely.

Severity:
This is difficult to exploit remotely, because the indirection involved
requires precision and knowledge of the target machine: The heap overlow
needs to alter heap management information in a way so that a return adress
on the stack is modified. This adress must lead to some malicious code to be
executed, which needs to be injected somehow.
The involved xine plugin is part of the standard xine installation, so we
consider this problem to be moderately severe.

Affected versions:
All 0.9 releases starting with and including 0.9.9
All 1-alpha releases.
All 1-beta releases.
All 1-rc releases.
The 1.0 release.

Unaffected versions:
All releases older than 0.9.9.
1.0.1 or newer.

Solution:
The enclosed patches which have been applied to xine-lib CVS fix the problem
but should only be used by distributors who do not want to upgrade.
Otherwise, we strongly advise everyone to upgrade to the soon to arrive 1.0.1
release of xine-lib.
As a temporary workaround, you may delete the files "xineplug_inp_mms.so" and
"xineplug_inp_rtsp.so" from the xine-lib plugin directory, losing the ability
to use MMS or Real RTSP streaming content.

Patches:
http://cvs.sourceforge.net/viewcvs.py/xine/xine-lib/src/input/librtsp/rtsp.c?r1=1.18&r2=1.19&diff_format=u
http://cvs.sourceforge.net/viewcvs.py/xine/xine-lib/src/input/mms.c?r1=1.55&r2=1.56&diff_format=u

For further information and in case of questions, please contact the xine
team. Our website is http://xinehq.de/
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-21 15:06:57 UTC
xine-lib-1.0-r2 committed with combined patch fixing the problem.
Comment 2 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-04-21 22:47:42 UTC
Arches please test and mark stable.
Comment 3 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-04-22 13:55:16 UTC
Stable on ppc.
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2005-04-22 14:20:23 UTC
amd64 done
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-23 01:55:01 UTC
stable on x86
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2005-04-23 23:04:46 UTC
stable on ppc64
Comment 7 SpanKY gentoo-dev 2005-04-24 01:12:26 UTC
arm/ia64 stable
Comment 8 Bryan Østergaard (RETIRED) gentoo-dev 2005-04-24 02:21:37 UTC
Stable on alpha.
Comment 9 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-04-24 11:42:58 UTC
Stable on hppa.
Comment 10 Gustavo Zacarias (RETIRED) gentoo-dev 2005-04-25 08:50:03 UTC
sparc will need a backport of this fix.
Against our current stable 1_rc6-r1 rtsp applies cleanly but mms doesn't.
1.0 doesn't work for sparc as it is, and i haven't tested 1.0.1 yet, which doesn't seem to be present in portage yet.
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-25 09:33:17 UTC
I've backported the fix to 1_rc6 and I'm building the package to be sure it works fine at least on amd64. I'll submit 1_rc6-r2 asap.
Comment 12 Gustavo Zacarias (RETIRED) gentoo-dev 2005-04-26 10:02:05 UTC
rc6-rc2 sparc happy.
Thanks Diego.
Comment 13 Gustavo Zacarias (RETIRED) gentoo-dev 2005-04-26 10:02:50 UTC
ehmm that would be rc6-r2, but i think you've got the idea :)
Comment 14 Thierry Carrez (RETIRED) gentoo-dev 2005-04-26 13:57:54 UTC
GLSA 200504-27