summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2024-12-30 18:27:13 +0100
committerSteve Sakoman <steve@sakoman.com>2025-01-09 06:25:35 -0800
commit2bf43257229bf78ec6c8afd0cdf5fa93cd7d1157 (patch)
tree52912b82023d1ed7782196e3f172cbea4ef2690b /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch
parent144b7586d124aec1ab6715282492ebca07fa2e51 (diff)
downloadpoky-2bf43257229bf78ec6c8afd0cdf5fa93cd7d1157.tar.gz
gstreamer1.0-plugins-good: patch several CVEs
Pick commits from: * https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057 (From OE-Core rev: 4edd9caa9703e067167c4a185c7338c4e89f795b) Signed-off-by: Peter Marko <peter.marko@siemens.com> fixup! gstreamer1.0-plugins-good: patch CVE-2024-47540 and CVE-2024-47601 Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch
new file mode 100644
index 0000000000..371eb9da9b
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch
@@ -0,0 +1,44 @@
1From 98e4356be7afa869373f96b4e8ca792c5f9707ee Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3Date: Wed, 9 Oct 2024 11:52:52 -0400
4Subject: [PATCH 7/7] matroskademux: Put a copy of the codec data into the
5 A_MS/ACM caps
6
7The original codec data buffer is owned by matroskademux and does not
8necessarily live as long as the caps.
9
10Thanks to Antonio Morales for finding and reporting the issue.
11
12Fixes GHSL-2024-280
13Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3894
14
15Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108>
16
17CVE: CVE-2024-47540
18CVE: CVE-2024-47601
19CVE: CVE-2024-47602
20CVE: CVE-2024-47603
21CVE: CVE-2024-47834
22Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/98e4356be7afa869373f96b4e8ca792c5f9707ee]
23Signed-off-by: Peter Marko <peter.marko@siemens.com>
24---
25 gst/matroska/matroska-demux.c | 3 +--
26 1 file changed, 1 insertion(+), 2 deletions(-)
27
28diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
29index e0a4405dce..80da306731 100644
30--- a/gst/matroska/matroska-demux.c
31+++ b/gst/matroska/matroska-demux.c
32@@ -7165,8 +7165,7 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
33
34 /* 18 is the waveformatex size */
35 if (size > 18) {
36- codec_data = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY,
37- data + 18, size - 18, 0, size - 18, NULL, NULL);
38+ codec_data = gst_buffer_new_memdup (data + 18, size - 18);
39 }
40
41 if (riff_audio_fmt)
42--
432.30.2
44