diff mbox series

[scarthgap] gstreamer1.0-plugins-base: Security fix for CVE-2026-85150

Message ID 20261124112638.93705-1-rsangam@mvista.com
State New
Headers show
Series [scarthgap] gstreamer1.0-plugins-base: Security fix for CVE-2026-85150 | expand

Commit Message

Rohini Sangam Nov. 24, 2026, 11:26 a.m. UTC
Pick patch from [1] also mentioned at Debian tracker in [2]

[1] https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/bfeda94b70b265f0969e5831580c6a793093e97f
[2] https://security-tracker.debian.org/tracker/CVE-2026-85150

Signed-off-by: Rohini Sangam <rsangam@mvista.com>
---
 .../CVE-2026-85150.patch                      | 59 +++++++++++++++++++
 .../gstreamer1.0-plugins-base_1.22.12.bb      |  1 +
 2 files changed, 60 insertions(+)
 create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2026-85150.patch
diff mbox series

Patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2026-85150.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2026-85150.patch
new file mode 100644
index 0000000000..2f9c57cb54
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/CVE-2026-85150.patch
@@ -0,0 +1,59 @@ 
+From bfeda94b70b265f0969e5831580c6a793093e97f Mon Sep 17 00:00:00 2001
+From: Matthew Waters <matthew@centricular.com>
+Date: Wed, 2 Sep 2026 16:14:23 +1000
+Subject: [PATCH] rtsp/message: fix crash when an auth value started with
+ whitespace
+
+When parsing a field like 'key= ",foo=bar' the space after the '=' would be
+considered the end of the key value pair.
+
+The '=' would be found and the key (before the '=') extracted. Then the value
+parsing would skip any initial whitespace. advancing beyond the ' '. The value
+would then be g_strndup(value, end - value). As `end < value`, This attempts to
+copy -1 bytes and fail.
+
+Fix by using the end of the item after skipping over any whitespace.
+
+Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/work_items/5278
+
+Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/12431>
+
+CVE: CVE-2026-85150
+Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/bfeda94b70b265f0969e5831580c6a793093e97f]
+
+Signed-off-by: Rohini Sangam <rsangam@mvista.com>
+---
+ gst-libs/gst/rtsp/gstrtspmessage.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/gst-libs/gst/rtsp/gstrtspmessage.c b/gst-libs/gst/rtsp/gstrtspmessage.c
+index ed62636..02ba5e5 100644
+--- a/gst-libs/gst/rtsp/gstrtspmessage.c
++++ b/gst-libs/gst/rtsp/gstrtspmessage.c
+@@ -1416,18 +1416,21 @@ parse_auth_credentials (GPtrArray * auth_credentials, const gchar * header,
+         if (eq[0] == '=') {
+           GstRTSPAuthParam *auth_param = g_new0 (GstRTSPAuthParam, 1);
+           const gchar *value;
++          const gchar *param_end;
+ 
+           /* have an actual param */
+           auth_param->name = g_strndup (header, eq - header);
+ 
+           value = eq + 1;
+           value = skip_lws (value);
+-          auth_param->value = g_strndup (value, item_end - value);
++          param_end = skip_item (value);
++
++          auth_param->value = g_strndup (value, param_end - value);
+           if (value[0] == '"')
+             decode_quoted_string (auth_param->value);
+ 
+           g_ptr_array_add (params, auth_param);
+-          header = item_end;
++          header = param_end;
+         } else {
+           /* at next scheme, header at start of it */
+           break;
+-- 
+2.44.4
+
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
index 0f60e79b35..31224a4c7c 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12.bb
@@ -23,6 +23,7 @@  SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-ba
            file://CVE-2025-47806.patch \
            file://CVE-2025-47807.patch \
            file://CVE-2026-18297.patch \
+           file://CVE-2026-85150.patch \
            "
 SRC_URI[sha256sum] = "73cfadc3a6ffe77ed974cfd6fb391c605e4531f48db21dd6b9f42b8cb69bd8c1"