CVE-2026-142107: Gtk-vnc: integer overflow in cursor handling leads to heap buffer overflow

Published Dec 2, 2026
·
Updated

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

1 affected component
Gnome gtk-vnc>=0.2.0, >=1.2.0

Event History

Dec 2, 2026
Data Sourced
via Red Hat·01:05 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:14 PM
Data Sourced
via MITRE·05:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203