package/libvncserver: security bump to version 0.9.13
PATCH 1/1 package/libvncserver: security bump to version 0.9.13
- Drop all patches (already in version)
- Fix CVE-2018-21247: An issue was discovered in LibVNCServer before 0.9.13. There is an information leak (of uninitialized memory contents) in the libvncclient/rfbproto.c ConnectToRFBRepeater function.
- Fix CVE-2019-20839: libvncclient/sockets.c in LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.
- Fix CVE-2019-20840: An issue was discovered in LibVNCServer before 0.9.13. libvncserver/ws_decode.c can lead to a crash because of unaligned accesses in hybiReadAndDecode.
- Fix CVE-2020-14396: An issue was discovered in LibVNCServer before 0.9.13. libvncclient/tls_openssl.c has a NULL pointer dereference.
- Fix CVE-2020-14397: An issue was discovered in LibVNCServer before 0.9.13. libvncserver/rfbregion.c has a NULL pointer dereference.
- Fix CVE-2020-14398: An issue was discovered in LibVNCServer before 0.9.13. An improperly closed TCP connection causes an infinite loop in libvncclient/sockets.c.
- Fix CVE-2020-14399: An issue was discovered in LibVNCServer before 0.9.13. Byte-aligned data is accessed through uint32_t pointers in libvncclient/rfbproto.c.
- Fix CVE-2020-14400: An issue was discovered in LibVNCServer before 0.9.13. Byte-aligned data is accessed through uint16_t pointers in libvncserver/translate.c.
- Fix CVE-2020-14401: An issue was discovered in LibVNCServer before 0.9.13. libvncserver/scale.c has a pixel_value integer overflow.
- Fix CVE-2020-14402: An issue was discovered in LibVNCServer before 0.9.13. libvncserver/corre.c allows out-of-bounds access via encodings.
- Fix CVE-2020-14403: An issue was discovered in LibVNCServer before 0.9.13. libvncserver/hextile.c allows out-of-bounds access via encodings.
- Fix CVE-2020-14404: An issue was discovered in LibVNCServer before 0.9.13. libvncserver/rre.c allows out-of-bounds access via encodings.
- Fix CVE-2020-14405: An issue was discovered in LibVNCServer before 0.9.13. libvncclient/rfbproto.c does not limit TextChat size.
--- ...1-CMakeLists.txt-fix-build-without-C.patch | 33 ------------ ...lient-server-.pc.cmakein-remove-zlib.patch | 45 ---------------- ...-in-rfbProcessFileTransferReadBuffer.patch | 47 ---------------- ...on-t-leak-stack-memory-to-the-remote.patch | 26 --------- ...on-t-build-tight.c-without-png-or-zl.patch | 54 ------------------- ...rsor-limit-width-height-input-values.patch | 40 -------------- package/libvncserver/libvncserver.hash | 2 +- package/libvncserver/libvncserver.mk | 11 +--- 8 files changed, 2 insertions(+), 256 deletions(-) delete mode 100644 package/libvncserver/0001-CMakeLists.txt-fix-build-without-C.patch delete mode 100644 package/libvncserver/0002-libvnc-client-server-.pc.cmakein-remove-zlib.patch delete mode 100644 package/libvncserver/0003-Limit-lenght-to-INT_MAX-bytes-in-rfbProcessFileTransferReadBuffer.patch delete mode 100644 package/libvncserver/0004-rfbserver-don-t-leak-stack-memory-to-the-remote.patch delete mode 100644 package/libvncserver/0005-CMakeLists.txt-don-t-build-tight.c-without-png-or-zl.patch delete mode 100644 package/libvncserver/0006-libvncclient-cursor-limit-width-height-input-values.patch
package/libvncserver/0001-CMakeLists.txt-fix-build-without-C.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 868f0a9fa60bb45ee6cf762f323c5b3964b2ee69 Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Sun, 23 Jun 2019 10:18:59 +0200 -Subject: [PATCH] CMakeLists.txt: fix build without C++ - -Specify that libvncserver is a C project file otherwise build will fail -if no C++ compiler is found by cmake - -Fixes: - - http://autobuild.buildroot.org/results/16aaa4e86a2dbf1acf95f10d5131b0f7b8a3d61a - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Upstream status: https://github.com/LibVNC/libvncserver/pull/317] ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 0d3b4dc..ad609ae 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -1,7 +1,7 @@ - cmake_minimum_required(VERSION 3.4) - cmake_policy(SET CMP0037 NEW) - --project(LibVNCServer) -+project(LibVNCServer C) - include(CheckFunctionExists) - include(CheckSymbolExists) - include(CheckIncludeFile) --- -2.20.1 -
package/libvncserver/0002-libvnc-client-server-.pc.cmakein-remove-zlib.patch deleted +0 -45
45 lines not on this page · raw message
package/libvncserver/0003-Limit-lenght-to-INT_MAX-bytes-in-rfbProcessFileTransferReadBuffer.patch deleted +0 -47
47 lines not on this page · raw message
package/libvncserver/0004-rfbserver-don-t-leak-stack-memory-to-the-remote.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From d01e1bb4246323ba6fcee3b82ef1faa9b1dac82a Mon Sep 17 00:00:00 2001 -From: Christian Beier <[email protected]> -Date: Mon, 19 Aug 2019 22:32:25 +0200 -Subject: [PATCH] rfbserver: don't leak stack memory to the remote - -Thanks go to Pavel Cheremushkin of Kaspersky for reporting. -[Retrieved from: -https://github.com/LibVNC/libvncserver/commit/d01e1bb4246323ba6fcee3b82ef1faa9b1dac82a] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - libvncserver/rfbserver.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c -index 3bacc891..310e5487 100644 ---- a/libvncserver/rfbserver.c -+++ b/libvncserver/rfbserver.c -@@ -3724,6 +3724,8 @@ rfbSendServerCutText(rfbScreenInfoPtr rfbScreen,char *str, int len) - rfbServerCutTextMsg sct; - rfbClientIteratorPtr iterator; - -+ memset((char *)&sct, 0, sizeof(sct)); -+ - iterator = rfbGetClientIterator(rfbScreen); - while ((cl = rfbClientIteratorNext(iterator)) != NULL) { - sct.type = rfbServerCutText;
package/libvncserver/0005-CMakeLists.txt-don-t-build-tight.c-without-png-or-zl.patch deleted +0 -54
54 lines not on this page · raw message
package/libvncserver/0006-libvncclient-cursor-limit-width-height-input-values.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 54220248886b5001fbbb9fa73c4e1a2cb9413fed Mon Sep 17 00:00:00 2001 -From: Christian Beier <[email protected]> -Date: Sun, 17 Nov 2019 17:18:35 +0100 -Subject: [PATCH] libvncclient/cursor: limit width/height input values - -Avoids a possible heap overflow reported by Pavel Cheremushkin -<[email protected]>. - -re #275 - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieved from: -https://github.com/LibVNC/libvncserver/commit/54220248886b5001fbbb9fa73c4e1a2cb9413fed] ---- - libvncclient/cursor.c | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/libvncclient/cursor.c b/libvncclient/cursor.c -index 67f45726..40ffb3b0 100644 ---- a/libvncclient/cursor.c -+++ b/libvncclient/cursor.c -@@ -28,6 +28,8 @@ - #define OPER_SAVE 0 - #define OPER_RESTORE 1 - -+#define MAX_CURSOR_SIZE 1024 -+ - #define RGB24_TO_PIXEL(bpp,r,g,b) \ - ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \ - << client->format.redShift | \ -@@ -54,6 +56,9 @@ rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width, int h - if (width * height == 0) - return TRUE; - -+ if (width >= MAX_CURSOR_SIZE || height >= MAX_CURSOR_SIZE) -+ return FALSE; -+ - /* Allocate memory for pixel data and temporary mask data. */ - if(client->rcSource) - free(client->rcSource);
package/libvncserver/libvncserver.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed: -sha256 33cbbb4e15bb390f723c311b323cef4a43bcf781984f92d92adda3243a116136 LibVNCServer-0.9.12.tar.gz +sha256 0ae5bb9175dc0a602fe85c1cf591ac47ee5247b87f2bf164c16b05f87cbfa81a LibVNCServer-0.9.13.tar.gz sha256 4d23c8c814e5baf007d854f01d8502e77dc56a41144934e003fb32c4e052d20f COPYING
package/libvncserver/libvncserver.mk +1 -10
@@ -4,7 +4,7 @@ # ################################################################################ -LIBVNCSERVER_VERSION = 0.9.12 +LIBVNCSERVER_VERSION = 0.9.13 LIBVNCSERVER_SOURCE = LibVNCServer-$(LIBVNCSERVER_VERSION).tar.gz LIBVNCSERVER_SITE = https://github.com/LibVNC/libvncserver/archive LIBVNCSERVER_LICENSE = GPL-2.0+
@@ -13,15 +13,6 @@ LIBVNCSERVER_INSTALL_STAGING = YES LIBVNCSERVER_DEPENDENCIES = host-pkgconf lzo LIBVNCSERVER_CONF_OPTS = -DWITH_LZO=ON -# 0003-Limit-lenght-to-INT_MAX-bytes-in-rfbProcessFileTransferReadBuffer.patch -LIBVNCSERVER_IGNORE_CVES += CVE-2018-20750 - -# 0004-rfbserver-don-t-leak-stack-memory-to-the-remote.patch -LIBVNCSERVER_IGNORE_CVES += CVE-2019-15681 - -# 0006-libvncclient-cursor-limit-width-height-input-values.patch -LIBVNCSERVER_IGNORE_CVES += CVE-2019-20788 - # only used for examples LIBVNCSERVER_CONF_OPTS += \ -DWITH_FFMPEG=OFF \
Signature · 1 line
2.26.2
Thomas Petazzoni
AppliedPATCH 1/1 package/libvncserver: security bump to version 0.9.13
Quoted 36 lines · On Fri, 26 Jun 2020 00:00:58 +0200 Fabrice Fontaine…
- Drop all patches (already in version)
- Fix CVE-2018-21247: An issue was discovered in LibVNCServer before 0.9.13. There is an information leak (of uninitialized memory contents) in thelibvncclient/rfbproto.cConnectToRFBRepeater function.
- Fix CVE-2019-20839:libvncclient/sockets.cin LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.
- Fix CVE-2019-20840: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/ws_decode.ccan lead to a crash because of unaligned accesses in hybiReadAndDecode.
- Fix CVE-2020-14396: An issue was discovered in LibVNCServer before 0.9.13.libvncclient/tls_openssl.chas a NULL pointer dereference.
- Fix CVE-2020-14397: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/rfbregion.chas a NULL pointer dereference.
- Fix CVE-2020-14398: An issue was discovered in LibVNCServer before 0.9.13. An improperly closed TCP connection causes an infinite loop inlibvncclient/sockets.c.
- Fix CVE-2020-14399: An issue was discovered in LibVNCServer before 0.9.13. Byte-aligned data is accessed throughuint32_tpointers inlibvncclient/rfbproto.c.
- Fix CVE-2020-14400: An issue was discovered in LibVNCServer before 0.9.13. Byte-aligned data is accessed throughuint16_tpointers inlibvncserver/translate.c.
- Fix CVE-2020-14401: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/scale.chas apixel_valueinteger overflow.
- Fix CVE-2020-14402: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/corre.callows out-of-bounds access via encodings.
- Fix CVE-2020-14403: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/hextile.callows out-of-bounds access via encodings.
- Fix CVE-2020-14404: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/rre.callows out-of-bounds access via encodings.
- Fix CVE-2020-14405: An issue was discovered in LibVNCServer before 0.9.13.libvncclient/rfbproto.cdoes not limit TextChat size.Signed-off-by Fabrice Fontaine <[email protected]>
Quoted 16 lines
--- ...1-CMakeLists.txt-fix-build-without-C.patch | 33 ------------ ...lient-server-.pc.cmakein-remove-zlib.patch | 45 ---------------- ...-in-rfbProcessFileTransferReadBuffer.patch | 47 ---------------- ...on-t-leak-stack-memory-to-the-remote.patch | 26 --------- ...on-t-build-tight.c-without-png-or-zl.patch | 54 ------------------- ...rsor-limit-width-height-input-values.patch | 40 -------------- package/libvncserver/libvncserver.hash | 2 +- package/libvncserver/libvncserver.mk | 11 +--- 8 files changed, 2 insertions(+), 256 deletions(-) delete mode 100644 package/libvncserver/0001-CMakeLists.txt-fix-build-without-C.patch delete mode 100644 package/libvncserver/0002-libvnc-client-server-.pc.cmakein-remove-zlib.patch delete mode 100644 package/libvncserver/0003-Limit-lenght-to-INT_MAX-bytes-in-rfbProcessFileTransferReadBuffer.patch delete mode 100644 package/libvncserver/0004-rfbserver-don-t-leak-stack-memory-to-the-remote.patch delete mode 100644 package/libvncserver/0005-CMakeLists.txt-don-t-build-tight.c-without-png-or-zl.patch delete mode 100644 package/libvncserver/0006-libvncclient-cursor-limit-width-height-input-values.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/libvncserver: security bump to version 0.9.13
In reply to Fabrice FontaineQuoted 37 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
- Drop all patches (already in version)
- Fix CVE-2018-21247: An issue was discovered in LibVNCServer before 0.9.13. There is an information leak (of uninitialized memory contents) in thelibvncclient/rfbproto.cConnectToRFBRepeater function.
- Fix CVE-2019-20839:libvncclient/sockets.cin LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.
- Fix CVE-2019-20840: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/ws_decode.ccan lead to a crash because of unaligned accesses in hybiReadAndDecode.
- Fix CVE-2020-14396: An issue was discovered in LibVNCServer before 0.9.13.libvncclient/tls_openssl.chas a NULL pointer dereference.
- Fix CVE-2020-14397: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/rfbregion.chas a NULL pointer dereference.
- Fix CVE-2020-14398: An issue was discovered in LibVNCServer before 0.9.13. An improperly closed TCP connection causes an infinite loop inlibvncclient/sockets.c.
- Fix CVE-2020-14399: An issue was discovered in LibVNCServer before 0.9.13. Byte-aligned data is accessed throughuint32_tpointers inlibvncclient/rfbproto.c.
- Fix CVE-2020-14400: An issue was discovered in LibVNCServer before 0.9.13. Byte-aligned data is accessed throughuint16_tpointers inlibvncserver/translate.c.
- Fix CVE-2020-14401: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/scale.chas apixel_valueinteger overflow.
- Fix CVE-2020-14402: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/corre.callows out-of-bounds access via encodings.
- Fix CVE-2020-14403: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/hextile.callows out-of-bounds access via encodings.
- Fix CVE-2020-14404: An issue was discovered in LibVNCServer before 0.9.13.libvncserver/rre.callows out-of-bounds access via encodings.
- Fix CVE-2020-14405: An issue was discovered in LibVNCServer before 0.9.13.libvncclient/rfbproto.cdoes not limit TextChat size.
Quoted 1 line
Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2020.02.x and 2020.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard