Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 133520
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
ffmpeg1.diff ffmpeg1.diff patch Sune Kloppenborg Jeppesen 2006-05-16 12:10 0000 6.68 KB Details | Diff
ffmpeg2.diff ffmpeg2.diff patch Sune Kloppenborg Jeppesen 2006-05-16 12:11 0000 2.09 KB Details | Diff
ffmpeg3.diff ffmpeg3.diff patch Sune Kloppenborg Jeppesen 2006-05-16 12:11 0000 1.38 KB Details | Diff
ffmpeg4.diff ffmpeg4.diff patch Sune Kloppenborg Jeppesen 2006-05-16 12:11 0000 6.08 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 133520 depends on: Show dependency tree
Bug 133520 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-05-16 12:09 0000
Moritz Muehlenhoff from Debian found several patches in upstream CVS to fix
buffer overflows.

Filing as auditing as I'm not sure wether they are actually exploitable.

------- Comment #1 From Sune Kloppenborg Jeppesen 2006-05-16 12:10:20 0000 -------
Created an attachment (id=86870) [details]
ffmpeg1.diff

------- Comment #2 From Sune Kloppenborg Jeppesen 2006-05-16 12:11:08 0000 -------
Created an attachment (id=86871) [details]
ffmpeg2.diff

------- Comment #3 From Sune Kloppenborg Jeppesen 2006-05-16 12:11:21 0000 -------
Created an attachment (id=86872) [details]
ffmpeg3.diff

------- Comment #4 From Sune Kloppenborg Jeppesen 2006-05-16 12:11:36 0000 -------
Created an attachment (id=86873) [details]
ffmpeg4.diff

------- Comment #5 From Tavis Ormandy (RETIRED) 2006-05-16 12:50:54 0000 -------
one or two look harmless, but the others look exploitable, reassigning to
vulnerabilities.

------- Comment #6 From Sune Kloppenborg Jeppesen 2006-05-16 13:35:16 0000 -------
Luca please patch as necessary. Since this is only semi-public, please only
mention the bug number in the Changelog.

------- Comment #7 From Luca Barbato 2006-05-16 14:26:12 0000 -------
I'm looking at them right now

------- Comment #8 From Luca Barbato 2006-05-16 15:18:40 0000 -------
A new snapshot will be provided soon

------- Comment #9 From Sune Kloppenborg Jeppesen 2006-05-16 20:52:28 0000 -------
Thx Luca,

Setting to upstream while waiting for the new snapshot.

------- Comment #10 From Luca Barbato 2006-05-17 03:05:07 0000 -------
quick snapshot available, requires full testing, the maketest _should_ fail on
ffserver but MUST work on codecs.

------- Comment #11 From solar 2006-05-18 16:53:45 0000 -------
Several other packages repackage ffmpeg code also. Might need to get our mmedia
guys to take a closer look at the pkgs they maintain.

------- Comment #12 From Sune Kloppenborg Jeppesen 2006-05-18 23:04:24 0000 -------
CC'ing Diego for advise as well.

------- Comment #13 From Diego E. 'Flameeyes' Pettenò 2006-05-19 02:42:33 0000 -------
vlc uses external ffmpeg, but xdtv uses it internal (they won't provide me a
way to use it external :|); xine might use both, and if I'm just tired, I can
disabled the external ffmpeg and be done with it at this point. Especially
since the few issues of conflicts between ffmpeg and xine are now fixed in -r6
(with GCC 3.4 and later).

------- Comment #14 From solar 2006-05-20 21:50:42 0000 -------
Orig posting by Moritz Muehlenhoff.

Hi,
a quick heads-up; in the ffmpeg CVS logs I found changes mentioning several
potential buffer overflows. I haven't had the time to investigate
exploitability
in detail yet, though.

This might even affect you if you don't ship ffmpeg in one of your products,
as parts of ffmpeg (libavcodec and libavformat) are embedded in other
multimedia
applications (at least xine-lib and mplayer do).

Cheers,
        Moritz

