Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 139319
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 139319 depends on: Show dependency tree
Bug 139319 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-05 08:15 0000
Stack-based buffer overflow in MiMMS 0.0.9 allows remote attackers to cause a
denial of service (application crash) and possibly execute arbitrary code via
the (1) send_command, (2) string_utf16, (3) get_data, and (4) get_media_packet
functions, and possibly other functions.

------- Comment #1 From Raphael Marichez 2006-07-05 09:04:17 0000 -------
yes, i confirm there is at least the string_utf16() issue. But i can't find,
for example, the first memcpy overflow.

See the debian patch in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374577

------- Comment #2 From Sune Kloppenborg Jeppesen 2006-07-11 02:45:32 0000 -------
Probably a good idea to CC maintainer.

------- Comment #3 From Sune Kloppenborg Jeppesen 2006-07-11 03:13:04 0000 -------
http://xine.cvs.sourceforge.net/xine/xine-lib/src/input/mms.c?r1=1.59&r2=1.60
http://xine.cvs.sourceforge.net/xine/xine-lib/src/input/mmsh.c?r1=1.37&r2=1.38

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-07-11 04:06:43 0000 -------
I handle xine-lib myself, would have been simpler to find if you CCed me :)

This is what Matthias Hopf said on xine-devel:

--
unfortunately this only made it through after xine-lib 1.1.2 release:

There has been a vulnerability report about libmms on [vendor-sec].
(CVE-2006-2200)

Please note that the original patch from the Debian maintainer is
partially incorrect (it should read memset(dest,0,2*len)), but the memset
isn't really necessary and could be nuked anyway. The use of memset in
the patch certainly doesn't do any harm, though, and it fixes the
potential overflow.

Luckily, xine uses libmms in a way that these vulnerabilities cannot be
exploited (buffers are large enough), and the xine module even seems to
rely on the side effects of the memset of the 'broken' library. 

------- Comment #5 From Diego E. 'Flameeyes' Pettenò 2006-07-11 04:06:43 0000 -------
I handle xine-lib myself, would have been simpler to find if you CCed me :)

This is what Matthias Hopf said on xine-devel:

--
unfortunately this only made it through after xine-lib 1.1.2 release:

There has been a vulnerability report about libmms on [vendor-sec].
(CVE-2006-2200)

Please note that the original patch from the Debian maintainer is
partially incorrect (it should read memset(dest,0,2*len)), but the memset
isn't really necessary and could be nuked anyway. The use of memset in
the patch certainly doesn't do any harm, though, and it fixes the
potential overflow.

Luckily, xine uses libmms in a way that these vulnerabilities cannot be
exploited (buffers are large enough), and the xine module even seems to
rely on the side effects of the memset of the 'broken' library.  Note
that the library sources are included (not an externally linked
library).

While analyzing the source I found a couple of potential heap overflows,
though, which I'm pretty sure that they can be exploited with some
effort. They are fixed in CVS. I also attached the according patch. But
I'm pretty sure that I overlooked some additional ones.

This source is a wormhole.
Sorry, Thibaut, but then you maybe coded the glue layer only :-]
--

Will prepare a 1.1.2-r2 after lunch, or during lunch. -r2 in less than 24 hours
past release, sigh.

------- Comment #6 From Sune Kloppenborg Jeppesen 2006-07-11 04:12:01 0000 -------
Thx Diego.

I assumed that you were on the media-video alias?

------- Comment #7 From Diego E. 'Flameeyes' Pettenò 2006-07-11 04:20:44 0000 -------
I am, I just assign different priorities to them :P
Depending on the quantity of new messages sometime i mark all as read on
aliases, but never on my own. Anyway, building xine-lib-1.1.2-r2 now.

------- Comment #8 From Diego E. 'Flameeyes' Pettenò 2006-07-11 04:28:28 0000 -------
1.1.2-r2 in portage. Stable marking shouldn't be an issue for most arches, as
this version has no big changes since last snapshots (as most of the patches
applied before are now merged upstream, and are the important changes in the
last month or so).

The only problem is with ~sh that is missing ffmpeg dependency, and ia64 that
still has 1.1.1 keyworded (vulnerable to other stuff too).

------- Comment #9 From Sune Kloppenborg Jeppesen 2006-07-11 05:29:41 0000 -------
Thx for clearing that up Diego.

Arches please test and mark stable.

------- Comment #10 From Tobias Scherbaum 2006-07-11 11:32:40 0000 -------
ppc stable

------- Comment #11 From Luis Medinas (RETIRED) 2006-07-11 16:25:27 0000 -------
amd32*2 done.

------- Comment #12 From Joshua Jackson 2006-07-11 21:18:43 0000 -------
x86 is all happy ^.^;;

------- Comment #13 From Markus Rothe 2006-07-11 23:37:38 0000 -------
stable on ppc64

------- Comment #14 From Jason Wever (RETIRED) 2006-07-13 15:57:47 0000 -------
SPARC, the keyword of time immortal.

------- Comment #15 From Thomas Cort (RETIRED) 2006-07-14 14:53:28 0000 -------
 ______________
< alpha stable >
 --------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

------- Comment #16 From René Nussbaumer 2006-07-15 02:33:06 0000 -------
Stable on hppa. Sorry for the delay.

------- Comment #17 From Thierry Carrez (RETIRED) 2006-07-17 09:57:59 0000 -------
Ready for GLSA

------- Comment #18 From Thierry Carrez (RETIRED) 2006-07-20 13:18:26 0000 -------
GLSA 200607-07

------- Comment #19 From Peter Volkov 2008-03-06 09:33:54 0000 -------
Does not affect current (2008.0) release. Removing release.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug