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

Published Jan 10, 2024
·
Updated

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.

Other sources

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 number of buttons, leading to a heap overflow if a bigger value was used.

— Red Hat

Xorg-x11-server: heap buffer overflow in devicefocusevent and procxiquerypointer

— Microsoft

Affected Software

31 affected componentsFixes available
redhat/xorg-server<21.1.11
21.1.11
redhat/xwayland<23.2.4
23.2.4
Microsoft cbl2 xorg-x11-server 1.20.10-10
Microsoft cbl2 xorg-x11-server 1.20.10-15
debian/xorg-server
2:21.1.7-3+deb12u122:21.1.7-3+deb12u132:21.1.16-1.3+deb13u32:21.1.16-1.3+deb13u42:21.1.25-2
debian/xwayland<=2:22.1.9-1
2:24.1.6-12:24.1.14-1
alpine/xorg-server<21.1.11-r0
21.1.11-r0
alpine/xorg-server<21.1.11-r0
21.1.11-r0
alpine/xorg-server<21.1.11-r0
21.1.11-r0
alpine/xorg-server<21.1.11-r0
21.1.11-r0
alpine/xorg-server<21.1.11-r0
21.1.11-r0
alpine/xorg-server<21.1.11-r0
21.1.11-r0
alpine/xwayland<23.2.4-r0
23.2.4-r0
alpine/xwayland<23.2.4-r0
23.2.4-r0
alpine/xwayland<23.2.4-r0
23.2.4-r0
alpine/xwayland<23.2.4-r0
23.2.4-r0
alpine/xwayland<23.2.4-r0
23.2.4-r0
alpine/xwayland<23.2.4-r0
23.2.4-r0
X.Org X Server<21.1.11
X.Org Xwayland<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
debian/xorg-server<2:21.1.7-3+deb12u5
2:21.1.7-3+deb12u5
debian/xorg-server<2:21.1.11-1
2:21.1.11-1
debian/xorg-server<2:21.1.11-1
2:21.1.11-1
debian/xwayland*
debian/xwayland<2:23.2.4-1
2:23.2.4-1
debian/xwayland<2:23.2.4-1
2:23.2.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/xorg-server to a version that resolves this vulnerability.

    Fixed in 21.1.11
  2. Upgrade

    Upgrade redhat/xwayland to a version that resolves this vulnerability.

    Fixed in 23.2.4
  3. Upgrade

    Upgrade debian/xorg-server to a version that resolves this vulnerability.

    Fixed in 2:21.1.7-3+deb12u12Fixed in 2:21.1.7-3+deb12u13Fixed in 2:21.1.16-1.3+deb13u3Fixed in 2:21.1.16-1.3+deb13u4Fixed in 2:21.1.25-2
  4. Upgrade

    Upgrade debian/xwayland to a version that resolves this vulnerability.

    Fixed in 2:24.1.6-1Fixed in 2:24.1.14-1
  5. Upgrade

    Upgrade alpine/xorg-server to a version that resolves this vulnerability.

    Fixed in 21.1.11-r0
  6. Upgrade

    Upgrade alpine/xwayland to a version that resolves this vulnerability.

    Fixed in 23.2.4-r0
  7. Upgrade

    Upgrade debian/xorg-server to a version that resolves this vulnerability.

    Fixed in 2:21.1.7-3+deb12u5
  8. Upgrade

    Upgrade debian/xorg-server to a version that resolves this vulnerability.

    Fixed in 2:21.1.11-1
  9. Upgrade

    Upgrade debian/xwayland to a version that resolves this vulnerability.

    Fixed in 2:23.2.4-1

Event History

Jan 10, 2024
Data Sourced
via Red Hat·02:02 PM
DescriptionSeverityAffected Software
Jan 18, 2024
CVE Published
via MITRE·04:31 AM
Data Sourced
via MITRE·04:31 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·05:15 AM
DescriptionSeverityAffected Software
Jan 19, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2023-6816?

CVE-2023-6816 has been classified with a moderate severity rating.

2

How do I fix CVE-2023-6816?

To fix CVE-2023-6816, upgrade to xorg-server version 21.1.11 or xwayland version 23.2.4 or later.

3

What software does CVE-2023-6816 affect?

CVE-2023-6816 affects xorg-server and xwayland on specific versions of Red Hat and Debian systems.

4

What type of vulnerability is CVE-2023-6816?

CVE-2023-6816 is a flaw that allows for arbitrary button mapping in the X.Org server.

5

Is there a patch available for CVE-2023-6816?

Yes, patches have been released for the affected versions of xorg-server and xwayland.

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