# CVE-2023-6816: Xorg-x11-server: heap buffer overflow in devicefocusevent and procxiquerypointer

- Severity: Critical 9.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.11%, higher than 82% of CVEs (2026-12-01)
- Published: 2024-01-18T04:31:07.908Z
- Modified: 2026-11-04T21:17:28.753Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- tigervnc: no versions given (not affected: from 0:1.1.0-25.el6_10.13 before *; from 0:1.8.0-31.el7_9 before *; from 0:1.13.1-2.el8_9.7 before *; from 0:1.9.0-15.el8_2.9 before *; from 0:1.11.0-8.el8_4.8 before *; from 0:1.12.0-6.el8_6.9 before *; from 0:1.12.0-15.el8_8.7 before *; from 0:1.13.1-3.el9_3.6 before *; from 0:1.11.0-22.el9_0.8 before *; from 0:1.12.0-14.el9_2.5 before *)
- xorg-x11-server: no versions given (not affected: from 0:1.20.4-27.el7_9 before *; from 0:1.20.11-22.el8 before *; from 0:1.20.11-24.el9 before *)
- xorg-x11-server-Xwayland: no versions given (not affected: from 0:21.1.3-15.el8 before *; from 0:22.1.9-5.el9 before *)
- x.org x_server: before 21.1.11
- x.org xwayland: before 23.2.4
- fedoraproject fedora: 39
- redhat enterprise_linux_desktop: 7.0
- redhat enterprise_linux_server: 7.0
- redhat enterprise_linux_workstation: 7.0
- debian debian_linux: 10.0

## Every score

- redhat: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2024:0320> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0557> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0558> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0597> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0607> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0614> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0617> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0621> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0626> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0629> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2169> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2170> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2995> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2996> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12751> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-6816> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2257691> (issue-tracking)
- <http://www.openwall.com/lists/oss-security/2024/01/18/1>
- <https://lists.debian.org/debian-lts-announce/2024/01/msg00016.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5J4H7CH565ALSZZYKOJFYDA5KFLG6NUK/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJBMCWQ54R6ZL3MYU2D2JBW6JMZL7BQW/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IZ75X54CN4IFYMIV7OK3JVZ57FHQIGIC/>
- <https://security.gentoo.org/glsa/202401-30>
- <https://security.netapp.com/advisory/ntap-20240307-0006/>

## Sources

- CVE List: [CVE-2023-6816](https://www.cve.org/CVERecord?id=CVE-2023-6816), CVE Terms of Use, modified 2026-11-04
- NVD: [CVE-2023-6816](https://nvd.nist.gov/vuln/detail/CVE-2023-6816), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2023-6816 · Whole record: https://cve.day/CVE-2023-6816.json · Rebuilt by cve.day 2026-11-25T22:58:32.184Z
