cve.bz

CVE-2023-6816 Out-of-bounds Write

9.8 criticalEPSS 2.1%Fix available

Critical (9.8). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-01-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION: fixed in 0:1.1.0-25.el6_10.13
  • Red Hat Red Hat Enterprise Linux 7: fixed in 0:1.20.4-27.el7_9
  • Red Hat Red Hat Enterprise Linux 7: fixed in 0:1.8.0-31.el7_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.13.1-2.el8_9.7
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.20.11-22.el8
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:21.1.3-15.el8
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:1.9.0-15.el8_2.9
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 0:1.9.0-15.el8_2.9
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2023-6816 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-6816?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-6816?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-6816 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION0:1.1.0-25.el6_10.13
Red Hat Enterprise Linux 70:1.20.4-27.el7_9
Red Hat Enterprise Linux 70:1.8.0-31.el7_9
Red Hat Enterprise Linux 80:1.13.1-2.el8_9.7
Red Hat Enterprise Linux 80:1.20.11-22.el8
Red Hat Enterprise Linux 80:21.1.3-15.el8
Red Hat Enterprise Linux 8.2 Advanced Update Support0:1.9.0-15.el8_2.9
Red Hat Enterprise Linux 8.2 Telecommunications Update Service0:1.9.0-15.el8_2.9
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions0:1.9.0-15.el8_2.9
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.11.0-8.el8_4.8
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:1.11.0-8.el8_4.8
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:1.11.0-8.el8_4.8
Red Hat Enterprise Linux 8.6 Extended Update Support0:1.12.0-6.el8_6.9
Red Hat Enterprise Linux 8.8 Extended Update Support0:1.12.0-15.el8_8.7
Red Hat Enterprise Linux 90:1.13.1-3.el9_3.6
Red Hat Enterprise Linux 90:1.20.11-24.el9
Red Hat Enterprise Linux 90:22.1.9-5.el9
Red Hat Enterprise Linux 9.0 Extended Update Support0:1.11.0-22.el9_0.8
Red Hat Enterprise Linux 9.2 Extended Update Support0:1.12.0-14.el9_2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10xorg-server2:1.20.4-1+deb10u13DLA-3721-1
Debian11xorg-server2:1.20.11-1+deb11u11DSA-5603-1
Debian12xorg-server2:21.1.7-3+deb12u5DEBIAN-CVE-2023-6816 DSA-5603-1
Debian12xwaylandno fix listedDEBIAN-CVE-2023-6816
Debian13, 14xorg-server2:21.1.11-1DEBIAN-CVE-2023-6816
Debian13, 14xwayland2:23.2.4-1DEBIAN-CVE-2023-6816
Ubuntu20.04:LTSxorg-server2:1.20.13-1ubuntu1~20.04.14UBUNTU-CVE-2023-6816 USN-6587-1
Ubuntu22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.7UBUNTU-CVE-2023-6816 USN-6587-1
Ubuntu22.04:LTSxwayland2:22.1.1-1ubuntu0.10UBUNTU-CVE-2023-6816 USN-6587-1
Ubuntu24.04:LTSxwayland2:23.2.4-1UBUNTU-CVE-2023-6816
UbuntuPro:14.04:LTSxorg-server2:1.15.1-0ubuntu2.11+esm9UBUNTU-CVE-2023-6816 USN-6587-5
UbuntuPro:16.04:LTSxorg-server2:1.18.4-0ubuntu0.12+esm9UBUNTU-CVE-2023-6816 USN-6587-2
UbuntuPro:16.04:LTSxorg-server-hwe-16.04no fix listedUBUNTU-CVE-2023-6816
UbuntuPro:18.04:LTSxorg-server2:1.19.6-1ubuntu4.15+esm4UBUNTU-CVE-2023-6816 USN-6587-2
UbuntuPro:18.04:LTSxorg-server-hwe-18.04no fix listedUBUNTU-CVE-2023-6816
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morexorg-x11-server, xorg-x11-server-Xdmx, xorg-x11-server-Xorg and 8 more0:1.20.4-27.el7_9RHSA-2024:0320
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationtigervnc, tigervnc-icons, tigervnc-server and 5 more0:1.8.0-31.el7_9RHSA-2024:0629
Red Hatenterprise_linux:7::computenodetigervnc, tigervnc-icons, tigervnc-server and 3 more0:1.8.0-31.el7_9RHSA-2024:0629
Red Hatenterprise_linux:8::appstreamtigervnc, tigervnc-icons, tigervnc-server and 9 more0:1.13.1-2.el8_9.7RHSA-2024:0607
Red Hatenterprise_linux:8::appstreamxorg-x11-server, xorg-x11-server-Xdmx, xorg-x11-server-Xorg and 11 more0:1.20.11-22.el8RHSA-2024:2995
Red Hatenterprise_linux:8::appstreamxorg-x11-server-Xwayland, xorg-x11-server-Xwayland-debuginfo, xorg-x11-server-Xwayland-debugsource0:21.1.3-15.el8RHSA-2024:2996
Red Hatenterprise_linux:8::crbxorg-x11-server-devel, xorg-x11-server-source, xorg-x11-server-debuginfo and 6 more0:1.20.11-22.el8RHSA-2024:2995
Red Hatenterprise_linux:9::appstreamtigervnc, tigervnc-icons, tigervnc-server and 9 more0:1.13.1-3.el9_3.6RHSA-2024:0557
Red Hatenterprise_linux:9::appstreamxorg-x11-server, xorg-x11-server-Xdmx, xorg-x11-server-Xorg and 11 more0:1.20.11-24.el9RHSA-2024:2169
Red Hatenterprise_linux:9::appstreamxorg-x11-server-Xwayland, xorg-x11-server-Xwayland-debuginfo, xorg-x11-server-Xwayland-debugsource0:22.1.9-5.el9RHSA-2024:2170
Red Hatenterprise_linux:9::crbxorg-x11-server-devel, xorg-x11-server-source, xorg-x11-server-debuginfo and 6 more0:1.20.11-24.el9RHSA-2024:2169
Red Hatrhel_aus:8.2::appstream, rhel_e4s:8.2::appstream, rhel_tus:8.2::appstreamtigervnc, tigervnc-icons, tigervnc-server and 9 more0:1.9.0-15.el8_2.9RHSA-2024:0617
6 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 6 morexorg-x11-server1.20.3-150200.22.5.88.1SUSE-SU-2024:0121-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Real Time 15 SP4 and 4 morexorg-x11-server1.20.3-150400.38.40.1SUSE-SU-2024:0111-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Development Tools 15 SP5xorg-x11-server21.1.4-150500.7.18.1SUSE-SU-2024:0109-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5xorg-x11-server1.19.6-10.65.1SUSE-SU-2024:0116-1
SUSELinux Enterprise Workstation Extension 15 SP5xwayland22.1.5-150500.7.14.1SUSE-SU-2024:0114-1
openSUSELeap 15.5xorg-x11-server21.1.4-150500.7.18.1SUSE-SU-2024:0109-1
openSUSELeap 15.5xwayland22.1.5-150500.7.14.1SUSE-SU-2024:0114-1
openSUSETumbleweedxorg-x11-server21.1.11-1.1openSUSE-SU-2024:13597-1
openSUSETumbleweedxwayland23.2.4-1.1openSUSE-SU-2024:13598-1
AlmaLinux8tigervnc, tigervnc-icons, tigervnc-server and 4 more1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux8xorg-x11-server-Xdmx, xorg-x11-server-Xorg, xorg-x11-server-Xvfb and 5 more1.20.11-22.el8ALSA-2024:2995
AlmaLinux8xorg-x11-server-Xwayland21.1.3-15.el8ALSA-2024:2996
AlmaLinux9tigervnc, tigervnc-icons, tigervnc-server and 4 more1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux9xorg-x11-server-Xdmx, xorg-x11-server-Xorg, xorg-x11-server-Xvfb and 5 more1.20.11-24.el9ALSA-2024:2169
AlmaLinux9xorg-x11-server-Xwayland22.1.9-5.el9ALSA-2024:2170
Rocky Linux8tigervnc0:1.13.1-2.el8_9.7RLSA-2024:0607
Alpinev3.19, v3.20, v3.21 and 3 morexorg-server21.1.11-r0ALPINE-CVE-2023-6816
Alpinev3.19, v3.20, v3.21 and 3 morexwayland23.2.4-r0ALPINE-CVE-2023-6816
Azure Linux2xorg-x11-server1.20.10-10AZL-33353
Azure Linux3xorg-x11-serverno fix listedAZL-44742
Alpaquita23xorg-server21.1.12-r0BELL-CVE-2023-6816
Alpaquitastreamxorg-server21.1.11-r0BELL-CVE-2023-6816

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The Xorg server does not run with root privileges in Red Hat Enterprise Linux 8 and 9, therefore, Red Hat Enterprise Linux 8 and 9 have been rated with a moderate severity.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONtigervnc-0:1.1.0-25.el6_10.13Fixed 2025-08-04RHSA-2025:12751
Red Hat Enterprise Linux 7xorg-x11-server-0:1.20.4-27.el7_9Fixed 2024-01-22RHSA-2024:0320
Red Hat Enterprise Linux 7tigervnc-0:1.8.0-31.el7_9Fixed 2024-01-31RHSA-2024:0629
Red Hat Enterprise Linux 8tigervnc-0:1.13.1-2.el8_9.7Fixed 2024-01-30RHSA-2024:0607
Red Hat Enterprise Linux 8xorg-x11-server-0:1.20.11-22.el8Fixed 2024-05-22RHSA-2024:2995
Red Hat Enterprise Linux 8xorg-x11-server-Xwayland-0:21.1.3-15.el8Fixed 2024-05-22RHSA-2024:2996
Red Hat Enterprise Linux 8.2 Advanced Update Supporttigervnc-0:1.9.0-15.el8_2.9Fixed 2024-01-31RHSA-2024:0617
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicetigervnc-0:1.9.0-15.el8_2.9Fixed 2024-01-31RHSA-2024:0617
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionstigervnc-0:1.9.0-15.el8_2.9Fixed 2024-01-31RHSA-2024:0617
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supporttigervnc-0:1.11.0-8.el8_4.8Fixed 2024-01-30RHSA-2024:0558
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicetigervnc-0:1.11.0-8.el8_4.8Fixed 2024-01-30RHSA-2024:0558
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionstigervnc-0:1.11.0-8.el8_4.8Fixed 2024-01-30RHSA-2024:0558
Red Hat Enterprise Linux 8.6 Extended Update Supporttigervnc-0:1.12.0-6.el8_6.9Fixed 2024-01-30RHSA-2024:0621
Red Hat Enterprise Linux 8.8 Extended Update Supporttigervnc-0:1.12.0-15.el8_8.7Fixed 2024-01-30RHSA-2024:0597
Red Hat Enterprise Linux 9tigervnc-0:1.13.1-3.el9_3.6Fixed 2024-01-30RHSA-2024:0557
Red Hat Enterprise Linux 9xorg-x11-server-0:1.20.11-24.el9Fixed 2024-04-30RHSA-2024:2169
Red Hat Enterprise Linux 9xorg-x11-server-Xwayland-0:22.1.9-5.el9Fixed 2024-04-30RHSA-2024:2170
Red Hat Enterprise Linux 9.0 Extended Update Supporttigervnc-0:1.11.0-22.el9_0.8Fixed 2024-01-30RHSA-2024:0614
Red Hat Enterprise Linux 9.2 Extended Update Supporttigervnc-0:1.12.0-14.el9_2.5Fixed 2024-01-31RHSA-2024:0626
Red Hat Enterprise Linux 6xorg-x11-serverOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-6816.

References

Check your stackJSON