mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
01d224ae48
commit
d6044c86b0
@@ -0,0 +1,40 @@
|
||||
From 82ad1b76751bcfad5005440db48c46a4de5d6f02 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||
Date: Sat, 29 May 2021 09:58:31 +0200
|
||||
Subject: [PATCH] avfilter/vf_vmafmotion: Check dimensions
|
||||
|
||||
Fixes: out of array access
|
||||
Fixes: Ticket8241
|
||||
Fixes: Ticket8246
|
||||
Fixes: CVE-2020-22019
|
||||
Fixes: CVE-2020-22033
|
||||
|
||||
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>
|
||||
---
|
||||
libavfilter/vf_vmafmotion.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c
|
||||
index 2db4783d8d..454ebb8afa 100644
|
||||
--- a/libavfilter/vf_vmafmotion.c
|
||||
+++ b/libavfilter/vf_vmafmotion.c
|
||||
@@ -238,6 +238,9 @@ int ff_vmafmotion_init(VMAFMotionData *s,
|
||||
int i;
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
|
||||
|
||||
+ if (w < 3 || h < 3)
|
||||
+ return AVERROR(EINVAL);
|
||||
+
|
||||
s->width = w;
|
||||
s->height = h;
|
||||
s->stride = FFALIGN(w * sizeof(uint16_t), 32);
|
||||
--
|
||||
2.32.0
|
||||
|
||||
@@ -29,6 +29,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
|
||||
file://fix-CVE-2020-20453.patch \
|
||||
file://fix-CVE-2020-22015.patch \
|
||||
file://fix-CVE-2020-22021.patch \
|
||||
file://fix-CVE-2020-22033-CVE-2020-22019.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user