------- Comment #15 From Thierry Carrez (RETIRED) 2006-05-30 11:11:34 0000 -------
Luca : can we call for stabilization of this last snapshot ?

------- Comment #16 From Luca Barbato 2006-05-30 12:17:48 0000 -------
I'd like every arch to test it, probably I'll resnapshot it to push more fixes
in (some security related), still there won't be as many changes as those
between the current stable and this candidate.

------- Comment #17 From Thierry Carrez (RETIRED) 2006-05-30 13:27:23 0000 -------
Pulling in security arch contacts for pretesting of the 0.4.9_p20060517
snapshot

------- Comment #18 From Markus Rothe 2006-05-30 13:36:05 0000 -------
0.4.9_p20060517 looks good on ppc64. 

the ebuild is masked by -*. should we add ~arch to the ebuild or just bump it
to stable when this will get public?

------- Comment #19 From Luca Barbato 2006-05-30 16:02:54 0000 -------
I added a new snapshot in portage, please test and make it stable if nothing is
wrong.

------- Comment #20 From Markus Rothe 2006-05-31 02:55:19 0000 -------
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
*  
/usr/portage/media-video/ffmpeg/files/ffmpeg-0.4.9_p20060530-amr-64bit.patch
 *   ( ffmpeg-0.4.9_p20060530-amr-64bit.patch )


ffmpeg-0.4.9_p20060302-amr-64bit.patch applies cleanly.

------- Comment #21 From Luca Barbato 2006-05-31 03:08:58 0000 -------
ops, added back.

------- Comment #22 From Gustavo Zacarias (RETIRED) 2006-05-31 07:20:06 0000 -------
Gave it a ~sparc, seems to work fine.

------- Comment #23 From René Nussbaumer 2006-06-01 06:34:41 0000 -------
Seems to work on hppa

------- Comment #24 From Thomas Cort (RETIRED) 2006-06-01 13:59:42 0000 -------
looks good on amd64.

------- Comment #25 From Mark Loeser 2006-06-01 20:07:29 0000 -------
Dies on ~x86.  Stable seems alright, but this one will have to be fixed as well
before I keyword it.  I'll try to figure it out, but I'm not terribly good with
x86 asm :)

i686-pc-linux-gnu-gcc -Wall -Wno-switch -O2 -march=pentium4m -pipe -ggdb
-fomit-frame-pointer -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I..
-I/var/tmp/portage/ffmpeg-0.4.9_p20060530/work/ffmpeg-0.4.9-p20060530-shared/libavutil
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -fPIC -DPIC -c -o
i386/snowdsp_mmx.o i386/snowdsp_mmx.c
i386/snowdsp_mmx.c: In function 

------- Comment #26 From Mark Loeser 2006-06-01 20:07:29 0000 -------
Dies on ~x86.  Stable seems alright, but this one will have to be fixed as well
before I keyword it.  I'll try to figure it out, but I'm not terribly good with
x86 asm :)

