diff options
author | Lee Chee Yang <chee.yang.lee@intel.com> | 2021-06-09 16:54:47 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-19 16:59:29 +0100 |
commit | 8bc7fc1f90eb162759e6b1f44a65cff5d91a5adf (patch) | |
tree | f3ae511ff0d08473f9b22edab2bc3c805d82e6e4 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2021-3498.patch | |
parent | e1960e5d280c8fc19eab0fc63f45926d9fce2434 (diff) | |
download | poky-8bc7fc1f90eb162759e6b1f44a65cff5d91a5adf.tar.gz |
gstreamer-plugins-good: fix CVE-2021-3497 CVE-2021-3498
(From OE-Core rev: 865ef7d3cdc6645720762153d87771c6c4da31cf)
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2021-3498.patch')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2021-3498.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2021-3498.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2021-3498.patch new file mode 100644 index 0000000000..d3de2d5014 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2021-3498.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 02174790726dd20a5c73ce2002189bf240ad4fe0 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
3 | Date: Wed, 3 Mar 2021 11:31:52 +0200 | ||
4 | Subject: [PATCH] matroskademux: Initialize track context out parameter to NULL | ||
5 | before parsing | ||
6 | |||
7 | Various error return paths don't set it to NULL and callers are only | ||
8 | checking if the pointer is NULL. As it's allocated on the stack this | ||
9 | usually contains random stack memory, and more often than not the memory | ||
10 | of a previously parsed track. | ||
11 | |||
12 | This then causes all kinds of memory corruptions further down the line. | ||
13 | |||
14 | Thanks to Natalie Silvanovich for reporting. | ||
15 | |||
16 | Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/858 | ||
17 | |||
18 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/903> | ||
19 | |||
20 | Upstream-Status: Backport [ | ||
21 | https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/commit/02174790726dd20a5c73ce2002189bf240ad4fe0?merge_request_iid=903 ] | ||
22 | CVE: CVE-2021-3498 | ||
23 | Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> | ||
24 | |||
25 | --- | ||
26 | gst/matroska/matroska-demux.c | 2 ++ | ||
27 | 1 file changed, 2 insertions(+) | ||
28 | |||
29 | diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c | ||
30 | index 4d0234743..467815986 100644 | ||
31 | --- a/gst/matroska/matroska-demux.c | ||
32 | +++ b/gst/matroska/matroska-demux.c | ||
33 | @@ -692,6 +692,8 @@ gst_matroska_demux_parse_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml, | ||
34 | |||
35 | DEBUG_ELEMENT_START (demux, ebml, "TrackEntry"); | ||
36 | |||
37 | + *dest_context = NULL; | ||
38 | + | ||
39 | /* start with the master */ | ||
40 | if ((ret = gst_ebml_read_master (ebml, &id)) != GST_FLOW_OK) { | ||
41 | DEBUG_ELEMENT_STOP (demux, ebml, "TrackEntry", ret); | ||
42 | -- | ||
43 | GitLab | ||
44 | |||