CVE-2026-142107: Gtk-vnc: integer overflow in cursor handling leads to heap buffer overflow
A flaw was found in gtk-vnc. A malicious Virtual Network Computing (VNC) server can exploit an integer overflow vulnerability when processing server-sent cursor data during a client connection. This issue causes an undersized memory buffer to be allocated, leading to a heap-based buffer overflow that can result in a Denial of Service (DoS) or potential memory corruption on the client system.
Other sources
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.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
Which client connections are exposed?
Any gtk-vnc client connection to a malicious VNC server is exposed because supported cursor encodings are negotiated automatically from a hardcoded list. The attacker does not need credentials or special client-side configuration beyond convincing the client to connect.
Which cursor encodings and releases are affected?
The xcursor and richcursor encodings are affected since release 0.2.0. The alphacursor encoding is affected since release 1.2.0.
Is the default configuration affected?
Yes. Cursor encoding negotiation occurs automatically from a hardcoded supported-encoding list, so a malicious server can trigger the issue during a client connection without requiring users to enable a special cursor option.
What is the practical impact of exploitation?
At minimum, exploitation can cause a denial of service of the gtk-vnc client. The heap buffer overflow may also result in memory corruption on the client system.