CVE-2023-5380: Xorg-x11-server: use-after-free bug in destroywindow

Published Oct 18, 2023
·
Updated

A use-after-free flaw was found in the xorg-x11-server. An X server crash may occur in a very specific and legacy configuration (a multi-screen setup with multiple protocol screens, also known as Zaphod mode) if the pointer is warped from within a window on one screen to the root window of the other screen and if the original window is destroyed followed by another window being destroyed.

Other sources

This vulnerability requires a legacy multi-screen setup with multiple protocol screens ("Zaphod"). If the pointer is warped from one screen to the root window of the other screen, the enter/leave code may retain a reference to the previous pointer window. Destroying this window leaves that reference in place, other windows may then trigger a use-after-free bug when they are destroyed.

This bug can be triggered only under very specific conditions, in particular it requires an XWarpPointer call and that the pointer never enters a client window on the other screen.

Reference: https://lists.x.org/archives/xorg-announce/2023-October/003430.html

— Red Hat

Affected Software

30 affected componentsFixes available
ubuntu/xorg-server<2:1.15.1-0ubuntu2.11+
2:1.15.1-0ubuntu2.11+
ubuntu/xorg-server<2:1.18.4-0ubuntu0.12+
2:1.18.4-0ubuntu0.12+
ubuntu/xorg-server<2:1.19.6-1ubuntu4.15+
2:1.19.6-1ubuntu4.15+
ubuntu/xorg-server<21.1.9
21.1.9
ubuntu/xorg-server<2:1.20.13-1ubuntu1~20.04.9
2:1.20.13-1ubuntu1~20.04.9
ubuntu/xorg-server<2:21.1.4-2ubuntu1.7~22.04.2
2:21.1.4-2ubuntu1.7~22.04.2
ubuntu/xorg-server<2:21.1.7-1ubuntu3.1
2:21.1.7-1ubuntu3.1
ubuntu/xorg-server<2:21.1.7-3ubuntu2.1
2:21.1.7-3ubuntu2.1
redhat/xorg-server<21.1.9
21.1.9
alpine/xorg-server<21.1.9-r0
21.1.9-r0
alpine/xorg-server<21.1.9-r0
21.1.9-r0
alpine/xorg-server<21.1.9-r0
21.1.9-r0
alpine/xorg-server<21.1.9-r0
21.1.9-r0
alpine/xorg-server<21.1.9-r0
21.1.9-r0
alpine/xorg-server<21.1.9-r0
21.1.9-r0
alpine/xorg-server<21.1.9-r0
21.1.9-r0
X.Org X Server<21.1.9
X.Org Xwayland<23.2.2
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Fedoraproject Fedora=39
Debian Debian Linux=11.0
Debian Debian Linux=12.0
debian/xorg-server<2:21.1.7-3+deb12u2
2:21.1.7-3+deb12u2
debian/xorg-server<2:21.1.9-1
2:21.1.9-1
debian/xorg-server<2:21.1.9-1
2:21.1.9-1
debian/xorg-server
2:1.20.4-1+deb10u102:1.20.11-1+deb11u82:21.1.7-3+deb12u22:21.1.9-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 2:1.15.1-0ubuntu2.11+
  2. Upgrade

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

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

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

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

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

    Fixed in 21.1.9
  5. Upgrade

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

    Fixed in 2:1.20.13-1ubuntu1~20.04.9
  6. Upgrade

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

    Fixed in 2:21.1.4-2ubuntu1.7~22.04.2
  7. Upgrade

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

    Fixed in 2:21.1.7-1ubuntu3.1
  8. Upgrade

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

    Fixed in 2:21.1.7-3ubuntu2.1
  9. Upgrade

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

    Fixed in 21.1.9
  10. Upgrade

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

    Fixed in 21.1.9-r0
  11. Upgrade

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

    Fixed in 2:21.1.7-3+deb12u2
  12. Upgrade

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

    Fixed in 2:21.1.9-1
  13. Upgrade

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

    Fixed in 2:1.20.4-1+deb10u10Fixed in 2:1.20.11-1+deb11u8Fixed in 2:21.1.7-3+deb12u2Fixed in 2:21.1.9-1

Event History

Oct 18, 2023
Data Sourced
01:01 AM
DescriptionSeverityAffected Software
Oct 25, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Description
CVE Published
via MITRE·07:46 PM
Data Sourced
07:46 PM
Weakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Nov 2, 2023
Updated
05:16 PM
Severity
Nov 3, 2023
Updated
01:58 PM
Severity
Updated
02:15 PM
SeverityAffected Software
Updated
11:15 PM
Affected Software
Updated
11:15 PM
Severity
Nov 7, 2023
Updated
04:23 AM
WeaknessAffected Software
Nov 10, 2023
Updated
02:15 AM
Affected Software
Updated
02:15 AM
WeaknessAffected Software
Nov 13, 2023
Updated
03:15 AM
Affected Software
Nov 18, 2023
Updated
03:15 AM
Affected Software
Nov 21, 2023
Data Sourced
via Red Hat·03:38 PM
DescriptionSeverityAffected Software
Updated
06:15 PM
Affected Software
Nov 30, 2023
Updated
10:15 PM
Affected Software
Jan 21, 2024
Data Sourced
via NVD·01:38 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·01:38 AM
Affected Software
Jan 23, 2024
Data Sourced
via MITRE·01:22 AM
DescriptionSeverityWeakness
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:41 AM
RemedyAffected Software
Nov 4, 2025
Updated
via NVD·08:17 PM
Affected Software
Jun 23, 2026
Updated
via NVD·06:17 PM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2023-5380?

CVE-2023-5380 is a use-after-free vulnerability in the xorg-x11-server that may lead to an X server crash in a specific configuration.

2

How does CVE-2023-5380 affect the xorg-x11-server?

CVE-2023-5380 affects the xorg-x11-server by causing a use-after-free flaw that can result in an X server crash.

3

What is the severity of CVE-2023-5380?

The severity of CVE-2023-5380 is medium with a CVSS score of 5.1.

4

How can I fix CVE-2023-5380?

To fix CVE-2023-5380, update the xorg-x11-server package to version 21.1.9 or higher.

5

Where can I find more information about CVE-2023-5380?

You can find more information about CVE-2023-5380 at the following references: [link1](https://access.redhat.com/security/cve/CVE-2023-5380), [link2](https://bugzilla.redhat.com/show_bug.cgi?id=2244736), [link3](https://lists.x.org/archives/xorg-announce/2023-October/003430.html).

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