mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
Backport fixes for below CVE: CVE-2024-47538 CVE-2024-47541 CVE-2024-47542 CVE-2024-47600 CVE-2024-47607 CVE-2024-47615 CVE-2024-47835 (From OE-Core rev: a26f77ae6d98e0bf22a682fad5f4353ae257b360) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
From 7108073b5be73eb2482eb8494745962b8c0571f1 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
|
|
Date: Mon, 30 Sep 2024 21:40:44 +0300
|
|
Subject: [PATCH] ssaparse: Search for closing brace after opening brace
|
|
|
|
Otherwise removing anything between the braces leads to out of bound writes if
|
|
there is a closing brace before the first opening brace.
|
|
|
|
Thanks to Antonio Morales for finding and reporting the issue.
|
|
|
|
Fixes GHSL-2024-228
|
|
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3870
|
|
|
|
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8048>
|
|
|
|
Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/7108073b5be73eb2482eb8494745962b8c0571f1]
|
|
CVE: CVE-2024-47541
|
|
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
|
---
|
|
subprojects/gst-plugins-base/gst/subparse/gstssaparse.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/subprojects/gst-plugins-base/gst/subparse/gstssaparse.c b/subprojects/gst-plugins-base/gst/subparse/gstssaparse.c
|
|
index 42fbb42b99fe..37b892e92843 100644
|
|
--- a/gst/subparse/gstssaparse.c
|
|
+++ b/gst/subparse/gstssaparse.c
|
|
@@ -238,7 +238,7 @@ gst_ssa_parse_remove_override_codes (GstSsaParse * parse, gchar * txt)
|
|
gboolean removed_any = FALSE;
|
|
|
|
while ((t = strchr (txt, '{'))) {
|
|
- end = strchr (txt, '}');
|
|
+ end = strchr (t, '}');
|
|
if (end == NULL) {
|
|
GST_WARNING_OBJECT (parse, "Missing { for style override code");
|
|
return removed_any;
|
|
--
|
|
GitLab
|
|
|