Open hartb opened 5 years ago
The existing ffmpeg 4.0 package is also exposed to a second CVE:
https://nvd.nist.gov/vuln/detail/CVE-2019-17539
Which is also fixed upstream in ffmpeg 4.2, but by a different commit / patch:
https://github.com/FFmpeg/FFmpeg/commit/8df6884832ec413cf032dfaa45c23b1c7876670c
That pack does not cherry-pick cleanly to 4.0 unless this commit is picked/applied first:
https://github.com/FFmpeg/FFmpeg/commit/b1febda061955c6f4bfbc1a75918b5e75e7d7f80
So a combined backport fix for CVEs CVE-2019-17542 and CVE-2019-17539) might require 3 patches.
Building without VQA support will not address this second CVE.
It looks like forge has their recipe at 4.2 now. It might be an easy enough update. https://github.com/conda-forge/ffmpeg-feedstock
[Comment was incorrect / likely to confuse; removing. Will post corrected version soon.]
I see that ffmpeg 4.2 is available from Anaconda now. Thank you!
The ffmpeg 4.2 source tarball being used for the build seems to correspond to the n4.2
tag, and does include fixes for the two vulnerabilities mentioned above:
CVE-2019-17539
is fixed by 8df6884832 avcodec/utils: Check close before calling it
CVE-2019-17542
is fixed by 06688a8cc5 avcodec/vqavideo: Set video size
However, we've become aware of a third ffmpeg vulnerability which is not fixed in the base 4.2 release:
CVE-2019-15942
is fixed by c1dc4d2d50 avcodec/h2645_parse: zero initialize the rbsp buffer
$ git log --oneline --graph --decorate origin/release/4.2
* 192d1d34eb (tag: n4.2.2, origin/release/4.2) Update for FFmpeg 4.2.2
...
* 1529dfb73a (tag: n4.2.1) Update for 4.2.1
...
* c1dc4d2d50 avcodec/h2645_parse: zero initialize the rbsp buffer
...
* 75384bc464 (tag: n4.2) configure: cuda_llvm: fix include path for MSYS2
...
* 06688a8cc5 avcodec/vqavideo: Set video size
...
* 8df6884832 avcodec/utils: Check close before calling it
The 15942
-fixing commit (c1dc4d2d50
) picks cleanly back to n4.2
, so would be easy to add as a patch in the recipe. Or moving forward to the n4.2.1
tag would also pull in the fix (and ffmpeg does publish a source tarball for that at https://ffmpeg.org/releases/ffmpeg-4.2.1.tar.gz).
The Anaconda distribution currently includes ffmpeg v4.0, with support for the VQA decoder enabled:
The VQA decoder in ffmpeg 4.0 is the subject of a recent security disclosure:
https://nvd.nist.gov/vuln/detail/CVE-2019-17542
The exposure is fixed upstream in ffmpeg 4.2 by this change:
https://github.com/FFmpeg/FFmpeg/commit/02f909dc24b1f05cfbba75077c7707b905e63cd2
conda-forge is currently building ffmpeg 4.2:
https://github.com/conda-forge/ffmpeg-feedstock
Can you please update Anaconda's ffmpeg package to close this exposure? Possible solutions from least to most disruptive are probably:
--disable-decoder=vqa
)Anaconda or Miniconda version:
2019.07
Operating System:
Any x86 or ppc64le linux
conda info
Any conda version
conda list --show-channel-urls
See above;
ffmpeg
package comes frommain