CVE-2023-6377: Xorg-x11-server: out-of-bounds memory reads/writes in xkb button actions

Published Dec 6, 2023
·
Updated

A flaw was found in xorg-server. Querying or changing XKB button actions such as moving from a touchpad to a mouse can result in out-of-bounds memory reads and writes. This may allow local privilege escalation or possible remote code execution in cases where X11 forwarding is involved.

Other sources

CVE-2023-6377: X.Org server: Out-of-bounds memory write in XKB button actions

Introduced in: xorg-server-1.6.0 (2009) Fixed in: xorg-server-21.1.10 and xwayland-23.2.3 Found by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative

A device has XKB button actions for each button on the device. When a logical device switch happens (e.g. moving from a touchpad to a mouse), the server re-calculates the information available on the respective master device (typically the Virtual Core Pointer). This re-calculation only allocated enough memory for a single XKB action rather instead of enough for the newly active physical device's number of button. As a result, querying or changing the XKB button actions results in out-of-bounds memory reads and writes.

This may lead to local privilege escalation if the server is run as root or remote code execution (e.g. x11 over ssh).

xorg-server-21.1.10 and xwayland-23.2.3 have been patched to fix this issue.

— Red Hat

Affected Software

43 affected componentsFixes available
redhat/xorg-server<21.1.10
21.1.10
redhat/xwayland<23.2.3
23.2.3
alpine/xorg-server<21.1.10-r0
21.1.10-r0
alpine/xorg-server<21.1.10-r0
21.1.10-r0
alpine/xorg-server<21.1.10-r0
21.1.10-r0
alpine/xorg-server<21.1.10-r0
21.1.10-r0
alpine/xorg-server<21.1.10-r0
21.1.10-r0
alpine/xorg-server<21.1.10-r0
21.1.10-r0
alpine/xorg-server<21.1.10-r0
21.1.10-r0
redhat Enterprise Linux Eus=9.2
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Debian Debian Linux=12.0
All of the following
X.Org X Server<21.1.10
Any of the following
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
All of the following
X.Org Xwayland<23.2.3
Any of the following
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
All of the following
TigerVNC TigerVNC
Any of the following
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
debian/xorg-server<2:21.1.7-3+deb12u4
2:21.1.7-3+deb12u4
debian/xorg-server<2:21.1.10-1
2:21.1.10-1
debian/xorg-server<2:21.1.10-1
2:21.1.10-1
debian/xwayland*
debian/xwayland<2:23.2.3-1
2:23.2.3-1
debian/xwayland<2:23.2.3-1
2:23.2.3-1
debian/xorg-server
2:1.20.4-1+deb10u122:1.20.11-1+deb11u102:21.1.7-3+deb12u42:21.1.10-1
debian/xwayland<=2:22.1.9-1
2:23.2.3-1
ubuntu/xorg-server*
ubuntu/xorg-server<2:1.18.4-0ubuntu0.12+esm8
2:1.18.4-0ubuntu0.12+esm8
ubuntu/xorg-server-hwe-16.04*
ubuntu/xorg-server<2:1.19.6-1ubuntu4.15+esm3
2:1.19.6-1ubuntu4.15+esm3
ubuntu/xorg-server-hwe-18.04*
ubuntu/xorg-server<2:1.20.13-1ubuntu1~20.04.12
2:1.20.13-1ubuntu1~20.04.12
ubuntu/xorg-server<2:21.1.4-2ubuntu1.7~22.04.5
2:21.1.4-2ubuntu1.7~22.04.5
ubuntu/xwayland<2:22.1.1-1ubuntu0.9
2:22.1.1-1ubuntu0.9
ubuntu/xorg-server<2:21.1.10-1ubuntu1
2:21.1.10-1ubuntu1

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.10
  2. Upgrade

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

    Fixed in 23.2.3
  3. Upgrade

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

    Fixed in 21.1.10-r0
  4. Upgrade

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

    Fixed in 2:21.1.7-3+deb12u4
  5. Upgrade

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

    Fixed in 2:21.1.10-1
  6. Upgrade

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

    Fixed in 2:23.2.3-1
  7. Upgrade

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

    Fixed in 2:1.20.4-1+deb10u12Fixed in 2:1.20.11-1+deb11u10Fixed in 2:21.1.7-3+deb12u4Fixed in 2:21.1.10-1
  8. Upgrade

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

    Fixed in 2:1.18.4-0ubuntu0.12+esm8
  9. Upgrade

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

    Fixed in 2:1.19.6-1ubuntu4.15+esm3
  10. Upgrade

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

    Fixed in 2:1.20.13-1ubuntu1~20.04.12
  11. Upgrade

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

    Fixed in 2:21.1.4-2ubuntu1.7~22.04.5
  12. Upgrade

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

    Fixed in 2:22.1.1-1ubuntu0.9
  13. Upgrade

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

    Fixed in 2:21.1.10-1ubuntu1
  14. Upgrade

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

    Fixed in 21.1.10
  15. Upgrade

    Upgrade xwayland to a version that resolves this vulnerability.

    Fixed in 23.2.3

