diff options
author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-03-05 16:14:41 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-03-08 06:22:57 -0800 |
commit | 674351742d381e2006f335ff088f55e424afc83c (patch) | |
tree | 0151a276c1865109f11beae61b0dcb51aead91c7 | |
parent | 287838f419e65ae60e0ec2cf8a99289fffd735a7 (diff) | |
download | poky-674351742d381e2006f335ff088f55e424afc83c.tar.gz |
ffmpeg: fix CVE-2025-25471
FFmpeg git master before commit fd1772 was discovered to contain a NULL pointer
dereference via the component libavformat/mov.c.
(From OE-Core rev: a8331b11d5d7aa8f1997eaa189b74aaab7cc44da)
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-2025-25471.patch | 39 | ||||
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25471.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25471.patch new file mode 100644 index 0000000000..6af01b298f --- /dev/null +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25471.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 1446e37d3d032e1452844778b3e6ba2c20f0c322 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 | |||
13 | CVE: CVE-2025-25471 | ||
14 | |||
15 | Upstream-Status: Backport [https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/1446e37d3d032e1452844778b3e6ba2c20f0c322] | ||
16 | |||
17 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
18 | --- | ||
19 | libavfilter/buffersrc.c | 5 +++++ | ||
20 | 1 file changed, 5 insertions(+) | ||
21 | |||
22 | diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c | ||
23 | index 453fc0f..f49aa91 100644 | ||
24 | --- a/libavfilter/buffersrc.c | ||
25 | +++ b/libavfilter/buffersrc.c | ||
26 | @@ -401,6 +401,11 @@ FF_ENABLE_DEPRECATION_WARNINGS | ||
27 | av_channel_layout_describe(&s->ch_layout, buf, sizeof(buf)); | ||
28 | } | ||
29 | |||
30 | + if (s->sample_rate <= 0) { | ||
31 | + av_log(ctx, AV_LOG_ERROR, "Sample rate not set\n"); | ||
32 | + return AVERROR(EINVAL); | ||
33 | + } | ||
34 | + | ||
35 | if (!s->time_base.num) | ||
36 | s->time_base = (AVRational){1, s->sample_rate}; | ||
37 | |||
38 | -- | ||
39 | 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 cb6a50401b..6af43bcf37 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | |||
@@ -48,6 +48,7 @@ SRC_URI = " \ | |||
48 | file://CVE-2024-36619.patch \ | 48 | file://CVE-2024-36619.patch \ |
49 | file://CVE-2024-35369.patch \ | 49 | file://CVE-2024-35369.patch \ |
50 | file://CVE-2025-25473.patch \ | 50 | file://CVE-2025-25473.patch \ |
51 | file://CVE-2025-25471.patch \ | ||
51 | " | 52 | " |
52 | 53 | ||
53 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 54 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |