diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-12-07 17:08:37 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-12-07 17:08:37 -0300 |
commit | 0b2353932ca872b2f50451c3823bc424f2895892 (patch) | |
tree | 5da44aaae1fde8e3e0c3f4617bb4dcb3d3c9c679 /community/x11vnc/CVE-2020-29074.patch | |
parent | 80c7996fbd94cff4f9750554bed622c7dac1119d (diff) |
community/x11vnc: fix CVE-2020-29074 and build with -fno-common
See: #12173
Diffstat (limited to 'community/x11vnc/CVE-2020-29074.patch')
-rw-r--r-- | community/x11vnc/CVE-2020-29074.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/x11vnc/CVE-2020-29074.patch b/community/x11vnc/CVE-2020-29074.patch new file mode 100644 index 00000000000..fcafb9fb79e --- /dev/null +++ b/community/x11vnc/CVE-2020-29074.patch @@ -0,0 +1,22 @@ +From 69eeb9f7baa14ca03b16c9de821f9876def7a36a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Gu=C3=A9nal=20DAVALAN?= <guenal.davalan@uca.fr> +Date: Wed, 18 Nov 2020 08:40:45 +0100 +Subject: [PATCH] scan: limit access to shared memory segments to current user + +--- + src/scan.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/scan.c b/src/scan.c +index 43e00d2..12994d5 100644 +--- a/src/scan.c ++++ b/src/scan.c +@@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h, + + #if HAVE_XSHM + shm->shmid = shmget(IPC_PRIVATE, +- xim->bytes_per_line * xim->height, IPC_CREAT | 0777); ++ xim->bytes_per_line * xim->height, IPC_CREAT | 0600); + + if (shm->shmid == -1) { + rfbErr("shmget(%s) failed.\n", name); |