diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2025-01-05 11:13:16 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-01-09 08:41:04 -0800 |
| commit | 14b40b2a32e3ff25b92e77600861a4e840423361 (patch) | |
| tree | 5d8e7993bb00149d62fc7e521e6849be7cd3844f /meta | |
| parent | 587c7a3acccf1f59287e27299d04db15065939b2 (diff) | |
| download | poky-14b40b2a32e3ff25b92e77600861a4e840423361.tar.gz | |
gstreamer1.0-plugins-good: Fix CVE-2024-47613
Upstream: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8041
(From OE-Core rev: ffabed7c5cbfa1109e43390a4d36b38323cb7425)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2024-47613.patch | 53 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.7.bb | 1 |
2 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2024-47613.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2024-47613.patch new file mode 100644 index 0000000000..d60086deb4 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/CVE-2024-47613.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | From 1d1c9d63be51d85f9b80f0c227d4b3469fee2534 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> | ||
| 3 | Date: Wed, 2 Oct 2024 14:44:21 +0300 | ||
| 4 | Subject: [PATCH] gdkpixbufdec: Check if initializing the video info actually | ||
| 5 | succeeded | ||
| 6 | |||
| 7 | Otherwise a 0-byte buffer would be allocated, which gives NULL memory when | ||
| 8 | mapped. | ||
| 9 | |||
| 10 | Thanks to Antonio Morales for finding and reporting the issue. | ||
| 11 | |||
| 12 | Fixes GHSL-2024-118 | ||
| 13 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3876 | ||
| 14 | |||
| 15 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8041> | ||
| 16 | |||
| 17 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/1d1c9d63be51d85f9b80f0c227d4b3469fee2534] | ||
| 18 | CVE: CVE-2024-47613 | ||
| 19 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 20 | --- | ||
| 21 | .../gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufdec.c | 9 ++++++++- | ||
| 22 | 1 file changed, 8 insertions(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/subprojects/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufdec.c b/subprojects/gst-plugins-good/ext/gdk_pixbuf/gstgdkpixbufdec.c | ||
| 25 | index 5482998c0d60..de5f05496466 100644 | ||
| 26 | --- a/ext/gdk_pixbuf/gstgdkpixbufdec.c | ||
| 27 | +++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c | ||
| 28 | @@ -322,7 +322,8 @@ gst_gdk_pixbuf_dec_flush (GstGdkPixbufDec * filter) | ||
| 29 | |||
| 30 | |||
| 31 | gst_video_info_init (&info); | ||
| 32 | - gst_video_info_set_format (&info, fmt, width, height); | ||
| 33 | + if (!gst_video_info_set_format (&info, fmt, width, height)) | ||
| 34 | + goto format_not_supported; | ||
| 35 | info.fps_n = filter->in_fps_n; | ||
| 36 | info.fps_d = filter->in_fps_d; | ||
| 37 | caps = gst_video_info_to_caps (&info); | ||
| 38 | @@ -384,6 +385,12 @@ channels_not_supported: | ||
| 39 | ("%d channels not supported", n_channels)); | ||
| 40 | return GST_FLOW_ERROR; | ||
| 41 | } | ||
| 42 | +format_not_supported: | ||
| 43 | + { | ||
| 44 | + GST_ELEMENT_ERROR (filter, STREAM, DECODE, (NULL), | ||
| 45 | + ("%d channels with %dx%d not supported", n_channels, width, height)); | ||
| 46 | + return GST_FLOW_ERROR; | ||
| 47 | + } | ||
| 48 | no_buffer: | ||
| 49 | { | ||
| 50 | GST_DEBUG ("Failed to create outbuffer - %s", gst_flow_get_name (ret)); | ||
| 51 | -- | ||
| 52 | GitLab | ||
| 53 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.7.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.7.bb index ab14dea58d..828b5f1083 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.7.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.7.bb | |||
| @@ -28,6 +28,7 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-go | |||
| 28 | file://CVE-2024-47540_47601_47602_47603_47834-6.patch \ | 28 | file://CVE-2024-47540_47601_47602_47603_47834-6.patch \ |
| 29 | file://CVE-2024-47540_47601_47602_47603_47834-7.patch \ | 29 | file://CVE-2024-47540_47601_47602_47603_47834-7.patch \ |
| 30 | file://CVE-2024-47606.patch \ | 30 | file://CVE-2024-47606.patch \ |
| 31 | file://CVE-2024-47613.patch \ | ||
| 31 | " | 32 | " |
| 32 | 33 | ||
| 33 | SRC_URI[sha256sum] = "599f093cc833a1e346939ab6e78a3f8046855b6da13520aae80dd385434f4ab2" | 34 | SRC_URI[sha256sum] = "599f093cc833a1e346939ab6e78a3f8046855b6da13520aae80dd385434f4ab2" |
