diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-02-07 15:41:11 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-14 06:38:54 -0800 |
| commit | 8ad8857f149c5ac46ae7914a8539980e397a7293 (patch) | |
| tree | d6c72573157fb133356dd43239114a1086245dc4 /meta/recipes-multimedia/ffmpeg | |
| parent | c4593e71a8d0764786b87516c1043bfca6d85853 (diff) | |
| download | poky-8ad8857f149c5ac46ae7914a8539980e397a7293.tar.gz | |
ffmpeg: fix CVE-2024-36619
FFmpeg n6.1.1 has a vulnerability in the WAVARC decoder of the libavcodec
library which allows for an integer overflow when handling certain block types,
leading to a denial-of-service (DoS) condition.
(From OE-Core rev: 161711ba2ef14fa77fba4740b1933c68043c57c7)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg')
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36619.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36619.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36619.patch new file mode 100644 index 0000000000..63d08eabcc --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36619.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 28c7094b25b689185155a6833caf2747b94774a4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Niedermayer <michael@niedermayer.cc> | ||
| 3 | Date: Thu, 4 Apr 2024 00:15:27 +0200 | ||
| 4 | Subject: [PATCH] avcodec/wavarc: fix signed integer overflow in block type | ||
| 5 | 6/19 | ||
| 6 | |||
| 7 | Fixes: signed integer overflow: -2088796289 + -91276551 cannot be represented in type 'int' | ||
| 8 | Fixes: 67772/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6533568953122816 | ||
| 9 | |||
| 10 | Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg | ||
| 11 | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||
| 12 | |||
| 13 | CVE: CVE-2024-36619 | ||
| 14 | |||
| 15 | Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/28c7094b25b689185155a6833caf2747b94774a4] | ||
| 16 | |||
| 17 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 18 | --- | ||
| 19 | libavcodec/wavarc.c | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/libavcodec/wavarc.c b/libavcodec/wavarc.c | ||
| 23 | index 09ed4d4..51d91a4 100644 | ||
| 24 | --- a/libavcodec/wavarc.c | ||
| 25 | +++ b/libavcodec/wavarc.c | ||
| 26 | @@ -648,7 +648,7 @@ static int decode_5elp(AVCodecContext *avctx, | ||
| 27 | for (int o = 0; o < order; o++) | ||
| 28 | sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1]; | ||
| 29 | |||
| 30 | - samples[n + 70] += ac_out[n] + (sum >> 4); | ||
| 31 | + samples[n + 70] += ac_out[n] + (unsigned)(sum >> 4); | ||
| 32 | } | ||
| 33 | |||
| 34 | for (int n = 0; n < 70; n++) | ||
| 35 | -- | ||
| 36 | 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 37416ef01a..dff78ccc53 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
| @@ -45,6 +45,7 @@ SRC_URI = " \ | |||
| 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 | file://CVE-2024-36618.patch \ |
| 48 | file://CVE-2024-36619.patch \ | ||
| 48 | " | 49 | " |
| 49 | 50 | ||
| 50 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 51 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |
