summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2023-09-22 17:59:40 +0800
committerKhem Raj <raj.khem@gmail.com>2023-09-22 07:36:16 -0700
commitdbdea59838054f9c908533d486cf3c0c2897c791 (patch)
tree357f660c723aab3e38c60fe8d30a55e6df4cbd7c /meta-oe
parent44b00373094f845e71575d9d6f5c54b038f3a21a (diff)
downloadmeta-openembedded-dbdea59838054f9c908533d486cf3c0c2897c791.tar.gz
x11vnc: Fix CVE-2020-29074
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch27
-rw-r--r--meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch b/meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch
new file mode 100644
index 000000000..fbdb9123c
--- /dev/null
+++ b/meta-oe/recipes-graphics/x11vnc/files/CVE-2020-29074.patch
@@ -0,0 +1,27 @@
1CVE: CVE-2020-29074
2Upstream-Status: Backport [https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa14ca03b16c9de821f9876def7a36a ]
3Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
4
5
6From 69eeb9f7baa14ca03b16c9de821f9876def7a36a Mon Sep 17 00:00:00 2001
7From: =?UTF-8?q?Gu=C3=A9nal=20DAVALAN?= <guenal.davalan@uca.fr>
8Date: Wed, 18 Nov 2020 08:40:45 +0100
9Subject: [PATCH] scan: limit access to shared memory segments to current user
10
11---
12 src/scan.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/scan.c b/src/scan.c
16index 43e00d20..12994d52 100644
17--- a/src/scan.c
18+++ b/src/scan.c
19@@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
20
21 #if HAVE_XSHM
22 shm->shmid = shmget(IPC_PRIVATE,
23- xim->bytes_per_line * xim->height, IPC_CREAT | 0777);
24+ xim->bytes_per_line * xim->height, IPC_CREAT | 0600);
25
26 if (shm->shmid == -1) {
27 rfbErr("shmget(%s) failed.\n", name);
diff --git a/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb b/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb
index 92b3ac5f6..3633bbc26 100644
--- a/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb
+++ b/meta-oe/recipes-graphics/x11vnc/x11vnc_0.9.16.bb
@@ -11,6 +11,7 @@ PV .= "+git${SRCPV}"
11 11
12SRC_URI = "git://github.com/LibVNC/x11vnc;branch=master;protocol=https \ 12SRC_URI = "git://github.com/LibVNC/x11vnc;branch=master;protocol=https \
13 file://starting-fix.patch \ 13 file://starting-fix.patch \
14 file://CVE-2020-29074.patch \
14 " 15 "
15S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
16 17