diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2023-11-22 11:49:50 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-12-02 16:36:56 -1000 |
| commit | f8a7dbd8fb3b7e8d224f65d5ac27481b13b7db18 (patch) | |
| tree | 2d4c7f737b49d1ebabc8b35faf2e6a782bc81df0 | |
| parent | 8dc22248a8257e974e40b454474028790d0a76a1 (diff) | |
| download | poky-f8a7dbd8fb3b7e8d224f65d5ac27481b13b7db18.tar.gz | |
gstreamer1.0-plugins-bad: fix CVE-2023-44429
AV1 codec parser buffer overflow
(From OE-Core rev: 76b97dc17349419059de739b2342853219c2e4ec)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/CVE-2023-44429.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/CVE-2023-44429.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/CVE-2023-44429.patch new file mode 100644 index 0000000000..5070d6b865 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/CVE-2023-44429.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 1db83d3f745332cbda6adf954b2c53a10caa205e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Benjamin Gaignard <benjamin.gaignard@collabora.com> | ||
| 3 | Date: Wed, 4 Oct 2023 11:14:38 +0200 | ||
| 4 | Subject: [PATCH] codecparsers: av1: Clip max tile rows and cols values | ||
| 5 | |||
| 6 | Clip tile rows and cols to 64 as describe in AV1 specification. | ||
| 7 | |||
| 8 | Fixes ZDI-CAN-22226 / CVE-2023-44429 | ||
| 9 | |||
| 10 | Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3015 | ||
| 11 | |||
| 12 | Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5634> | ||
| 13 | |||
| 14 | CVE: CVE-2023-44429 | ||
| 15 | |||
| 16 | Upstream-Status: Backport | ||
| 17 | [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/1db83d3f745332cbda6adf954b2c53a10caa205e] | ||
| 18 | |||
| 19 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 20 | --- | ||
| 21 | gst-libs/gst/codecparsers/gstav1parser.c | 2 ++ | ||
| 22 | 1 file changed, 2 insertions(+) | ||
| 23 | |||
| 24 | diff --git a/gst-libs/gst/codecparsers/gstav1parser.c b/gst-libs/gst/codecparsers/gstav1parser.c | ||
| 25 | index 7b9378c..68f8a76 100644 | ||
| 26 | --- a/gst-libs/gst/codecparsers/gstav1parser.c | ||
| 27 | +++ b/gst-libs/gst/codecparsers/gstav1parser.c | ||
| 28 | @@ -2219,6 +2219,8 @@ gst_av1_parse_tile_info (GstAV1Parser * parser, GstBitReader * br, | ||
| 29 | ((parser->state.mi_cols + 31) >> 5) : ((parser->state.mi_cols + 15) >> 4); | ||
| 30 | sb_rows = seq_header->use_128x128_superblock ? ((parser->state.mi_rows + | ||
| 31 | 31) >> 5) : ((parser->state.mi_rows + 15) >> 4); | ||
| 32 | + sb_cols = MIN (GST_AV1_MAX_TILE_COLS, sb_cols); | ||
| 33 | + sb_rows = MIN (GST_AV1_MAX_TILE_ROWS, sb_rows); | ||
| 34 | sb_shift = seq_header->use_128x128_superblock ? 5 : 4; | ||
| 35 | sb_size = sb_shift + 2; | ||
| 36 | max_tile_width_sb = GST_AV1_MAX_TILE_WIDTH >> sb_size; | ||
| 37 | -- | ||
| 38 | 2.40.0 | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7.bb index fbaabda3f9..504cfce1fd 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad | |||
| 13 | file://CVE-2023-40474.patch \ | 13 | file://CVE-2023-40474.patch \ |
| 14 | file://CVE-2023-40475.patch \ | 14 | file://CVE-2023-40475.patch \ |
| 15 | file://CVE-2023-40476.patch \ | 15 | file://CVE-2023-40476.patch \ |
| 16 | file://CVE-2023-44429.patch \ | ||
| 16 | " | 17 | " |
| 17 | SRC_URI[sha256sum] = "87251beebfd1325e5118cc67774061f6e8971761ca65a9e5957919610080d195" | 18 | SRC_URI[sha256sum] = "87251beebfd1325e5118cc67774061f6e8971761ca65a9e5957919610080d195" |
| 18 | 19 | ||
