summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2024-12-30 18:27:22 +0100
committerSteve Sakoman <steve@sakoman.com>2025-01-09 06:25:36 -0800
commit6a76806ceb38ee0e08f92693421741a012a0b846 (patch)
treef0021c35c5168530363aba6b38ce2d3245c41010 /meta/recipes-multimedia
parentcd24f9434ed740b81956bfd53d5d605154d4edc2 (diff)
downloadpoky-6a76806ceb38ee0e08f92693421741a012a0b846.tar.gz
gstreamer1.0-plugins-base: patch CVE-2024-47835
Pick commit from: * https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8039 (From OE-Core rev: e9113fafef9cb2f060c9728d1e1bebdd76baad47) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0012-subparse-Check-for-NULL-return-of-strchr-when-parsin.patch39
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb1
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0012-subparse-Check-for-NULL-return-of-strchr-when-parsin.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0012-subparse-Check-for-NULL-return-of-strchr-when-parsin.patch
new file mode 100644
index 0000000000..b778e7053b
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0012-subparse-Check-for-NULL-return-of-strchr-when-parsin.patch
@@ -0,0 +1,39 @@
1From 4c40f73b7002967e824ef34a5435282f4a0ea363 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3Date: Wed, 9 Oct 2024 11:23:47 -0400
4Subject: [PATCH] subparse: Check for NULL return of strchr() when parsing LRC
5 subtitles
6
7Thanks to Antonio Morales for finding and reporting the issue.
8
9Fixes GHSL-2024-263
10Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3892
11
12Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8039>
13
14CVE: CVE-2024-47835
15Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/4c40f73b7002967e824ef34a5435282f4a0ea363]
16Signed-off-by: Peter Marko <peter.marko@siemens.com>
17---
18 gst/subparse/gstsubparse.c | 5 +++++
19 1 file changed, 5 insertions(+)
20
21diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c
22index 8d925524a6..7d286ed318 100644
23--- a/gst/subparse/gstsubparse.c
24+++ b/gst/subparse/gstsubparse.c
25@@ -1068,6 +1068,11 @@ parse_lrc (ParserState * state, const gchar * line)
26 return NULL;
27
28 start = strchr (line, ']');
29+ // sscanf() does not check for the trailing ] but only up to the last
30+ // placeholder, so there might be no ] at the end.
31+ if (!start)
32+ return NULL;
33+
34 if (start - line == 9)
35 milli = 10;
36 else
37--
382.30.2
39
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 982389d657..05cb956815 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
@@ -18,6 +18,7 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-ba
18 file://0009-ssaparse-Don-t-use-strstr-on-strings-that-are-potent.patch \ 18 file://0009-ssaparse-Don-t-use-strstr-on-strings-that-are-potent.patch \
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 " 22 "
22SRC_URI[sha256sum] = "73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1" 23SRC_URI[sha256sum] = "73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1"
23 24