CVE-2023-6683: Qemu: vnc: null pointer dereference in qemu_clipboard_request()

Published Dec 16, 2023
·
Updated

A flaw was found in the QEMU built-in VNC server while processing ClientCutText messages. The qemuclipboardrequest() function can be reached before vncservercuttextcaps() was called and had the chance to initialize the clipboard peer, leading to a NULL pointer dereference. This could allow a malicious authenticated VNC client to crash QEMU and trigger a denial of service.

Other sources

It can be that a client sends a VNCMSGCLIENTCUTTEXT message before sending a VNCMSGCLIENTSETENCODINGS message with VNCENCODINGCLIPBOARDEXT for configuring the clipboard extension.

This means that qemuclipboardrequest() can be reached (via vncclientcuttextext()) before vncservercuttextcaps() was called and had the chance to initialize the clipboard peer. In that case, info->owner->request is NULL instead of a function and so attempting to call it in qemuclipboardrequest() results in a segfault.

In particular, this can happen when using the KRDC (22.12.3) VNC client on Wayland. A malicious or misbehaving VNC client can crash QEMU - only after successful authentication.

Red Hat

Qemu: vnc: null pointer dereference in qemuclipboardrequest()

Microsoft

Affected Software

11 affected componentsFixes available
redhat/qemu-kvm<9.0.0
9.0.0
debian/qemu
1:5.2+dfsg-11+deb11u31:5.2+dfsg-11+deb11u21:7.2+dfsg-7+deb12u71:9.0.2+ds-21:9.1.0+ds-3
Qemu Qemu>=6.1.0<9.0.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Qemu Qemu>=6.1.0<8.2.2
Microsoft cbl2 qemu 6.2.0-24
Microsoft azl3 qemu 8.2.0-13
Microsoft cbl2 qemu 6.2.0-24
Microsoft azl3 qemu 8.2.0-16
Microsoft cbl2 qemu 6.2.0-21

Event History

Jan 12, 2024
CVE Published
via MITRE·07:01 PM
Data Sourced
via MITRE·07:01 PM
DescriptionSeverityWeakness
Aug 13, 2024
Data Sourced
via Launchpad·06:43 AM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·06:48 AM
RemedyDescriptionSeverityAffected Software
Mar 26, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2023-6683?

CVE-2023-6683 has been identified as a vulnerability leading to a NULL pointer dereference in the QEMU VNC server.

2

How do I fix CVE-2023-6683?

To fix CVE-2023-6683, update to QEMU version 9.0.0 or later, or apply the appropriate patches provided by your distribution.

3

Which versions of QEMU are affected by CVE-2023-6683?

CVE-2023-6683 affects QEMU versions before 9.0.0, including versions between 6.1.0 and 9.0.0.

4

What software is vulnerable to CVE-2023-6683?

CVE-2023-6683 impacts packages such as qemu-kvm from Red Hat and qemu from Debian.

5

What is the impact of exploiting CVE-2023-6683?

Exploiting CVE-2023-6683 may lead to unexpected application crashes due to a NULL pointer dereference within the VNC server.

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