CVE-2024-0409: Xorg-x11-server: selinux context corruption

Published Jan 10, 2024
·
Updated

A flaw was found in the X.Org server. The cursor code in both Xephyr and Xwayland uses the wrong type of private at creation. It uses the cursor bits type with the cursor as private, and when initiating the cursor, that overwrites the XSELINUX context.

Other sources

The Xserver uses the mechanism of "privates" to store additional data to its own objects, each private has an associate "type". Each private is allocated for the relevant size of memory that is declared at creation.

The cursor structure in the Xserver goes as far as having two keys, one for the cursor itself and another one for the bits that make the cursor shape.

XSELINUX also uses privates but it's a bit of a special case because it uses the same privates keys for all different objects.

What happens here is that the cursor code in both Xephyr and Xwayland uses the wrong type of private at creation, using the cursor bits type with the cursor private and when initiating the cursor, the overwrites the XSELINUX context.

— Red Hat

Xorg-x11-server: selinux context corruption

— Microsoft

Affected Software

48 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-15
Microsoft cbl2 xorg-x11-server 1.20.10-12
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
TigerVNC TigerVNC<1.13.1
X.Org X Server<21.1.11
X.Org Xwayland<23.2.4
Fedoraproject Fedora=39
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux For Ibm Z Systems=7.0
redhat Enterprise Linux For Power Big Endian=7.0
redhat Enterprise Linux For Power Little Endian=7.0
redhat Enterprise Linux For Scientific Computing=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Workstation=7.0
debian/xorg-server
2:1.20.4-1+deb10u132:1.20.11-1+deb11u112:21.1.7-3+deb12u52:21.1.11-1
debian/xwayland<=2:22.1.9-1
2:23.2.4-1
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
ubuntu/xorg-server*
ubuntu/xorg-server<2:1.18.4-0ubuntu0.12+esm9
2:1.18.4-0ubuntu0.12+esm9
ubuntu/xorg-server-hwe-16.04*
ubuntu/xorg-server<2:1.19.6-1ubuntu4.15+esm4
2:1.19.6-1ubuntu4.15+esm4
ubuntu/xorg-server-hwe-18.04*
ubuntu/xorg-server<2:1.20.13-1ubuntu1~20.04.14
2:1.20.13-1ubuntu1~20.04.14
ubuntu/xorg-server<2:21.1.4-2ubuntu1.7~22.04.7
2:21.1.4-2ubuntu1.7~22.04.7
ubuntu/xwayland<2:22.1.1-1ubuntu0.10
2:22.1.1-1ubuntu0.10
ubuntu/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 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:1.20.4-1+deb10u13Fixed in 2:1.20.11-1+deb11u11Fixed in 2:21.1.7-3+deb12u5Fixed in 2:21.1.11-1
  6. Upgrade

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

    Fixed in 2:23.2.4-1
  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 ubuntu/xorg-server to a version that resolves this vulnerability.

    Fixed in 2:1.18.4-0ubuntu0.12+esm9
  10. Upgrade

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

    Fixed in 2:1.19.6-1ubuntu4.15+esm4
  11. Upgrade

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

    Fixed in 2:1.20.13-1ubuntu1~20.04.14
  12. Upgrade

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

    Fixed in 2:21.1.4-2ubuntu1.7~22.04.7
  13. Upgrade

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

    Fixed in 2:22.1.1-1ubuntu0.10
  14. Upgrade

    Upgrade ubuntu/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 16, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Jan 18, 2024
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionWeakness
Jan 19, 2024
Data Sourced
via NVD·07:15 AM
Severity
Event
via NVD·07:15 AM
Jan 22, 2024
Data Sourced
via MITRE·02:37 PM
Severity
Jan 30, 2024
Data Sourced
via NVD·11:03 PM
Affected Software
Updated
via NVD·11:03 PM
SeverityWeakness
Jan 31, 2024
Event
via FIRST·12:00 AM
Updated
via NVD·01:15 PM
Affected Software
Feb 9, 2024
Updated
via NVD·02:15 AM
Affected Software
Updated
via NVD·02:15 AM
SeverityWeakness
Mar 7, 2024
Updated
via NVD·05: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
Sep 20, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·08:46 AM
Affected Software
Aug 29, 2025
Updated
via NVD·01:42 PM
Affected Software
Jun 17, 2026
Updated
via NVD·06:53 AM
Affected Software
Nov 5, 2026
Data Sourced
via OSV·10:30 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-2024-0409?

CVE-2024-0409 has been classified with a moderate severity level due to the potential impact on system security.

2

How do I fix CVE-2024-0409?

To remediate CVE-2024-0409, update the xorg-server to version 21.1.11 or later and xwayland to version 23.2.4 or later.

3

Which systems are affected by CVE-2024-0409?

CVE-2024-0409 affects versions of xorg-server prior to 21.1.11 and xwayland prior to 23.2.4, as well as specific versions of Red Hat and Debian systems.

4

What is the nature of the vulnerability in CVE-2024-0409?

CVE-2024-0409 involves a flaw in the cursor code of the X.Org server, which can overwrite the XSELINUX context.

5

Is CVE-2024-0409 related to other vulnerabilities?

CVE-2024-0409 may have implications for system integrity, particularly in environments utilizing SELinux configurations.

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