REDHAT-BUG-2588666: Integer Overflow
A flaw was found in gtk-vnc. An integer overflow when allocating memory for a server-sent cursor causes the client to allocate an undersized buffer, into which server-provided cursor data of up to tens of kilobytes is then written, overflowing the heap buffer. The xcursor and richcursor encodings are affected since release 0.2.0, and the alphacursor encoding since 1.2.0. Because cursor encodings are negotiated automatically from a hardcoded list of supported encodings, a malicious VNC server can trigger this flaw in any client connection, at minimum causing a denial of service of the client.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Any gtk-vnc client that connects to a malicious VNC server is exposed. The server can trigger the affected cursor encodings during a client connection because they are negotiated automatically from a hardcoded supported-encoding list.
Does avoiding specific cursor settings prevent exploitation?
The affected xcursor and richcursor encodings have been affected since release 0.2.0, and alphacursor since 1.2.0. The data does not identify a client configuration option to disable these automatically negotiated encodings.
What does an attacker need to exploit this flaw?
An attacker needs to operate or control a VNC server that the gtk-vnc client connects to. They can send crafted cursor data that causes an undersized allocation followed by a heap buffer overflow; denial of service of the client is the stated minimum impact.