mirror of
https://git.yoctoproject.org/poky
synced 2026-03-29 23:02:20 +02:00
Backport patches to fix the following CVEs. CVE-2017-14054 CVE-2017-14055 CVE-2017-14056 CVE-2017-14057 CVE-2017-14058 CVE-2017-14059 CVE-2017-14169 CVE-2017-14170 CVE-2017-14171 CVE-2017-14222 CVE-2017-14223 CVE-2017-14225 (From OE-Core rev: 13862938a6a7a938f8d781655ceaf78a81b57549) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From 7e80b63ecd259d69d383623e75b318bf2bd491f6 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=E5=AD=99=E6=B5=A9=20and=20=E5=BC=A0=E6=B4=AA=E4=BA=AE=28?=
|
|
=?UTF-8?q?=E6=9C=9B=E5=88=9D=29?= <tony.sh and wangchu.zhl@alibaba-inc.com>
|
|
Date: Fri, 25 Aug 2017 01:15:27 +0200
|
|
Subject: [PATCH] avformat/cinedec: Fix DoS due to lack of eof check
|
|
|
|
Fixes: loop.cine
|
|
|
|
Found-by: Xiaohei and Wangchu from Alibaba Security Team
|
|
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
|
|
|
|
CVE: CVE-2017-14059
|
|
Upstream-Status: Backport
|
|
|
|
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
|
---
|
|
libavformat/cinedec.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c
|
|
index 763b93b..de34fb9 100644
|
|
--- a/libavformat/cinedec.c
|
|
+++ b/libavformat/cinedec.c
|
|
@@ -267,8 +267,12 @@ static int cine_read_header(AVFormatContext *avctx)
|
|
|
|
/* parse image offsets */
|
|
avio_seek(pb, offImageOffsets, SEEK_SET);
|
|
- for (i = 0; i < st->duration; i++)
|
|
+ for (i = 0; i < st->duration; i++) {
|
|
+ if (avio_feof(pb))
|
|
+ return AVERROR_INVALIDDATA;
|
|
+
|
|
av_add_index_entry(st, avio_rl64(pb), i, 0, 0, AVINDEX_KEYFRAME);
|
|
+ }
|
|
|
|
return 0;
|
|
}
|
|
--
|
|
2.1.0
|
|
|