Vulnerabilities / CVE-2023-6816

critical

CVE-2023-6816

xorg-x11-server: Heap buffer overflow in DeviceFocusEvent and ProcXIQueryPointer

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, CBL-Mariner. Rated lower by Red Hat (high), Amazon (high), Rocky Linux (high), AlmaLinux (medium), Oracle (medium), Ubuntu (medium).

Description

A flaw was found in X.Org server. Both DeviceFocusEvent and the XIQueryPointer reply contain a bit for each logical button currently down. Buttons can be arbitrarily mapped to any value up to 255, but the X.Org Server was only allocating space for the device's particular number of buttons, leading to a heap overflow if a bigger value was used.

Affected packages and fixed versions

SourcePackageFixed in
CBL-Mariner 2.0xorg-x11-server0:1.20.10-10.cm2
alma 8tigervnc, tigervnc-icons, tigervnc-license and 5 more1.13.1-2.el8_9.7.alma.1 and 1 more
alma 9tigervnc, tigervnc-icons, tigervnc-license and 13 more1.13.1-3.el9_3.6.alma.1 and 2 more
alpine 3.19xorg-server, xwayland21.1.11-r0 and 1 more
alpine 3.20xorg-server, xwayland21.1.11-r0 and 1 more
alpine 3.21xorg-server, xwayland21.1.11-r0 and 1 more
alpine 3.22xorg-server, xwayland21.1.11-r0 and 1 more
alpine 3.23xorg-server, xwayland21.1.11-r0 and 1 more
alpine 3.24xorg-server, xwayland21.1.11-r0 and 1 more
alpine edgexorg-server, xwayland21.1.11-r0 and 1 more
amazon linux 1xorg-x11-server-Xdmx, xorg-x11-server-Xephyr, xorg-x11-server-Xnest and 6 more1.17.4-18.56.amzn1
amazon linux 2xorg-x11-server-Xdmx, xorg-x11-server-Xephyr, xorg-x11-server-Xnest and 7 more1.20.4-22.amzn2.0.4
Show all 193 entries from 49 sources
SourcePackageFixed in
CBL-Mariner 2.0xorg-x11-server0:1.20.10-10.cm2
alma 8tigervnc1.13.1-2.el8_9.7.alma.1
alma 8tigervnc-icons1.13.1-2.el8_9.7.alma.1
alma 8tigervnc-license1.13.1-2.el8_9.7.alma.1
alma 8tigervnc-selinux1.13.1-2.el8_9.7.alma.1
alma 8tigervnc-server1.13.1-2.el8_9.7.alma.1
alma 8tigervnc-server-minimal1.13.1-2.el8_9.7.alma.1
alma 8tigervnc-server-module1.13.1-2.el8_9.7.alma.1
alma 8xorg-x11-server-Xwayland21.1.3-15.el8
alma 9tigervnc1.13.1-3.el9_3.6.alma.1
alma 9tigervnc-icons1.13.1-3.el9_3.6.alma.1
alma 9tigervnc-license1.13.1-3.el9_3.6.alma.1
alma 9tigervnc-selinux1.13.1-3.el9_3.6.alma.1
alma 9tigervnc-server1.13.1-3.el9_3.6.alma.1
alma 9tigervnc-server-minimal1.13.1-3.el9_3.6.alma.1
alma 9tigervnc-server-module1.13.1-3.el9_3.6.alma.1
alma 9xorg-x11-server-Xdmx1.20.11-24.el9
alma 9xorg-x11-server-Xephyr1.20.11-24.el9
alma 9xorg-x11-server-Xnest1.20.11-24.el9
alma 9xorg-x11-server-Xorg1.20.11-24.el9
alma 9xorg-x11-server-Xvfb1.20.11-24.el9
alma 9xorg-x11-server-Xwayland22.1.9-5.el9
alma 9xorg-x11-server-common1.20.11-24.el9
alma 9xorg-x11-server-devel1.20.11-24.el9
alma 9xorg-x11-server-source1.20.11-24.el9
alpine 3.19xorg-server21.1.11-r0
alpine 3.19xwayland23.2.4-r0
alpine 3.20xorg-server21.1.11-r0
alpine 3.20xwayland23.2.4-r0
alpine 3.21xorg-server21.1.11-r0
alpine 3.21xwayland23.2.4-r0
alpine 3.22xorg-server21.1.11-r0
alpine 3.22xwayland23.2.4-r0
alpine 3.23xorg-server21.1.11-r0
alpine 3.23xwayland23.2.4-r0
alpine 3.24xorg-server21.1.11-r0
alpine 3.24xwayland23.2.4-r0
alpine edgexorg-server21.1.11-r0
alpine edgexwayland23.2.4-r0
amazon linux 1xorg-x11-server-Xdmx1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-Xephyr1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-Xnest1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-Xorg1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-Xvfb1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-common1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-debuginfo1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-devel1.17.4-18.56.amzn1
amazon linux 1xorg-x11-server-source1.17.4-18.56.amzn1
amazon linux 2xorg-x11-server-Xdmx1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-Xephyr1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-Xnest1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-Xorg1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-Xvfb1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-Xwayland1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-common1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-debuginfo1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-devel1.20.4-22.amzn2.0.4
amazon linux 2xorg-x11-server-source1.20.4-22.amzn2.0.4
amazon linux 2023xorg-x11-server-Xdmx1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xdmx-debuginfo1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xephyr1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xephyr-debuginfo1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xnest1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xnest-debuginfo1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xorg1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xorg-debuginfo1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xvfb1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-Xvfb-debuginfo1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-common1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-debuginfo1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-debugsource1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-devel1.20.14-30.amzn2023.0.1
amazon linux 2023xorg-x11-server-source1.20.14-30.amzn2023.0.1
chainguardxorg-server21.1.10-r5
debian 10xorg-server2:1.20.4-1+deb10u13
debian 11xorg-server2:1.20.11-1+deb11u11
debian 12xorg-server2:21.1.7-3+deb12u5
debian 12xwaylandno fix listed
debian 13xorg-server2:21.1.11-1
debian 13xwayland2:23.2.4-1
debian 14xorg-server2:21.1.11-1
debian 14xwayland2:23.2.4-1
echoxorg-server2:21.1.7-3+deb12u5
echoxwayland2:23.2.4-1
Oracle Linux 7tigervnc1.8.0-31.0.1.el7_9
Oracle Linux 7tigervnc-icons1.8.0-31.0.1.el7_9
Oracle Linux 7tigervnc-license1.8.0-31.0.1.el7_9
Oracle Linux 7tigervnc-server1.8.0-31.0.1.el7_9
Oracle Linux 7tigervnc-server-applet1.8.0-31.0.1.el7_9
Oracle Linux 7tigervnc-server-minimal1.8.0-31.0.1.el7_9
Oracle Linux 7tigervnc-server-module1.8.0-31.0.1.el7_9
Oracle Linux 7xorg-x11-server-Xdmx1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-Xephyr1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-Xnest1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-Xorg1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-Xvfb1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-Xwayland1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-common1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-devel1.20.4-27.el7_9
Oracle Linux 7xorg-x11-server-source1.20.4-27.el7_9
Oracle Linux 8tigervnc1.13.1-2.el8_9.7
Oracle Linux 8tigervnc-icons1.13.1-2.el8_9.7
Oracle Linux 8tigervnc-license1.13.1-2.el8_9.7
Oracle Linux 8tigervnc-selinux1.13.1-2.el8_9.7
Oracle Linux 8tigervnc-server1.13.1-2.el8_9.7
Oracle Linux 8tigervnc-server-minimal1.13.1-2.el8_9.7
Oracle Linux 8tigervnc-server-module1.13.1-2.el8_9.7
Oracle Linux 8xorg-x11-server-Xwayland21.1.3-15.el8
Oracle Linux 9tigervnc1.13.1-3.el9_3.6
Oracle Linux 9tigervnc-icons1.13.1-3.el9_3.6
Oracle Linux 9tigervnc-license1.13.1-3.el9_3.6
Oracle Linux 9tigervnc-selinux1.13.1-3.el9_3.6
Oracle Linux 9tigervnc-server1.13.1-3.el9_3.6
Oracle Linux 9tigervnc-server-minimal1.13.1-3.el9_3.6
Oracle Linux 9tigervnc-server-module1.13.1-3.el9_3.6
Oracle Linux 9xorg-x11-server-Xdmx1.20.11-24.el9
Oracle Linux 9xorg-x11-server-Xephyr1.20.11-24.el9
Oracle Linux 9xorg-x11-server-Xnest1.20.11-24.el9
Oracle Linux 9xorg-x11-server-Xorg1.20.11-24.el9
Oracle Linux 9xorg-x11-server-Xvfb1.20.11-24.el9
Oracle Linux 9xorg-x11-server-Xwayland22.1.9-5.el9
Oracle Linux 9xorg-x11-server-common1.20.11-24.el9
Oracle Linux 9xorg-x11-server-devel1.20.11-24.el9
Oracle Linux 9xorg-x11-server-source1.20.11-24.el9
rapidfort amazon linux 2023xorg-x11-server-Xdmx1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-Xephyr1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-Xnest1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-Xorg1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-Xvfb1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-common1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-devel1.20.14-30.amzn2023.0.1
rapidfort amazon linux 2023xorg-x11-server-source1.20.14-30.amzn2023.0.1
rapidfort debian 12xwayland2:23.2.4-1
rapidfort debian 13xwayland2:23.2.4-1
rapidfort Oracle Linux 9tigervnc0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9tigervnc-icons0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9tigervnc-license0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9tigervnc-selinux0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9tigervnc-server0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9tigervnc-server-minimal0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9tigervnc-server-module0:1.13.1-3.el9_3.6
rapidfort Oracle Linux 9xorg-x11-server-Xdmx0:1.20.11-24.el9
rapidfort Oracle Linux 9xorg-x11-server-Xephyr0:1.20.11-24.el9
rapidfort Oracle Linux 9xorg-x11-server-Xnest0:1.20.11-24.el9
rapidfort Oracle Linux 9xorg-x11-server-Xorg0:1.20.11-24.el9
rapidfort Oracle Linux 9xorg-x11-server-Xvfb0:1.20.11-24.el9
rapidfort Oracle Linux 9xorg-x11-server-Xwayland0:22.1.9-5.el9
rapidfort Oracle Linux 9xorg-x11-server-common0:1.20.11-24.el9
rapidfort ubuntu 20.04xwayland2:22.1.1-1ubuntu0.10
rapidfort ubuntu 22.04xwayland2:22.1.1-1ubuntu0.10
rapidfort ubuntu 24.04xwayland2:22.1.1-1ubuntu0.10
Red Hatxorg-x11-serverno fix listed
Red Hatxorg-x11-server-Xdmxno fix listed
Red Hatxorg-x11-server-Xephyrno fix listed
Red Hatxorg-x11-server-Xnestno fix listed
Red Hatxorg-x11-server-Xorgno fix listed
Red Hatxorg-x11-server-Xvfbno fix listed
Red Hatxorg-x11-server-commonno fix listed
Red Hatxorg-x11-server-develno fix listed
Red Hatxorg-x11-server-sourceno fix listed
rocky 8tigervnc0.0.0
rocky 8tigervnc-icons1.13.1-2.el8_9.7
rocky 8tigervnc-license1.13.1-2.el8_9.7
rocky 8tigervnc-selinux1.13.1-2.el8_9.7
rocky 8tigervnc-server0.0.0
rocky 8tigervnc-server-minimal0.0.0
rocky 8tigervnc-server-module0.0.0
root.io debian 11rootio-xorg-server2:1.20.11-1+deb11u11
root.io debian 12rootio-xorg-server2:21.1.7-3+deb12u5
ubuntu 14.04-ESMxorg-server2:1.15.1-0ubuntu2.11+esm9
ubuntu 16.04-ESMxorg-server2:1.18.4-0ubuntu0.12+esm9
ubuntu 18.04-ESMxorg-server2:1.19.6-1ubuntu4.15+esm4
ubuntu 20.04xorg-server2:1.20.13-1ubuntu1~20.04.14
ubuntu 20.04-ESMxorg-server2:1.20.13-1ubuntu1~20.04.14
ubuntu 22.04xorg-server2:21.1.4-2ubuntu1.7~22.04.7
ubuntu 22.04xwayland2:22.1.1-1ubuntu0.10
ubuntu 23.04xorg-server2:21.1.7-1ubuntu3.6
ubuntu 23.04xwayland2:22.1.8-1ubuntu1.4
ubuntu 23.10xorg-server2:21.1.7-3ubuntu2.6
ubuntu 23.10xwayland2:23.2.0-1ubuntu0.4
ubuntu 24.04xorg-server2:21.1.11-1ubuntu1
ubuntu 24.04xwayland2:23.2.4-1
ubuntu 24.10xorg-server2:21.1.11-1ubuntu1
ubuntu 24.10xwayland2:23.2.4-1
ubuntu 25.04xorg-server2:21.1.11-1ubuntu1
ubuntu 25.04xwayland2:23.2.4-1
ubuntu 25.10xorg-server2:21.1.11-1ubuntu1
ubuntu 25.10xwayland2:23.2.4-1
ubuntu 26.04xorg-server2:21.1.11-1ubuntu1
ubuntu 26.04xwayland2:23.2.4-1
ubuntu 26.10xorg-server2:21.1.11-1ubuntu1
ubuntu 26.10xwayland2:23.2.4-1
wolfixorg-server21.1.10-r5

References

All 49 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.