summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-02-07 15:41:10 +0000
committerSteve Sakoman <steve@sakoman.com>2025-02-14 06:38:54 -0800
commitc4593e71a8d0764786b87516c1043bfca6d85853 (patch)
tree692cd2064b6eb6b8f242249a4e1270111752c81c /meta/recipes-multimedia
parent25d16d3a0c4ada2d154e1ffded0f7e4be4d2688b (diff)
downloadpoky-c4593e71a8d0764786b87516c1043bfca6d85853.tar.gz
ffmpeg: fix CVE-2024-36618
FFmpeg n6.1.1 has a vulnerability in the AVI demuxer of the libavformat library which allows for an integer overflow, potentially resulting in a denial-of-service (DoS) condition. (From OE-Core rev: 21230d5dfe908533958712e06316a253e16b9d2e) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36618.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-36618.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36618.patch
new file mode 100644
index 0000000000..5caca2da7c
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36618.patch
@@ -0,0 +1,36 @@
1From 7a089ed8e049e3bfcb22de1250b86f2106060857 Mon Sep 17 00:00:00 2001
2From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3Date: Tue, 12 Mar 2024 23:23:17 +0100
4Subject: [PATCH] avformat/avidec: Fix integer overflow iff ULONG_MAX <
5 INT64_MAX
6
7Affects many FATE-tests, see
8https://fate.ffmpeg.org/report.cgi?time=20240312011016&slot=ppc-linux-gcc-13.2-ubsan-altivec-qemu
9
10Reviewed-by: James Almer <jamrial@gmail.com>
11Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
12
13CVE: CVE-2024-36618
14
15Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/7a089ed8e049e3bfcb22de1250b86f2106060857]
16
17Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
18---
19 libavformat/avidec.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/libavformat/avidec.c b/libavformat/avidec.c
23index 00bd7a9..bc95466 100644
24--- a/libavformat/avidec.c
25+++ b/libavformat/avidec.c
26@@ -1696,7 +1696,7 @@ static int check_stream_max_drift(AVFormatContext *s)
27 int *idx = av_calloc(s->nb_streams, sizeof(*idx));
28 if (!idx)
29 return AVERROR(ENOMEM);
30- for (min_pos = pos = 0; min_pos != INT64_MAX; pos = min_pos + 1LU) {
31+ for (min_pos = pos = 0; min_pos != INT64_MAX; pos = min_pos + 1ULL) {
32 int64_t max_dts = INT64_MIN / 2;
33 int64_t min_dts = INT64_MAX / 2;
34 int64_t max_buffer = 0;
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 3ef2d9099d..37416ef01a 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
@@ -44,6 +44,7 @@ SRC_URI = " \
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 file://CVE-2024-36617.patch \
47 file://CVE-2024-36618.patch \
47" 48"
48 49
49SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" 50SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968"