summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTony Tascioglu <tony.tascioglu@windriver.com>2021-07-27 16:20:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:47:00 +0100
commitd6044c86b081be3700ce7ba111b5c8ac3d4f5747 (patch)
tree9a9c854e9c41668c6777dc00b8c862f0e540c028 /meta
parent01d224ae48a20c9f1e992d187ac3e466f7d6d365 (diff)
downloadpoky-d6044c86b081be3700ce7ba111b5c8ac3d4f5747.tar.gz
ffmpeg: fix CVE-2020-22033 and CVE-2020-22019
avfilter/vf_vmafmotion: Check dimensions Fixes: out of array access Fixes: Ticket8241 Fixes: Ticket8246 Fixes: CVE-2020-22019 Fixes: CVE-2020-22033 (From OE-Core rev: 451a945efb21221cfeeb4e641c5aa8bf4ae18c89) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> CVE: CVE-2020-22033 CVE: CVE-2020-22019 Upstream-Status: Backport [82ad1b76751bcfad5005440db48c46a4de5d6f02] Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg/fix-CVE-2020-22033-CVE-2020-22019.patch40
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb1
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/fix-CVE-2020-22033-CVE-2020-22019.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/fix-CVE-2020-22033-CVE-2020-22019.patch
new file mode 100644
index 0000000000..5d979ca3f2
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/fix-CVE-2020-22033-CVE-2020-22019.patch
@@ -0,0 +1,40 @@
1From 82ad1b76751bcfad5005440db48c46a4de5d6f02 Mon Sep 17 00:00:00 2001
2From: Michael Niedermayer <michael@niedermayer.cc>
3Date: Sat, 29 May 2021 09:58:31 +0200
4Subject: [PATCH] avfilter/vf_vmafmotion: Check dimensions
5
6Fixes: out of array access
7Fixes: Ticket8241
8Fixes: Ticket8246
9Fixes: CVE-2020-22019
10Fixes: CVE-2020-22033
11
12Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
13
14
15CVE: CVE-2020-22033
16CVE: CVE-2020-22019
17Upstream-Status: Backport [82ad1b76751bcfad5005440db48c46a4de5d6f02]
18
19Signed-off-by: Tony Tascioglu <tony.tascioglu@windriver.com>
20---
21 libavfilter/vf_vmafmotion.c | 3 +++
22 1 file changed, 3 insertions(+)
23
24diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c
25index 2db4783d8d..454ebb8afa 100644
26--- a/libavfilter/vf_vmafmotion.c
27+++ b/libavfilter/vf_vmafmotion.c
28@@ -238,6 +238,9 @@ int ff_vmafmotion_init(VMAFMotionData *s,
29 int i;
30 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
31
32+ if (w < 3 || h < 3)
33+ return AVERROR(EINVAL);
34+
35 s->width = w;
36 s->height = h;
37 s->stride = FFALIGN(w * sizeof(uint16_t), 32);
38--
392.32.0
40
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb
index f1b3c027e3..70b1513048 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb
@@ -29,6 +29,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
29 file://fix-CVE-2020-20453.patch \ 29 file://fix-CVE-2020-20453.patch \
30 file://fix-CVE-2020-22015.patch \ 30 file://fix-CVE-2020-22015.patch \
31 file://fix-CVE-2020-22021.patch \ 31 file://fix-CVE-2020-22021.patch \
32 file://fix-CVE-2020-22033-CVE-2020-22019.patch \
32 " 33 "
33SRC_URI[sha256sum] = "06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909" 34SRC_URI[sha256sum] = "06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909"
34 35