summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch
new file mode 100644
index 0000000000..7216d7c9d3
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0019-matroskademux-Skip-over-laces-directly-when-postproc.patch
@@ -0,0 +1,52 @@
1From effbbfd771487cc06c79d5a7e447a849884cc6cf Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3Date: Mon, 30 Sep 2024 19:06:03 +0300
4Subject: [PATCH 5/7] matroskademux: Skip over laces directly when
5 postprocessing the frame fails
6
7Otherwise NULL buffers might be handled afterwards.
8
9Thanks to Antonio Morales for finding and reporting the issue.
10
11Fixes GHSL-2024-249
12Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3865
13
14Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108>
15
16CVE: CVE-2024-47540
17CVE: CVE-2024-47601
18CVE: CVE-2024-47602
19CVE: CVE-2024-47603
20CVE: CVE-2024-47834
21Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/effbbfd771487cc06c79d5a7e447a849884cc6cf]
22Signed-off-by: Peter Marko <peter.marko@siemens.com>
23---
24 .../gst-plugins-good/gst/matroska/matroska-demux.c | 12 ++++++++++++
25 1 file changed, 12 insertions(+)
26
27diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
28index 98ed51e86a..e0a4405dce 100644
29--- a/gst/matroska/matroska-demux.c
30+++ b/gst/matroska/matroska-demux.c
31@@ -4982,6 +4982,18 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
32 if (stream->postprocess_frame) {
33 GST_LOG_OBJECT (demux, "running post process");
34 ret = stream->postprocess_frame (GST_ELEMENT (demux), stream, &sub);
35+ if (ret != GST_FLOW_OK) {
36+ gst_clear_buffer (&sub);
37+ goto next_lace;
38+ }
39+
40+ if (sub == NULL) {
41+ GST_WARNING_OBJECT (demux,
42+ "Postprocessing buffer with timestamp %" GST_TIME_FORMAT
43+ " for stream %d failed", GST_TIME_ARGS (buffer_timestamp),
44+ stream_num);
45+ goto next_lace;
46+ }
47 }
48
49 /* At this point, we have a sub-buffer pointing at data within a larger
50--
512.30.2
52