diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2019-07-29 07:20:55 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-29 23:50:43 +0100 |
commit | acd46a34c4642c3aba1ea50700110a3902cdafe6 (patch) | |
tree | 437d963062b6253cf36f00359cf14375959cc4a7 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2019-9928.patch | |
parent | ecc1ac5b04f5b54dee2c0e3c7a638861b73d9203 (diff) | |
download | poky-acd46a34c4642c3aba1ea50700110a3902cdafe6.tar.gz |
gstreamer1.0-plugins-base: fix CVE-2019-9928
(From OE-Core rev: 276567b6a8e4b21dc978b352b5c715d6381867b1)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2019-9928.patch')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2019-9928.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2019-9928.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2019-9928.patch new file mode 100644 index 0000000000..0ad7245c8e --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2019-9928.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From f672277509705c4034bc92a141eefee4524d15aa Mon Sep 17 00:00:00 2001 | ||
2 | From: Tobias Ronge <tobiasr@axis.com> | ||
3 | Date: Thu, 14 Mar 2019 10:12:27 +0100 | ||
4 | Subject: [PATCH] gstrtspconnection: Security loophole making heap overflow | ||
5 | |||
6 | The former code allowed an attacker to create a heap overflow by | ||
7 | sending a longer than allowed session id in a response and including a | ||
8 | semicolon to change the maximum length. With this change, the parser | ||
9 | will never go beyond 512 bytes. | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | CVE: CVE-2019-9928 | ||
13 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
14 | --- | ||
15 | gst-libs/gst/rtsp/gstrtspconnection.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c | ||
19 | index a6755bedd..c0429064a 100644 | ||
20 | --- a/gst-libs/gst/rtsp/gstrtspconnection.c | ||
21 | +++ b/gst-libs/gst/rtsp/gstrtspconnection.c | ||
22 | @@ -2461,7 +2461,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message, | ||
23 | maxlen = sizeof (conn->session_id) - 1; | ||
24 | /* the sessionid can have attributes marked with ; | ||
25 | * Make sure we strip them */ | ||
26 | - for (i = 0; session_id[i] != '\0'; i++) { | ||
27 | + for (i = 0; i < maxlen && session_id[i] != '\0'; i++) { | ||
28 | if (session_id[i] == ';') { | ||
29 | maxlen = i; | ||
30 | /* parse timeout */ | ||
31 | -- | ||
32 | 2.21.0 | ||
33 | |||