diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-02-07 15:41:08 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-14 06:38:53 -0800 |
| commit | 89870800276a9a086e7af8c4d9006f836727ef4f (patch) | |
| tree | b270252b19f530e754be6252bbf3282644e95a6b | |
| parent | 4b8e4e26f08ed79f81a3928a54c3395e0063fe61 (diff) | |
| download | poky-89870800276a9a086e7af8c4d9006f836727ef4f.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: fe7df1727d8ea4868091236ddfff7ea862c1ada8)
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.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
2 files changed, 36 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..3f02c45b33 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36616.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 86f73277bf014e2ce36dd2594f1e0fb8b3bd6661 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Niedermayer <michael@niedermayer.cc> | ||
| 3 | Date: Tue, 26 Mar 2024 01:00:13 +0100 | ||
| 4 | Subject: [PATCH] avformat/westwood_vqa: Fix 2g packets | ||
| 5 | |||
| 6 | Fixes: signed integer overflow: 2147483424 * 2 cannot be represented in type 'int' | ||
| 7 | Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-4576211411795968 | ||
| 8 | |||
| 9 | Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg | ||
| 10 | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||
| 11 | |||
| 12 | CVE: CVE-2024-36616 | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/86f73277bf014e2ce36dd2594f1e0fb8b3bd6661] | ||
| 15 | |||
| 16 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 17 | --- | ||
| 18 | libavformat/westwood_vqa.c | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c | ||
| 22 | index 03b2d9e..024f5d3 100644 | ||
| 23 | --- a/libavformat/westwood_vqa.c | ||
| 24 | +++ b/libavformat/westwood_vqa.c | ||
| 25 | @@ -262,7 +262,7 @@ static int wsvqa_read_packet(AVFormatContext *s, | ||
| 26 | break; | ||
| 27 | case SND2_TAG: | ||
| 28 | /* 2 samples/byte, 1 or 2 samples per frame depending on stereo */ | ||
| 29 | - pkt->duration = (chunk_size * 2) / wsvqa->channels; | ||
| 30 | + pkt->duration = (chunk_size * 2LL) / wsvqa->channels; | ||
| 31 | break; | ||
| 32 | } | ||
| 33 | break; | ||
| 34 | -- | ||
| 35 | 2.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 5e22fd4080..3a18580e51 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
| @@ -42,6 +42,7 @@ SRC_URI = " \ | |||
| 42 | file://CVE-2024-35368.patch \ | 42 | file://CVE-2024-35368.patch \ |
| 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 | " | 46 | " |
| 46 | 47 | ||
| 47 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 48 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |
