diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-02-14 10:49:29 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-24 07:00:53 -0800 |
| commit | 0fb074b621e10a71b908161b889f02dfe09aa472 (patch) | |
| tree | 9ba8756846bd243fa53ffc6ca6dd660d8ea44cc5 | |
| parent | 2133671f72c3b9c2c20630d973d76b94570ae847 (diff) | |
| download | poky-0fb074b621e10a71b908161b889f02dfe09aa472.tar.gz | |
ffmpeg: fix CVE-2024-36617
FFmpeg n6.1.1 has an integer overflow vulnerability in the FFmpeg CAF decoder.
(From OE-Core rev: aec2ad743893d72d46c79701a0dac982931e3171)
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-36617.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch new file mode 100644 index 0000000000..8b4928d1ca --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-36617.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From f0e780370cc1c437d64f10d326b1d656ef490b5f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Niedermayer <michael@niedermayer.cc> | ||
| 3 | Date: Sat, 30 Sep 2023 00:38:17 +0200 | ||
| 4 | Subject: [PATCH 4/4] avformat/cafdec: dont seek beyond 64bit | ||
| 5 | |||
| 6 | Fixes: signed integer overflow: 64 + 9223372036854775807 cannot be represented in type 'long long' | ||
| 7 | Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6418242730328064 | ||
| 8 | Fixes: 62276/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-6418242730328064 | ||
| 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 | (cherry picked from commit d973fcbcc2f944752ff10e6a76b0b2d9329937a7) | ||
| 13 | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | ||
| 14 | |||
| 15 | CVE: CVE-2024-36617 | ||
| 16 | |||
| 17 | Upstream-Status: Backport [https://github.com/ffmpeg/ffmpeg/commit/f0e780370cc1c437d64f10d326b1d656ef490b5f] | ||
| 18 | |||
| 19 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 20 | --- | ||
| 21 | libavformat/cafdec.c | 2 +- | ||
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c | ||
| 25 | index d5668bf..aa56a5e 100644 | ||
| 26 | --- a/libavformat/cafdec.c | ||
| 27 | +++ b/libavformat/cafdec.c | ||
| 28 | @@ -220,7 +220,7 @@ static int read_pakt_chunk(AVFormatContext *s, int64_t size) | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 32 | - if (avio_tell(pb) - ccount > size) { | ||
| 33 | + if (avio_tell(pb) - ccount > size || size > INT64_MAX - ccount) { | ||
| 34 | av_log(s, AV_LOG_ERROR, "error reading packet table\n"); | ||
| 35 | return AVERROR_INVALIDDATA; | ||
| 36 | } | ||
| 37 | -- | ||
| 38 | 2.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 fc92bb2ec0..b5b11496f4 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | |||
| @@ -46,6 +46,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ | |||
| 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 | file://CVE-2024-36616.patch \ |
| 49 | file://CVE-2024-36617.patch \ | ||
| 49 | " | 50 | " |
| 50 | 51 | ||
| 51 | SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" | 52 | SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" |
