summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-03-05 16:14:40 +0000
committerSteve Sakoman <steve@sakoman.com>2025-03-08 06:22:56 -0800
commit287838f419e65ae60e0ec2cf8a99289fffd735a7 (patch)
tree5dd9d26fb8d7a190ae68051a74f3989ba9e22966
parent1acf84103895d51a90d92fdee2eff9ce1c234028 (diff)
downloadpoky-287838f419e65ae60e0ec2cf8a99289fffd735a7.tar.gz
ffmpeg: fix CVE-2025-25473
FFmpeg git master before commit c08d30 was discovered to contain a NULL pointer dereference via the component libavformat/mov.c. (From OE-Core rev: abc6b3180b87c665ff04204b7163d1f074d99747) 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-25473.patch36
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25473.patch b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25473.patch
new file mode 100644
index 0000000000..ea619025d1
--- /dev/null
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25473.patch
@@ -0,0 +1,36 @@
1From c08d300481b8ebb846cd43a473988fdbc6793d1b Mon Sep 17 00:00:00 2001
2From: James Almer <jamrial@gmail.com>
3Date: Fri, 17 Jan 2025 00:05:31 -0300
4Subject: [PATCH] avformat/avformat: also clear FFFormatContext packet queue
5 when closing a muxer
6
7packet_buffer is used in mux.c, and if a muxing process fails at a point where
8packets remained in said queue, they will leak.
9
10Fixes ticket #11419
11
12Signed-off-by: James Almer <jamrial@gmail.com>
13
14CVE: CVE-2025-25473
15
16Upstream-Status: Backport [https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/c08d300481b8ebb846cd43a473988fdbc6793d1b]
17
18Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
19---
20 libavformat/avformat.c | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/libavformat/avformat.c b/libavformat/avformat.c
24index 5b8bb78..73f31cd 100644
25--- a/libavformat/avformat.c
26+++ b/libavformat/avformat.c
27@@ -138,6 +138,7 @@ void avformat_free_context(AVFormatContext *s)
28 av_dict_free(&si->id3v2_meta);
29 av_packet_free(&si->pkt);
30 av_packet_free(&si->parse_pkt);
31+ avpriv_packet_list_free(&si->packet_buffer);
32 av_freep(&s->streams);
33 ff_flush_packet_queue(s);
34 av_freep(&s->url);
35--
362.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 91ee6c6b0d..cb6a50401b 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb
@@ -47,6 +47,7 @@ SRC_URI = " \
47 file://CVE-2024-36618.patch \ 47 file://CVE-2024-36618.patch \
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" 51"
51 52
52SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" 53SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968"