summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2023-09-12 19:51:41 +0800
committerGyorgy Sarvari <skandigraun@gmail.com>2025-10-01 19:40:58 +0200
commitb78a651f68efeabfd14389d5ac68c221efd45481 (patch)
tree095b55b89ace7d72017d5ccd557a05881689a1cf
parentdd4360e0d873783a681e11f630fd4b4cea196184 (diff)
downloadmeta-openembedded-b78a651f68efeabfd14389d5ac68c221efd45481.tar.gz
libsdl: fix CVE-2022-34568
CVE-2022-34568 affected From (including) 1.2.1 Up to (including) 1.2.15 Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 49c97b4eefa6efc87f023c07ce6fbb7a93c79a0f) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/CVE-2022-34568.patch28
-rw-r--r--meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb1
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/CVE-2022-34568.patch b/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/CVE-2022-34568.patch
new file mode 100644
index 0000000000..7561300cb3
--- /dev/null
+++ b/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/CVE-2022-34568.patch
@@ -0,0 +1,28 @@
1CVE: CVE-2022-34568
2Upstream-Status: Backport [https://github.com/libsdl-org/SDL-1.2/commit/d7e00208738a0bc6af302723fe64908ac35b777b ]
3Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
4
5From d7e00208738a0bc6af302723fe64908ac35b777b Mon Sep 17 00:00:00 2001
6From: Ozkan Sezer <sezeroz@gmail.com>
7Date: Sat, 18 Jun 2022 14:55:00 +0300
8Subject: [PATCH] SDL_x11yuv.c: fix possible use-after-free
9
10Fixes: https://github.com/libsdl-org/SDL-1.2/issues/863
11---
12 src/video/x11/SDL_x11yuv.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/video/x11/SDL_x11yuv.c b/src/video/x11/SDL_x11yuv.c
16index 62698dfd9..0d5754e3e 100644
17--- a/src/video/x11/SDL_x11yuv.c
18+++ b/src/video/x11/SDL_x11yuv.c
19@@ -374,8 +374,8 @@ SDL_Overlay *X11_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, S
20 #ifdef PITCH_WORKAROUND
21 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) {
22 /* Ajust overlay width according to pitch */
23- XFree(hwdata->image);
24 width = hwdata->image->pitches[0] / bpp;
25+ XFree(hwdata->image);
26 hwdata->image = SDL_NAME(XvCreateImage)(GFX_Display, xv_port, format,
27 0, width, height);
28 }
diff --git a/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb b/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb
index 4ec0dc6ca3..b7438bb423 100644
--- a/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb
+++ b/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb
@@ -28,6 +28,7 @@ SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
28 file://CVE-2019-7638.patch \ 28 file://CVE-2019-7638.patch \
29 file://CVE-2019-7576.patch \ 29 file://CVE-2019-7576.patch \
30 file://CVE-2019-13616.patch \ 30 file://CVE-2019-13616.patch \
31 file://CVE-2022-34568.patch \
31 " 32 "
32 33
33UPSTREAM_CHECK_REGEX = "SDL-(?P<pver>\d+(\.\d+)+)\.tar" 34UPSTREAM_CHECK_REGEX = "SDL-(?P<pver>\d+(\.\d+)+)\.tar"