summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-02-14 10:49:28 +0000
committerSteve Sakoman <steve@sakoman.com>2025-02-24 07:00:53 -0800
commit2133671f72c3b9c2c20630d973d76b94570ae847 (patch)
tree5672c10322d8e16bcb1f5c88c784808673b6efb2
parent945621f3ce7c15821836847fe6190f9f6e645583 (diff)
downloadpoky-2133671f72c3b9c2c20630d973d76b94570ae847.tar.gz
ffmpeg: fix CVE-2024-36616
An integer overflow in the component /libavformat/westwood_vqa.c of FFmpeg n6.1.1 allows attackers to cause a denial of service in the application via a crafted VQA file. (From OE-Core rev: 93a1e2fd2bb42977339510ef7d71288a88a34ab8) 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-36616.patch37
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36616.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36616.patch
new file mode 100644
index 0000000000..5e2046dbac
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36616.patch
@@ -0,0 +1,37 @@
1From a8beef67993aa267de87599007143d9f0ba67c23 Mon Sep 17 00:00:00 2001
2From: Michael Niedermayer <michael@niedermayer.cc>
3Date: Tue, 26 Mar 2024 01:00:13 +0100
4Subject: [PATCH 3/4] avformat/westwood_vqa: Fix 2g packets
5
6Fixes: signed integer overflow: 2147483424 * 2 cannot be represented in type 'int'
7Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-4576211411795968
8
9Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
10Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
11(cherry picked from commit 86f73277bf014e2ce36dd2594f1e0fb8b3bd6661)
12Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
13
14CVE: CVE-2024-36616
15
16Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/a8beef67993aa267de87599007143d9f0ba67c23]
17
18Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
19---
20 libavformat/westwood_vqa.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
24index 9d11606..9499569 100644
25--- a/libavformat/westwood_vqa.c
26+++ b/libavformat/westwood_vqa.c
27@@ -259,7 +259,7 @@ static int wsvqa_read_packet(AVFormatContext *s,
28 break;
29 case SND2_TAG:
30 /* 2 samples/byte, 1 or 2 samples per frame depending on stereo */
31- pkt->duration = (chunk_size * 2) / wsvqa->channels;
32+ pkt->duration = (chunk_size * 2LL) / wsvqa->channels;
33 break;
34 }
35 break;
36--
372.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 91259baa5e..fc92bb2ec0 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb
@@ -45,6 +45,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \
45 file://CVE-2024-35368.patch \ 45 file://CVE-2024-35368.patch \
46 file://CVE-2025-0518.patch \ 46 file://CVE-2025-0518.patch \
47 file://CVE-2024-36613.patch \ 47 file://CVE-2024-36613.patch \
48 file://CVE-2024-36616.patch \
48 " 49 "
49 50
50SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" 51SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"