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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-01-18 · Modified: 2026-11-04
- Aliases: UBUNTU-CVE-2023-6816, DEBIAN-CVE-2023-6816, CGA-q3pr-57r3-3m6w, CGA-q42v-qvrr-9r2q, ALPINE-CVE-2023-6816
- Record: https://cvemate.com/vulnerability/CVE-2023-6816 · JSON: https://cvemate.com/vulnerability/CVE-2023-6816/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.106%, percentile 82.382%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine xorg-server (Alpine Linux): \< 21.1.11-r0
- alpine xwayland (Alpine Linux): \< 23.2.4-r0
- chainguard xorg-server (Chainguard): \< 21.1.10-r5
- wolfi xorg-server (Wolfi): \< 21.1.10-r5
- debian xorg-server (Debian): \< 2:21.1.7-3+deb12u5 \| \< 2:21.1.11-1
- debian xwayland (Debian): All versions (No fix recorded) \| \< 2:23.2.4-1
- ubuntu xorg-server (Ubuntu): \< 2:1.15.1-0ubuntu2.11+esm9 \| \< 2:1.18.4-0ubuntu0.12+esm9 \| \< 2:1.19.6-1ubuntu4.15+esm4 \| \< 2:1.20.13-1ubuntu1~20.04.14 \| \< 2:21.1.4-2ubuntu1.7~22.04.7
- ubuntu xorg-server-hwe-16.04 (Ubuntu): All versions (No fix recorded)
- ubuntu xorg-server-hwe-18.04 (Ubuntu): All versions (No fix recorded)
- ubuntu xwayland (Ubuntu): \< 2:22.1.1-1ubuntu0.10 \| \< 2:23.2.4-1
- debian debian\_linux: 10.0
- fedoraproject fedora: 39
- redhat enterprise\_linux\_desktop: 7.0
- redhat enterprise\_linux\_server: 7.0
- redhat enterprise\_linux\_workstation: 7.0
- x.org x\_server: \< 21.1.11
- x.org xwayland: \< 23.2.4

## References (first 20 of 32)

- <https://access.redhat.com/errata/RHSA-2024:0320>
- <https://access.redhat.com/errata/RHSA-2024:0557>
- <https://access.redhat.com/errata/RHSA-2024:0558>
- <https://access.redhat.com/errata/RHSA-2024:0597>
- <https://access.redhat.com/errata/RHSA-2024:0607>
- <https://access.redhat.com/errata/RHSA-2024:0614>
- <https://access.redhat.com/errata/RHSA-2024:0617>
- <https://access.redhat.com/errata/RHSA-2024:0621>
- <https://access.redhat.com/errata/RHSA-2024:0626>
- <https://access.redhat.com/errata/RHSA-2024:0629>
- <https://access.redhat.com/errata/RHSA-2024:2169>
- <https://access.redhat.com/errata/RHSA-2024:2170>
- <https://access.redhat.com/errata/RHSA-2024:2995>
- <https://access.redhat.com/errata/RHSA-2024:2996>
- <https://access.redhat.com/errata/RHSA-2025:12751>
- <https://access.redhat.com/security/cve/CVE-2023-6816>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2257691>
- <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/>

---

Data as of 2026-12-05T02:49:59.757Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
