diff options
| -rw-r--r-- | meta-oe/recipes-graphics/libvncserver/libvncserver/CVE-2020-29260.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.13.bb | 4 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/libvncserver/libvncserver/CVE-2020-29260.patch b/meta-oe/recipes-graphics/libvncserver/libvncserver/CVE-2020-29260.patch new file mode 100644 index 0000000000..c865b8e067 --- /dev/null +++ b/meta-oe/recipes-graphics/libvncserver/libvncserver/CVE-2020-29260.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 060f7b71c2ae62c2253a387efe27b0593d04a1ae Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Christian Beier <info@christianbeier.net> | ||
| 3 | Date: Sat, 21 Nov 2020 12:52:31 +0100 | ||
| 4 | Subject: [PATCH] libvncclient: free vncRec memory in rfbClientCleanup() | ||
| 5 | |||
| 6 | Otherwise we leak memory. Spotted by Ramin Farajpour Cami | ||
| 7 | <ramin.blackhat@gmail.com>, thanks! | ||
| 8 | |||
| 9 | CVE: CVE-2020-29260 | ||
| 10 | Upstream-Status: Backport [https://github.com/LibVNC/libvncserver/commit/bef41f6ec4097a8ee094f90a1b34a708fbd757ec] | ||
| 11 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 12 | --- | ||
| 13 | libvncclient/vncviewer.c | 2 ++ | ||
| 14 | 1 file changed, 2 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c | ||
| 17 | index d6b91f02..0a1bdcf6 100644 | ||
| 18 | --- a/libvncclient/vncviewer.c | ||
| 19 | +++ b/libvncclient/vncviewer.c | ||
| 20 | @@ -534,6 +534,8 @@ void rfbClientCleanup(rfbClient* client) { | ||
| 21 | client->clientData = next; | ||
| 22 | } | ||
| 23 | |||
| 24 | + free(client->vncRec); | ||
| 25 | + | ||
| 26 | if (client->sock != RFB_INVALID_SOCKET) | ||
| 27 | rfbCloseSocket(client->sock); | ||
| 28 | if (client->listenSock != RFB_INVALID_SOCKET) | ||
diff --git a/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.13.bb b/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.13.bb index 93f6951739..96cf9591b1 100644 --- a/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.13.bb +++ b/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.13.bb | |||
| @@ -44,7 +44,9 @@ FILES:libvncclient = "${libdir}/libvncclient.*" | |||
| 44 | 44 | ||
| 45 | inherit cmake | 45 | inherit cmake |
| 46 | 46 | ||
| 47 | SRC_URI = "git://github.com/LibVNC/libvncserver;branch=master;protocol=https" | 47 | SRC_URI = "git://github.com/LibVNC/libvncserver;branch=master;protocol=https \ |
| 48 | file://CVE-2020-29260.patch \ | ||
| 49 | " | ||
| 48 | SRCREV = "2aa20dad4c23c18948d3f63b33f9dfec1f837729" | 50 | SRCREV = "2aa20dad4c23c18948d3f63b33f9dfec1f837729" |
| 49 | 51 | ||
| 50 | S = "${WORKDIR}/git" | 52 | S = "${WORKDIR}/git" |
