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

20 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
debian/xorg-server<=2:1.20.4-1+deb10u4, <=2:1.20.11-1+deb11u6
2:1.20.4-1+deb10u122:1.20.11-1+deb11u102:21.1.7-3+deb12u22:21.1.7-3+deb12u42:21.1.10-1
redhat/xorg-server<21.1.9
21.1.9
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

Event History

Oct 25, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:28 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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