diff options
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg/CVE-2025-25473.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 1 |
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 @@ | |||
| 1 | From c08d300481b8ebb846cd43a473988fdbc6793d1b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: James Almer <jamrial@gmail.com> | ||
| 3 | Date: Fri, 17 Jan 2025 00:05:31 -0300 | ||
| 4 | Subject: [PATCH] avformat/avformat: also clear FFFormatContext packet queue | ||
| 5 | when closing a muxer | ||
| 6 | |||
| 7 | packet_buffer is used in mux.c, and if a muxing process fails at a point where | ||
| 8 | packets remained in said queue, they will leak. | ||
| 9 | |||
| 10 | Fixes ticket #11419 | ||
| 11 | |||
| 12 | Signed-off-by: James Almer <jamrial@gmail.com> | ||
| 13 | |||
| 14 | CVE: CVE-2025-25473 | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/c08d300481b8ebb846cd43a473988fdbc6793d1b] | ||
| 17 | |||
| 18 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 19 | --- | ||
| 20 | libavformat/avformat.c | 1 + | ||
| 21 | 1 file changed, 1 insertion(+) | ||
| 22 | |||
| 23 | diff --git a/libavformat/avformat.c b/libavformat/avformat.c | ||
| 24 | index 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 | -- | ||
| 36 | 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 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 | ||
| 52 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" | 53 | SRC_URI[sha256sum] = "8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968" |
