mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
287838f419
commit
674351742d
39
meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25471.patch
Normal file
39
meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25471.patch
Normal file
|
@ -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
|
|
@ -48,6 +48,7 @@ SRC_URI = " \
|
||||||
file://CVE-2024-36619.patch \
|
file://CVE-2024-36619.patch \
|
||||||
file://CVE-2024-35369.patch \
|
file://CVE-2024-35369.patch \
|
||||||
file://CVE-2025-25473.patch \
|
file://CVE-2025-25473.patch \
|
||||||
|
file://CVE-2025-25471.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968"
|
SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user