Bug 22481 - ffmpeg new security issues CVE-2017-16840 and CVE-2017-17081
Summary: ffmpeg new security issues CVE-2017-16840 and CVE-2017-17081
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA6-64-OK MGA6-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2018-01-28 19:05 CET by David Walser
Modified: 2018-02-06 07:27 CET (History)
5 users (show)

See Also:
Source RPM: ffmpeg-3.3.5-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2018-01-28 19:05:12 CET
FFmpeg 3.3.6 has been released on December 31:
https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n3.3.6

According to FFmpeg's security page, it fixes two security issues:
http://ffmpeg.org/security.html

Debian has issued an advisory for one of these issues on January 27:
https://www.debian.org/security/2018/dsa-4099
Comment 1 David Walser 2018-01-29 01:52:39 CET
Update submitted for Mageia 6.

Will submit to tainted later because the build system is *still* broken (this is getting tiring).

CC: (none) => pterjan, sysadmin-bugs

Comment 2 David Walser 2018-01-29 01:53:14 CET
Note that there are core and tainted builds for this package.

Testing procedure:
https://bugs.mageia.org/show_bug.cgi?id=8065#c6
https://bugs.mageia.org/show_bug.cgi?id=14042#c6

Advisory:
========================

Updated ffmpeg packages fix security vulnerabilities:

This update provides ffmpeg version 3.3.6, which fixes several security
vulnerabilities and other bugs which were corrected upstream.

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16840
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17081
https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n3.3.6
http://ffmpeg.org/download.html
http://ffmpeg.org/security.html
========================

Updated packages in {core,tainted}/updates_testing:
========================
ffmpeg-3.3.6-1.mga6
libavcodec57-3.3.6-1.mga6
libpostproc54-3.3.6-1.mga6
libavformat57-3.3.6-1.mga6
libavutil55-3.3.6-1.mga6
libavresample3-3.3.6-1.mga6
libswscaler4-3.3.6-1.mga6
libavfilter6-3.3.6-1.mga6
libswresample2-3.3.6-1.mga6
libffmpeg-devel-3.3.6-1.mga6
libffmpeg-static-devel-3.3.6-1.mga6

from ffmpeg-3.3.6-1.mga6.src.rpm

Assignee: bugsquad => qa-bugs

Comment 3 Len Lawrence 2018-01-29 19:03:10 CET
Testing this on Mageia 6.

CC: (none) => tarazed25

Comment 4 Len Lawrence 2018-01-29 20:56:23 CET
Mageia 6 :: x86_64

Downloaded some of the samples from http://www.divx.com/en/devices/profiles/video and ran some conversions with the updated core version.

$ ffmpeg -i WiegelesHeliSki_DivXPlus_19Mbps.mkv output_ski.avi
output_ski.avi played OK in vlc with sound.  Video quality a little degraded.

$ ffmpeg -i Fashion_DivX720p_ASP.divx output.avi
$ vlc output.avi
The converted file looked OK.

$ ffmpeg -i WaterlooRoad.mkv -an -scodec copy output.wmv
The output file played OK but without a sound stream.

A subtitle track can be combined with a video.  vlc will use the separate subtitle file if it exists but it is more convenient to combine the two streams.
$ ffmpeg -n -i comedy.mp4 -f srt -i comedy.srt -c:s mov_text -metadata:s:s:0  language=eng -c:v copy -c:a copy newfile.mp4
The subtitle track could be selected in vlc while newfile.mp4 was playing.

This all looks fine for the core updates.
Comment 5 Len Lawrence 2018-01-29 21:37:37 CET
Continuing from comment 4...

Installed the tainted versions of the ffmpeg packages.

$ ll *.{mp4,srt}
-rw-r--r-- 1 lcl lcl  320208609 Jan 29 19:40 comedy.mp4
-rw-r--r-- 1 lcl lcl      33740 Jan 29 19:43 comedy.srt
-rw-r--r-- 1 lcl lcl 1058676478 Jan 29 20:08 egypt.mp4
-rw-r--r-- 1 lcl lcl      70368 Jan 29 20:08 egypt.srt
-rw-r--r-- 1 lcl lcl 1068500052 Jan 29 20:07 IceHotel.mp4
-rw-r--r-- 1 lcl lcl     136010 Jan 29 20:07 IceHotel.srt
-rw-r--r-- 1 lcl lcl  320238933 Jan 29 19:50 newfile.mp4

$ ffmpeg -i IceHotel.mp4 hotel.avi
The 1 GB conversion was effected in about four minutes.
$ ll hotel.avi
-rw-r--r-- 1 lcl lcl 392142596 Jan 29 20:19 hotel.avi

Played by vlc the sound came through OK as an mp3 stream according to the codec information.

$ ffmpeg -i comedy.mp4 -an -scodec copy comedy.wmv
$ vlc comedy.wmv
Played OK.

Used this command to merge the subtitle track with the video file.
$ ffmpeg -n -i comedy.mp4 -f srt -i comedy.srt -c:s mov_text -metadata:s:s:0  language=eng -c:v copy -c:a copy sameagain.mp4
With vlc, subtitles could be switched on and off.

Both versions look good for 64 bits.

Whiteboard: (none) => MGA6-64-OK

Comment 6 José Jorge 2018-02-02 15:38:25 CET
Tested in i686 hardware : Pentium M 740.
Installed tainted version, tried to use a conversion of video, all ok.

CC: (none) => lists.jjorge
Whiteboard: MGA6-64-OK => MGA6-64-OK MGA6-32-OK

Len Lawrence 2018-02-05 23:18:09 CET

Keywords: (none) => validated_update

Dave Hodgins 2018-02-06 05:59:00 CET

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 7 Mageia Robot 2018-02-06 07:27:01 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2018-0116.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.