diff options
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.patch | 52 |
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 @@ | |||
1 | From effbbfd771487cc06c79d5a7e447a849884cc6cf Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Mon, 30 Sep 2024 19:06:03 +0300 | ||
4 | Subject: [PATCH 5/7] matroskademux: Skip over laces directly when | ||
5 | postprocessing the frame fails | ||
6 | |||
7 | Otherwise NULL buffers might be handled afterwards. | ||
8 | |||
9 | Thanks to Antonio Morales for finding and reporting the issue. | ||
10 | |||
11 | Fixes GHSL-2024-249 | ||
12 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3865 | ||
13 | |||
14 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
15 | |||
16 | CVE: CVE-2024-47540 | ||
17 | CVE: CVE-2024-47601 | ||
18 | CVE: CVE-2024-47602 | ||
19 | CVE: CVE-2024-47603 | ||
20 | CVE: CVE-2024-47834 | ||
21 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/effbbfd771487cc06c79d5a7e447a849884cc6cf] | ||
22 | Signed-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 | |||
27 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
28 | index 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 | -- | ||
51 | 2.30.2 | ||
52 | |||