mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 09:49:41 +01:00
ffmpeg: fix CVE-2020-22019 and CVE-2020-22033
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: 7423421005816ab75ff0a08813054f7e03075cd2) 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: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ba76476cae
commit
82c08662c3
@@ -0,0 +1,39 @@
|
||||
From 2f3bf456fa641edf154a99c4586d7bf52c02a495 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Niedermayer <michael@niedermayer.cc>
|
||||
Date: Sat, 29 May 2021 09:58:31 +0200
|
||||
Subject: [PATCH 5/5] 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 88d0b35095..0730147e7d 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
|
||||
|
||||
@@ -30,6 +30,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] = "46e4e64f1dd0233cbc0934b9f1c0da676008cad34725113fb7f802cfa84ccddb"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user