summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-02-07 15:41:09 +0000
committerSteve Sakoman <steve@sakoman.com>2025-02-14 06:38:53 -0800
commit25d16d3a0c4ada2d154e1ffded0f7e4be4d2688b (patch)
tree285c7b6acec9657e5b465450037fa02cd5526fb5
parent89870800276a9a086e7af8c4d9006f836727ef4f (diff)
downloadpoky-25d16d3a0c4ada2d154e1ffded0f7e4be4d2688b.tar.gz
ffmpeg: fix CVE-2024-36617
FFmpeg n6.1.1 has an integer overflow vulnerability in the FFmpeg CAF decoder. (From OE-Core rev: 8057ba630477a7aeedf057b7e1ce25ab0c445665) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch36
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch
new file mode 100644
index 0000000000..5d751213e3
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch
@@ -0,0 +1,36 @@
1From d973fcbcc2f944752ff10e6a76b0b2d9329937a7 Mon Sep 17 00:00:00 2001
2From: Michael Niedermayer <michael@niedermayer.cc>
3Date: Sat, 30 Sep 2023 00:38:17 +0200
4Subject: [PATCH] avformat/cafdec: dont seek beyond 64bit
5
6Fixes: signed integer overflow: 64 + 9223372036854775807 cannot be represented in type 'long long'
7Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6418242730328064
8Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6418242730328064
9
10Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
11Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12
13CVE: CVE-2024-36617
14
15Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/d973fcbcc2f944752ff10e6a76b0b2d9329937a7]
16
17Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
18---
19 libavformat/cafdec.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
23index f5ba0f4..e92e327 100644
24--- a/libavformat/cafdec.c
25+++ b/libavformat/cafdec.c
26@@ -271,7 +271,7 @@ static int read_pakt_chunk(AVFormatContext *s, int64_t size)
27 }
28 }
29
30- if (avio_tell(pb) - ccount > size) {
31+ if (avio_tell(pb) - ccount > size || size > INT64_MAX - ccount) {
32 av_log(s, AV_LOG_ERROR, "error reading packet table\n");
33 return AVERROR_INVALIDDATA;
34 }
35--
362.40.0
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
index 3a18580e51..3ef2d9099d 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
@@ -43,6 +43,7 @@ SRC_URI = " \
43 file://CVE-2024-35365.patch \ 43 file://CVE-2024-35365.patch \
44 file://CVE-2024-36613.patch \ 44 file://CVE-2024-36613.patch \
45 file://CVE-2024-36616.patch \ 45 file://CVE-2024-36616.patch \
46 file://CVE-2024-36617.patch \
46" 47"
47 48
48SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" 49SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968"