diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-06-04 16:46:57 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-13 08:42:35 -0700 |
| commit | 34bb2a2900f88fc2f7477c18280b034905f96bca (patch) | |
| tree | e28a89f9a905ff711f0001f9e9e950befde626a5 /meta/recipes-multimedia | |
| parent | 9f5df97f5ca4ab0b00b51db80ae6d0393db2b764 (diff) | |
| download | poky-34bb2a2900f88fc2f7477c18280b034905f96bca.tar.gz | |
ffmpeg: fix CVE-2025-22919
A reachable assertion in FFmpeg git-master commit N-113007-g8d24a28d06 allows
attackers to cause a Denial of Service (DoS) via opening a crafted AAC file.
(From OE-Core rev: 2494f863a163d13967d927618a101078f6980538)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia')
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-22919.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.3.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-22919.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-22919.patch new file mode 100644 index 0000000000..5e27ad9d5b --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-22919.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 145a3a84550a1c3a3b848c12a64b53c3c41d2888 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: James Almer <jamrial@gmail.com> | ||
| 3 | Date: Mon, 30 Dec 2024 00:25:41 -0300 | ||
| 4 | Subject: [PATCH] avfilter/buffersrc: check for valid sample rate | ||
| 5 | |||
| 6 | A sample rate <= 0 is invalid. | ||
| 7 | |||
| 8 | Fixes an assert in ffmpeg_enc.c that assumed a valid sample rate would be set. | ||
| 9 | Fixes ticket #11385. | ||
| 10 | |||
| 11 | Signed-off-by: James Almer <jamrial@gmail.com> | ||
| 12 | (cherry picked from commit 1446e37d3d032e1452844778b3e6ba2c20f0c322) | ||
| 13 | |||
| 14 | CVE: CVE-2025-22919 | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/145a3a84550a1c3a3b848c12a64b53c3c41d2888] | ||
| 17 | |||
| 18 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 19 | --- | ||
| 20 | libavfilter/buffersrc.c | 5 +++++ | ||
| 21 | 1 file changed, 5 insertions(+) | ||
| 22 | |||
| 23 | diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c | ||
| 24 | index b061187..cd2b05d 100644 | ||
| 25 | --- a/libavfilter/buffersrc.c | ||
| 26 | +++ b/libavfilter/buffersrc.c | ||
| 27 | @@ -335,6 +335,11 @@ static av_cold int init_audio(AVFilterContext *ctx) | ||
| 28 | "channel layout specified\n"); | ||
| 29 | return AVERROR(EINVAL); | ||
| 30 | } | ||
| 31 | + | ||
| 32 | + if (s->sample_rate <= 0) { | ||
| 33 | + av_log(ctx, AV_LOG_ERROR, "Sample rate not set\n"); | ||
| 34 | + return AVERROR(EINVAL); | ||
| 35 | + } | ||
| 36 | |||
| 37 | if (!s->time_base.num) | ||
| 38 | s->time_base = (AVRational){1, s->sample_rate}; | ||
| 39 | -- | ||
| 40 | 2.40.0 | ||
| 41 | |||
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.3.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.3.bb index 127552396d..49277f9e2b 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.3.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.0.3.bb | |||
| @@ -46,6 +46,7 @@ SRC_URI = "https://www.ffmpeg.org/releases/${BP}.tar.xz \ | |||
| 46 | file://CVE-2024-28661.patch \ | 46 | file://CVE-2024-28661.patch \ |
| 47 | file://CVE-2024-35369.patch \ | 47 | file://CVE-2024-35369.patch \ |
| 48 | file://CVE-2025-25473.patch \ | 48 | file://CVE-2025-25473.patch \ |
| 49 | file://CVE-2025-22919.patch \ | ||
| 49 | " | 50 | " |
| 50 | 51 | ||
| 51 | SRC_URI[sha256sum] = "04c70c377de233a4b217c2fdf76b19aeb225a287daeb2348bccd978c47b1a1db" | 52 | SRC_URI[sha256sum] = "04c70c377de233a4b217c2fdf76b19aeb225a287daeb2348bccd978c47b1a1db" |
