diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-02-21 06:03:05 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-28 06:51:35 -0800 |
| commit | 7b6ce37e5d76242732bc8f5ab01a932a7c97daa8 (patch) | |
| tree | 91a142d3787ce4697db481f0b3b44c899949c384 /meta | |
| parent | 5356d3a7e5566767af12da107203e95433f7faab (diff) | |
| download | poky-7b6ce37e5d76242732bc8f5ab01a932a7c97daa8.tar.gz | |
ffmpeg: fix CVE-2024-28661
(From OE-Core rev: cbe8929662f8ea873a3686517516bc5754a3cd18)
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-28661.patch | 40 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-28661.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-28661.patch new file mode 100644 index 0000000000..fd5009bccc --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-28661.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 66b50445cb36cf6adb49c2397362509aedb42c71 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: James Almer <jamrial@gmail.com> | ||
| 3 | Date: Fri, 16 Feb 2024 11:17:13 -0300 | ||
| 4 | Subject: [PATCH] avcodec/speexdec: check for sane frame_size values | ||
| 5 | |||
| 6 | Regression since ab39cc36c72bb73318bb911acb66873de850a107. | ||
| 7 | |||
| 8 | Fixes heap buffer overflows | ||
| 9 | Fixes ticket #10866 | ||
| 10 | |||
| 11 | Reported-by: sploitem <sploitem@gmail.com> | ||
| 12 | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> | ||
| 13 | Signed-off-by: James Almer <jamrial@gmail.com> | ||
| 14 | |||
| 15 | CVE: CVE-2024-28661 | ||
| 16 | |||
| 17 | Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/66b50445cb36cf6adb49c2397362509aedb42c71] | ||
| 18 | |||
| 19 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 20 | --- | ||
| 21 | libavcodec/speexdec.c | 3 ++- | ||
| 22 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c | ||
| 25 | index ee95417..5b016df 100644 | ||
| 26 | --- a/libavcodec/speexdec.c | ||
| 27 | +++ b/libavcodec/speexdec.c | ||
| 28 | @@ -1419,8 +1419,9 @@ static int parse_speex_extradata(AVCodecContext *avctx, | ||
| 29 | return AVERROR_INVALIDDATA; | ||
| 30 | s->bitrate = bytestream_get_le32(&buf); | ||
| 31 | s->frame_size = bytestream_get_le32(&buf); | ||
| 32 | - if (s->frame_size < NB_FRAME_SIZE << s->mode) | ||
| 33 | + if (s->frame_size < NB_FRAME_SIZE << (s->mode > 0)) | ||
| 34 | return AVERROR_INVALIDDATA; | ||
| 35 | + s->frame_size *= 1 + (s->mode > 0); | ||
| 36 | s->vbr = bytestream_get_le32(&buf); | ||
| 37 | s->frames_per_packet = bytestream_get_le32(&buf); | ||
| 38 | if (s->frames_per_packet <= 0 || | ||
| 39 | -- | ||
| 40 | 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 aa317513a1..2048e51962 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.1.bb | |||
| @@ -48,6 +48,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ | |||
| 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 | file://CVE-2024-36618.patch \ |
| 51 | file://CVE-2024-28661.patch \ | ||
| 51 | " | 52 | " |
| 52 | 53 | ||
| 53 | SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" | 54 | SRC_URI[sha256sum] = "ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b" |
