Heap-based buffer overflow in LibVNCServer - CVE-2016-9941

 

Heap-based buffer overflow in LibVNCServer - CVE-2016-9941

Published: December 31, 2016 / Updated: January 2, 2017


Vulnerability identifier: #VU3076
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-9941
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on vulnerable client system.

A heap-based buffer overflow vulnerability exists due to boundary error in rfbproto.c in LibVNCClient software, which is bundled with LibVNCServer. A remote attacker can trick the victim to connect to malicious VNC server, send a specially crafted FramebufferUpdate message containing a subrectangle outside of the client drawing area and trigger buffer overflow.

Successful exploitation of the vulnerability may allow an attacker to execute arbitrary code on vulnerable VNC client.

Affected software

LibVNCServer
Arch Linux
Gentoo Linux
SUSE Linux
Ubuntu
Fedora
libvncserver (Alpine package)
libvncserver

How to mitigate CVE-2016-9941


libvncserver (Alpine package) - update to 0.9.10-r2
libvncserver - addressed in versions 0.9.11-2.fc24.1, 0.9.11-2.fc25.1, 0.9.11-2.fc26

External References

Related Security Bulletins