summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-02-21 06:03:04 +0000
committerSteve Sakoman <steve@sakoman.com>2025-02-28 06:51:35 -0800
commit5356d3a7e5566767af12da107203e95433f7faab (patch)
tree5edc658199885d7fa111c4514dbf81765867249a /meta
parentec48edde277653b37860c0cf375129b9c9687067 (diff)
downloadpoky-5356d3a7e5566767af12da107203e95433f7faab.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: 46680bed23ef6f529c7e554b5611a7c098fce8a9) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36618.patch36
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.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..941b38260a
--- /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 8584b4a..b0fe7df 100644
24--- a/libavformat/avidec.c
25+++ b/libavformat/avidec.c
26@@ -1682,7 +1682,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_5.0.1.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
index 900545a5f0..aa317513a1 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
@@ -47,6 +47,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
47 file://CVE-2024-36613.patch \ 47 file://CVE-2024-36613.patch \
48 file://CVE-2024-36616.patch \ 48 file://CVE-2024-36616.patch \
49 file://CVE-2024-36617.patch \ 49 file://CVE-2024-36617.patch \
50 file://CVE-2024-36618.patch \
50 " 51 "
51 52
52SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" 53SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"