diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-28661.patch | 37 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
2 files changed, 38 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..b42badb567 --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2024-28661.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 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 1/3] 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 | 1 + | ||
| 22 | 1 file changed, 1 insertion(+) | ||
| 23 | |||
| 24 | diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c | ||
| 25 | index 08c7e77..23b8605 100644 | ||
| 26 | --- a/libavcodec/speexdec.c | ||
| 27 | +++ b/libavcodec/speexdec.c | ||
| 28 | @@ -1422,6 +1422,7 @@ static int parse_speex_extradata(AVCodecContext *avctx, | ||
| 29 | s->frame_size = bytestream_get_le32(&buf); | ||
| 30 | if (s->frame_size < NB_FRAME_SIZE << s->mode) | ||
| 31 | return AVERROR_INVALIDDATA; | ||
| 32 | + s->frame_size *= 1 + (s->mode > 0); | ||
| 33 | s->vbr = bytestream_get_le32(&buf); | ||
| 34 | s->frames_per_packet = bytestream_get_le32(&buf); | ||
| 35 | if (s->frames_per_packet <= 0 || | ||
| 36 | -- | ||
| 37 | 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 47be4d3e71..acff21f558 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
| @@ -33,6 +33,7 @@ SRC_URI = " \ | |||
| 33 | file://CVE-2023-50008.patch \ | 33 | file://CVE-2023-50008.patch \ |
| 34 | file://CVE-2024-32230.patch \ | 34 | file://CVE-2024-32230.patch \ |
| 35 | file://CVE-2023-49501.patch \ | 35 | file://CVE-2023-49501.patch \ |
| 36 | file://CVE-2024-28661.patch \ | ||
| 36 | " | 37 | " |
| 37 | 38 | ||
| 38 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 39 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |
