diff options
author | Peter Marko <peter.marko@siemens.com> | 2024-12-30 18:27:13 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-01-09 06:25:35 -0800 |
commit | 2bf43257229bf78ec6c8afd0cdf5fa93cd7d1157 (patch) | |
tree | 52912b82023d1ed7782196e3f172cbea4ef2690b /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0021-matroskademux-Put-a-copy-of-the-codec-data-into-the-.patch | |
parent | 144b7586d124aec1ab6715282492ebca07fa2e51 (diff) | |
download | poky-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-.patch | 44 |
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 @@ | |||
1 | From 98e4356be7afa869373f96b4e8ca792c5f9707ee Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Wed, 9 Oct 2024 11:52:52 -0400 | ||
4 | Subject: [PATCH 7/7] matroskademux: Put a copy of the codec data into the | ||
5 | A_MS/ACM caps | ||
6 | |||
7 | The original codec data buffer is owned by matroskademux and does not | ||
8 | necessarily live as long as the caps. | ||
9 | |||
10 | Thanks to Antonio Morales for finding and reporting the issue. | ||
11 | |||
12 | Fixes GHSL-2024-280 | ||
13 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3894 | ||
14 | |||
15 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8108> | ||
16 | |||
17 | CVE: CVE-2024-47540 | ||
18 | CVE: CVE-2024-47601 | ||
19 | CVE: CVE-2024-47602 | ||
20 | CVE: CVE-2024-47603 | ||
21 | CVE: CVE-2024-47834 | ||
22 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/98e4356be7afa869373f96b4e8ca792c5f9707ee] | ||
23 | Signed-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 | |||
28 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
29 | index 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 | -- | ||
43 | 2.30.2 | ||
44 | |||