Event History

Dec 6, 2023
Data Sourced
05:03 PM
DescriptionSeverityAffected Software
Dec 13, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
CVE Published
via MITRE·06:27 AM
Data Sourced
06:27 AM
Weakness
Dec 21, 2023
Updated
05:18 PM
SeverityWeakness
Dec 25, 2023
Updated
04:15 AM
Affected Software
Updated
04:15 AM
SeverityWeakness
Jan 2, 2024
Data Sourced
via Red Hat·08:55 AM
DescriptionSeverityAffected Software
Updated
03:15 PM
Affected Software
Jan 11, 2024
Data Sourced
via NVD·04:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:15 AM
Affected Software
Jan 23, 2024
Data Sourced
via MITRE·02:02 AM
DescriptionSeverityWeakness
Jan 25, 2024
Updated
via NVD·02:15 PM
Affected Software
Jan 31, 2024
Updated
via NVD·01:15 PM
Affected Software
Apr 30, 2024
Updated
via NVD·02:15 PM
Affected Software
May 22, 2024
Updated
via NVD·05:16 PM
Affected Software
Sep 16, 2024
Updated
via NVD·04:15 PM
Affected Software
Nov 21, 2024
Updated
via NVD·08:43 AM
RemedyAffected Software
Aug 18, 2025
Updated
via NVD·12:15 PM
RemedyAffected Software
Feb 25, 2026
Updated
via MITRE·06:18 PM
Weakness
Updated
via NVD·07:29 PM
Weakness
Mar 24, 2026
Updated
via MITRE·11:27 AM
Weakness
Updated
via NVD·12:16 PM
Weakness
Jun 23, 2026
Updated
via NVD·06:17 PM
Affected Software
Oct 31, 2026
Data Sourced
via OSV·02:46 AM
Weakness

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-6377?

CVE-2023-6377 has been classified as a high severity vulnerability due to its potential for local privilege escalation and remote code execution.

2

How do I fix CVE-2023-6377?

To fix CVE-2023-6377, update xorg-server to version 21.1.10 or later, and xwayland to version 23.2.3 or later on affected systems.

3

Which software is affected by CVE-2023-6377?

CVE-2023-6377 affects xorg-server versions prior to 21.1.10 and xwayland versions prior to 23.2.3 on specific Red Hat and Debian distributions.

4

Can CVE-2023-6377 be exploited remotely?

Yes, CVE-2023-6377 may allow remote code execution in scenarios involving X11 forwarding.

5

What are the consequences of CVE-2023-6377 if exploited?

If exploited, CVE-2023-6377 could lead to unauthorized access and control over affected systems, resulting in potential data breaches or system compromise.

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