summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHitendra Prajapati <hprajapati@mvista.com>2025-08-11 18:19:24 +0530
committerSteve Sakoman <steve@sakoman.com>2025-08-20 07:37:19 -0700
commitba10ae532aa6fc6079d78511cf857eff318e5872 (patch)
treed964462027f361d7056408ba39c9faa102ee08a4
parent2cc9a0249b7a5dfd70c359220840ece08b6eb495 (diff)
downloadpoky-ba10ae532aa6fc6079d78511cf857eff318e5872.tar.gz
gstreamer1.0-plugins-base: fix CVE-2025-47808
Upstream-Status: Backport from https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/6b19f117518a765a25c99d1c4b09f2838a8ed0c9 (From OE-Core rev: 2611a16cad53d2bf0cda2946678e7d31e3ffa007) Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2025-47808.patch36
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2025-47808.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2025-47808.patch
new file mode 100644
index 0000000000..5b9fefc321
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2025-47808.patch
@@ -0,0 +1,36 @@
1From 6b19f117518a765a25c99d1c4b09f2838a8ed0c9 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3Date: Thu, 8 May 2025 09:04:52 +0300
4Subject: [PATCH] tmplayer: Don't append NULL + 1 to the string buffer when
5 parsing lines without text
6
7Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4417
8Fixes CVE-2025-47808
9
10Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9132>
11
12CVE: CVE-2025-47808
13Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/6b19f117518a765a25c99d1c4b09f2838a8ed0c9]
14Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
15---
16 gst/subparse/tmplayerparse.c | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
18
19diff --git a/gst/subparse/tmplayerparse.c b/gst/subparse/tmplayerparse.c
20index 807e332..a9225d3 100644
21--- a/gst/subparse/tmplayerparse.c
22+++ b/gst/subparse/tmplayerparse.c
23@@ -125,7 +125,9 @@ tmplayer_parse_line (ParserState * state, const gchar * line, guint line_num)
24 * durations from the start times anyway, so as long as the parser just
25 * forwards state->start_time by duration after it pushes the line we
26 * are about to return it will all be good. */
27- g_string_append (state->buf, text_start + 1);
28+ if (text_start) {
29+ g_string_append (state->buf, text_start + 1);
30+ }
31 } else if (line_num > 0) {
32 GST_WARNING ("end of subtitle unit but no valid start time?!");
33 }
34--
352.50.1
36
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
index 05cb956815..44ecdc0b55 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
@@ -19,6 +19,7 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-ba
19 file://0010-id3v2-Don-t-try-parsing-extended-header-if-not-enoug.patch \ 19 file://0010-id3v2-Don-t-try-parsing-extended-header-if-not-enoug.patch \
20 file://0011-discoverer-Don-t-print-channel-layout-for-more-than-.patch \ 20 file://0011-discoverer-Don-t-print-channel-layout-for-more-than-.patch \
21 file://0012-subparse-Check-for-NULL-return-of-strchr-when-parsin.patch \ 21 file://0012-subparse-Check-for-NULL-return-of-strchr-when-parsin.patch \
22 file://CVE-2025-47808.patch \
22 " 23 "
23SRC_URI[sha256sum] = "73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1" 24SRC_URI[sha256sum] = "73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1"
24 25