mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
ffmpeg: fix CVE-2020-12284
(From OE-Core rev: 326541919ba0d0e5a0c00cbda7dd6308230ff719) Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f3be15a8a0
commit
d548397dd0
36
meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2020-12284.patch
Normal file
36
meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2020-12284.patch
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
From 1812352d767ccf5431aa440123e2e260a4db2726 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||||
|
Date: Sat, 7 Mar 2020 15:42:58 +0100
|
||||||
|
Subject: [PATCH] avcodec/cbs_jpeg: Check length for SOS
|
||||||
|
|
||||||
|
Fixes: out of array access
|
||||||
|
Fixes: 19734/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5673507031875584
|
||||||
|
Fixes: 19353/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5703944462663680
|
||||||
|
|
||||||
|
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
|
||||||
|
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/1812352d767ccf5431aa440123e2e260a4db2726]
|
||||||
|
CVE: CVE-2020-12284
|
||||||
|
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
|
||||||
|
---
|
||||||
|
libavcodec/cbs_jpeg.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/cbs_jpeg.c b/libavcodec/cbs_jpeg.c
|
||||||
|
index 6bbce5f..89512a2 100644
|
||||||
|
--- a/libavcodec/cbs_jpeg.c
|
||||||
|
+++ b/libavcodec/cbs_jpeg.c
|
||||||
|
@@ -197,6 +197,9 @@ static int cbs_jpeg_split_fragment(CodedBitstreamContext *ctx,
|
||||||
|
if (marker == JPEG_MARKER_SOS) {
|
||||||
|
length = AV_RB16(frag->data + start);
|
||||||
|
|
||||||
|
+ if (length > end - start)
|
||||||
|
+ return AVERROR_INVALIDDATA;
|
||||||
|
+
|
||||||
|
data_ref = NULL;
|
||||||
|
data = av_malloc(end - start +
|
||||||
|
AV_INPUT_BUFFER_PADDING_SIZE);
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
@@ -25,6 +25,7 @@ LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
|||||||
|
|
||||||
SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
|
SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
|
||||||
file://mips64_cpu_detection.patch \
|
file://mips64_cpu_detection.patch \
|
||||||
|
file://CVE-2020-12284.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "348956fc2faa57a2f79bbb84ded9fbc3"
|
SRC_URI[md5sum] = "348956fc2faa57a2f79bbb84ded9fbc3"
|
||||||
SRC_URI[sha256sum] = "cb754255ab0ee2ea5f66f8850e1bd6ad5cac1cd855d0a2f4990fb8c668b0d29c"
|
SRC_URI[sha256sum] = "cb754255ab0ee2ea5f66f8850e1bd6ad5cac1cd855d0a2f4990fb8c668b0d29c"
|
||||||
|
|||||||
Reference in New Issue
Block a user