i686-pc-linux-gnu-gcc -Wall -Wno-switch -O2 -march=pentium4m -pipe -ggdb
-fomit-frame-pointer -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I..
-I/var/tmp/portage/ffmpeg-0.4.9_p20060530/work/ffmpeg-0.4.9-p20060530-shared/libavutil
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -fPIC -DPIC -c -o
i386/snowdsp_mmx.o i386/snowdsp_mmx.c
i386/snowdsp_mmx.c: In function ‘ff_snow_vertical_compose97i_sse2’:
i386/snowdsp_mmx.c:461: error: PIC register ‘%ebx’ clobbered in ‘asm’
i386/snowdsp_mmx.c: In function ‘ff_snow_vertical_compose97i_mmx’:
i386/snowdsp_mmx.c:568: error: PIC register ‘%ebx’ clobbered in ‘asm’
i386/snowdsp_mmx.c: In function ‘inner_add_yblock_bw_8_obmc_16_mmx’:
i386/snowdsp_mmx.c:869: error: PIC register ‘%ebx’ clobbered in ‘asm’
make[1]: *** [i386/snowdsp_mmx.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ffmpeg-0.4.9_p20060530/work/ffmpeg-0.4.9-p20060530-shared/libavcodec'
make: *** [lib] Error 2

!!! ERROR: media-video/ffmpeg-0.4.9_p20060530 failed.

------- Comment #27 From Luca Barbato 2006-06-02 03:27:43 0000 -------
try with -O3, if is working I'll add another check about it...

------- Comment #28 From Tobias Scherbaum 2006-06-02 14:01:43 0000 -------
Already ~ppc'ed and also "worksforme"

------- Comment #29 From Mark Loeser 2006-06-02 17:42:24 0000 -------
(In reply to comment #26)
> try with -O3, if is working I'll add another check about it...
> 

-O3 does not help.  I get the same error.  Also seems kind of hackish to depend
on an optimization flag to make the inline asm to work.

------- Comment #30 From Markus Rothe 2006-06-06 00:15:04 0000 -------
I do have a serious problem with version 0.4.9_p20060530 on PPC64.

I'm getting an internal error:


/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../powerpc64-unknown-linux-gnu/bin/ld:
BFD 2.16.1 internal error, aborting at
/var/tmp/portage/binutils-2.16.1-r2/work/binutils-2.16.1/bfd/elflink.c line
6536 in elf_link_output_extsym
/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../powerpc64-unknown-linux-gnu/bin/ld:
Please report this bug.


This is already fixed in binutils versions 2.16.9x.

I just don't know how to handle this. Any advice?

------- Comment #31 From Sune Kloppenborg Jeppesen 2006-06-30 09:02:49 0000 -------
Luca can you help on comment #29?

------- Comment #32 From Luca Barbato 2006-06-30 10:02:52 0000 -------
I cannot tell since I don't have access to ppc64 nor I have a crossenv ready,
I'd update binutils if the issue is there.

------- Comment #33 From Thierry Carrez (RETIRED) 2006-08-12 05:34:06 0000 -------
This still misses successful checks from alpha, x86 and ppc64.

------- Comment #34 From Luca Barbato 2006-08-12 06:14:09 0000 -------
I marked it ~ppc64 since I eventually managed to test it (and seems working
fine)

------- Comment #35 From Sune Kloppenborg Jeppesen 2006-08-24 11:14:54 0000 -------
Any news from alpha, x86 and ppc64?

------- Comment #36 From Sune Kloppenborg Jeppesen 2006-09-03 06:54:43 0000 -------
Any news from alpha, x86 and ppc64?

------- Comment #37 From Markus Rothe 2006-09-03 08:06:18 0000 -------
sorry, I missed the last 'ping' ...

I don't know what exactly changed, but using binutils-2.16.1-r3 just works. So
PPC64 is ready to go!

------- Comment #38 From Sune Kloppenborg Jeppesen 2006-09-05 05:59:33 0000 -------
tsunam, kloeri any news on this one?

------- Comment #39 From Joshua Jackson 2006-09-05 11:03:47 0000 -------
530 emerges fine on x86; and is okie to go with me.

------- Comment #40 From Bryan Østergaard (RETIRED) 2006-09-05 12:13:39 0000 -------
530 is fine on Alpha. Sorry about the delay.

------- Comment #41 From Sune Kloppenborg Jeppesen 2006-09-05 12:28:03 0000 -------
This one is ready for GLSA.

Luca is there anything public about this upstream?

------- Comment #42 From Luca Barbato 2006-09-05 14:04:43 0000 -------
I think most of the applications using it updated their internal copy and made
a note about it long ago.

------- Comment #43 From Sune Kloppenborg Jeppesen 2006-09-05 21:13:53 0000 -------
Luca, do you have an URL or another pointer for an upstream statement?

------- Comment #44 From Luca Barbato 2006-09-06 04:18:52 0000 -------
http://www.mplayerhq.hu/design7/
http://xinehq.de/index.php/news

To name two.

------- Comment #45 From Diego E. 'Flameeyes' Pettenò 2006-09-06 04:31:57 0000 -------
By the way, xine in Gentoo uses external FFmpeg.

------- Comment #46 From Sune Kloppenborg Jeppesen 2006-09-06 04:38:11 0000 -------
Thx Luca, that was too obvious :-) Opening bug.

Do we have all three issues fixed with these patches? (CVE-2005-4048,
CVE-2006-2802 and "fix for a possible buffer overflow via bad indexes in
specially-crafted AVI files")

And does this release fix any issues that was not covered by previous GLSAs?

------- Comment #47 From Luca Barbato 2006-09-06 04:48:50 0000 -------
we aren't using patches but rely on fresh snapshot with quite a number of fixes

------- Comment #48 From Sune Kloppenborg Jeppesen 2006-09-06 05:15:49 0000 -------
Thx Luca, bug was already too long and I must have forgot my head today.

------- Comment #49 From Raphael Marichez 2006-09-07 05:11:33 0000 -------
please correct me if i'm wrong :


- xine-lib was not affected by CVE-2005-4048 since it had been patched
(1.1.1-r3) in GLSA-200601-06. Upstream corrected it in 1.1.2.

- xine-lib was affected by CVE-2006-2802 (http issue) and it is now corrected.
(upstream 1.1.2)

- xine-lib was affected by "a fix for a possible buffer overflow via bad
indexes in specially-crafted AVI files." , corrected in upstream 1.1.2

- ffmpeg was affected by possible buffer overflows (according to the 4 patches
attached to this bug). Is there any official announcement ? Is it related to
the xine issues ?

This requires two different GLSAs, doesn't it ?

------- Comment #50 From Raphael Marichez 2006-09-07 05:22:24 0000 -------
Actually ffmpeg-0.4.9_p20060530 has not been stabilized anywhere. So i guess
this bug should not be in [glsa] status. Reverting to [stable]. Again, correct
me if i'm wrong.

All the main arches have already tested it so there should be no problem.

Arches testers, can you make 20060530 as stable if it is still OK please ?

------- Comment #51 From Markus Rothe 2006-09-07 06:23:59 0000 -------
media-libs/xvid-1.1.0-r1 (dependency) and media-video/ffmpeg-0.4.9_p20060530
stable on ppc64.

------- Comment #52 From Gustavo Zacarias (RETIRED) 2006-09-07 06:56:09 0000 -------
So we go arch by arch then, sparc stable.

------- Comment #53 From Thomas Cort (RETIRED) 2006-09-07 07:52:56 0000 -------
amd64 stable.

------- Comment #54 From Joshua Jackson 2006-09-07 10:16:53 0000 -------
x86 stable.

------- Comment #55 From Tobias Scherbaum 2006-09-07 23:22:43 0000 -------
ppc stable

------- Comment #56 From Thomas Cort (RETIRED) 2006-09-08 13:07:49 0000 -------
alpha stable.

------- Comment #57 From René Nussbaumer 2006-09-08 13:26:03 0000 -------
stable on hppa

------- Comment #58 From Raúl Porcel 2006-09-12 07:40:18 0000 -------
Close bug? :)

------- Comment #59 From Raphael Marichez 2006-09-12 08:12:46 0000 -------
We'll close the bug as soon as the GLSA is sent :)

------- Comment #60 From Sune Kloppenborg Jeppesen 2006-09-12 08:39:28 0000 -------
Handling possible bundled ffmpeg code in media-tv/xdtv on bug #147335

------- Comment #61 From Sune Kloppenborg Jeppesen 2006-09-13 20:58:47 0000 -------
GLSA 200609-08 and GLSA 200609-09

------- Comment #62 From Diego E. 'Flameeyes' Pettenò 2006-10-06 06:42:17 0000 -------
*** Bug 150265 has been marked as a duplicate of this bug. ***

------- Comment #63 From Lóránt Farkas 2006-11-13 14:13:07 0000 -------
Please modfy the 
RDEPEND x264? (=media-libs/x264-svn-20060612)
to 
RDEPEND x264? (>=media-libs/x264-svn-20060612)

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