From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][scarthgap 13/16] ffmpeg: fix CVE-2025-25471
Date: Wed, 5 Mar 2025 14:11:12 -0800 [thread overview]
Message-ID: <a8331b11d5d7aa8f1997eaa189b74aaab7cc44da.1741206348.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1741206348.git.steve@sakoman.com>
From: Archana Polampalli <archana.polampalli@windriver.com>
FFmpeg git master before commit fd1772 was discovered to contain a NULL pointer
dereference via the component libavformat/mov.c.
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../ffmpeg/ffmpeg/CVE-2025-25471.patch | 39 +++++++++++++++++++
.../recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 +
2 files changed, 40 insertions(+)
create mode 100644 meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25471.patch
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 @@
+From 1446e37d3d032e1452844778b3e6ba2c20f0c322 Mon Sep 17 00:00:00 2001
+From: James Almer <jamrial@gmail.com>
+Date: Mon, 30 Dec 2024 00:25:41 -0300
+Subject: [PATCH] avfilter/buffersrc: check for valid sample rate
+
+A sample rate <= 0 is invalid.
+
+Fixes an assert in ffmpeg_enc.c that assumed a valid sample rate would be set.
+Fixes ticket #11385.
+
+Signed-off-by: James Almer <jamrial@gmail.com>
+
+CVE: CVE-2025-25471
+
+Upstream-Status: Backport [https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/1446e37d3d032e1452844778b3e6ba2c20f0c322]
+
+Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
+---
+ libavfilter/buffersrc.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
+index 453fc0f..f49aa91 100644
+--- a/libavfilter/buffersrc.c
++++ b/libavfilter/buffersrc.c
+@@ -401,6 +401,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
+ av_channel_layout_describe(&s->ch_layout, buf, sizeof(buf));
+ }
+
++ if (s->sample_rate <= 0) {
++ av_log(ctx, AV_LOG_ERROR, "Sample rate not set\n");
++ return AVERROR(EINVAL);
++ }
++
+ if (!s->time_base.num)
+ s->time_base = (AVRational){1, s->sample_rate};
+
+--
+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 = " \
file://CVE-2024-36619.patch \
file://CVE-2024-35369.patch \
file://CVE-2025-25473.patch \
+ file://CVE-2025-25471.patch \
"
SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968"
--
2.43.0
next prev parent reply other threads:[~2025-03-05 22:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-05 22:10 [OE-core][scarthgap 00/16] Patch review Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 01/16] openssh: Fix CVE-2025-26466 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 02/16] curl: ignore CVE-2025-0725 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 03/16] xwayland: Fix CVE-2024-9632 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 04/16] xwayland: Fix CVE-2025-26594 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 05/16] xwayland: Fix CVE-2025-26595 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 06/16] xwayland: Fix CVE-2025-26596 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 07/16] xwayland: Fix CVE-2025-26597 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 08/16] xwayland: Fix CVE-2025-26598 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 09/16] xwayland: Fix CVE-2025-26599 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 10/16] xwayland: Fix CVE-2025-26600 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 11/16] xwayland: Fix CVE-2025-26601 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 12/16] ffmpeg: fix CVE-2025-25473 Steve Sakoman
2025-03-05 22:11 ` Steve Sakoman [this message]
2025-03-05 22:11 ` [OE-core][scarthgap 14/16] ffmpeg: fix CVE-2025-22921 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 15/16] ffmpeg: fix CVE-2025-0518 Steve Sakoman
2025-03-05 22:11 ` [OE-core][scarthgap 16/16] systemd: add libpcre2 as RRECOMMENDS if pcre2 is enabled Steve Sakoman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a8331b11d5d7aa8f1997eaa189b74aaab7cc44da.1741206348.git.steve@sakoman.com \
--to=steve@sakoman.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox