CVE-2024-0229: Xorg-x11-server: reattaching to different master device may lead to out-of-bounds memory access

Published Jan 3, 2024
·
Updated

An out-of-bounds memory access flaw was found in the X.Org server. This issue can be triggered when a device frozen by a sync grab is reattached to a different master device. This issue may lead to an application crash, local privilege escalation (if the server runs with extended privileges), or remote code execution in SSH X11 forwarding environments.

Other sources

An out-of-bounds memory access may occur when a device frozen by a sync grab is reattached to a different master device. The number of buttons is incorrectly calculated to be zero and this can be exploited for LPE if the server runs with extended privileges or RCE for ssh x11 forwarding.

This was reported as ZDI-CAN-22678 to the xorg-security list.

— Red Hat

Affected Software

38 affected componentsFixes available
redhat/xorg-server<21.1.11
21.1.11
redhat/xwayland<23.2.4
23.2.4
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=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux Aus=8.2
redhat Enterprise Linux Aus=8.4
redhat Enterprise Linux Eus=8.6
redhat Enterprise Linux Eus=8.8
redhat Enterprise Linux Eus=9.0
redhat Enterprise Linux Eus=9.2
redhat Enterprise Linux Tus=8.2
redhat Enterprise Linux Tus=8.4
redhat Enterprise Linux Update Services For Sap Solutions=8.2
redhat Enterprise Linux Update Services For Sap Solutions=8.4
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
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-22:21.1.26-1
debian/xwayland<=2:22.1.9-1
2:24.1.6-12:24.1.14-12:24.1.15-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 alpine/xorg-server to a version that resolves this vulnerability.

    Fixed in 21.1.11-r0
  4. Upgrade

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

    Fixed in 23.2.4-r0
  5. Upgrade

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

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

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

    Fixed in 2:21.1.11-1
  7. Upgrade

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

    Fixed in 2:23.2.4-1
  8. 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-2Fixed in 2:21.1.26-1
  9. Upgrade

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

    Fixed in 2:24.1.6-1Fixed in 2:24.1.14-1Fixed in 2:24.1.15-1

Event History

Jan 3, 2024
Data Sourced
via Red Hat·10:10 PM
DescriptionSeverityAffected Software
Feb 9, 2024
CVE Published
via MITRE·06:29 AM
Data Sourced
via MITRE·06:29 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeaknessAffected Software
Nov 3, 2026
Data Sourced
via OSV·06:32 AM
Affected 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-2024-0229?

CVE-2024-0229 is classified as a high severity vulnerability due to its potential for local privilege escalation and application crashes.

2

How do I fix CVE-2024-0229?

To fix CVE-2024-0229, upgrade the affected packages to the patched versions specified by your distribution, such as xorg-server 21.1.11 or xwayland 23.2.4.

3

Which versions are affected by CVE-2024-0229?

CVE-2024-0229 affects several versions of xorg-server and xwayland, specifically versions prior to 21.1.11 for xorg-server and 23.2.4 for xwayland.

4

What could happen if CVE-2024-0229 is exploited?

Exploiting CVE-2024-0229 could result in application crashes or allow an attacker to gain elevated privileges on the affected system.

5

Is CVE-2024-0229 specific to a particular operating system?

CVE-2024-0229 primarily affects Red Hat and Debian distributions but the underlying X.Org server vulnerabilities can impact various systems using these components.

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