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

Status: published. Published: 2023-10-25. Updated: 2026-11-24.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: secalert@redhat.com) — https://lists.x.org/archives/xorg-announce/2023-October/003430.html
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://lists.x.org/archives/xorg-announce/2023-October/003430.html

## Affected products and versions

- Red Hat / Red Hat Enterprise Linux 7 (tigervnc): ≥ 0:1.8.0-26.el7_9; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (xorg-x11-server): ≥ 0:1.20.11-22.el8; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (tigervnc): ≥ 0:1.13.1-8.el8; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (xorg-x11-server): ≥ 0:1.20.11-24.el9; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (tigervnc): ≥ 0:1.13.1-8.el9; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 6 (tigervnc): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 6 (xorg-x11-server): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 7 (xorg-x11-server): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (xorg-x11-server-Xwayland): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (xorg-x11-server-Xwayland): Version range not reported. Source: CNA: redhat

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:x.org:x_server:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "21.1.9",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:x.org:xwayland:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "23.2.2",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:debian:debian_linux:12.0:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 4.7 (medium); CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H; source: CNA: redhat

- CVSS 3.1: 4.7 (medium); CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 4.7 (medium); CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H; source: NVD: secalert@redhat.com

- CISA KEV: No listing in collected sources

- EPSS: 0.70% as of 2026-11-23; percentile 54.09%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-416

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://access.redhat.com/errata/RHSA-2023:7428 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2024:2169 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2024:2298 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2024:2995 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2024:3067 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2023-5380 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2244736 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://lists.x.org/archives/xorg-announce/2023-October/003430.html (CNA: redhat)

- https://access.redhat.com/errata/RHSA-2023:7428 (ADP: CVE; vendor-advisory, x_refsource_REDHAT, x_transferred)

- https://access.redhat.com/errata/RHSA-2024:2169 (ADP: CVE; vendor-advisory, x_refsource_REDHAT, x_transferred)

- https://access.redhat.com/errata/RHSA-2024:2298 (ADP: CVE; vendor-advisory, x_refsource_REDHAT, x_transferred)

- https://access.redhat.com/errata/RHSA-2024:2995 (ADP: CVE; vendor-advisory, x_refsource_REDHAT, x_transferred)

- https://access.redhat.com/errata/RHSA-2024:3067 (ADP: CVE; vendor-advisory, x_refsource_REDHAT, x_transferred)

- https://access.redhat.com/security/cve/CVE-2023-5380 (ADP: CVE; vdb-entry, x_refsource_REDHAT, x_transferred)

- https://bugzilla.redhat.com/show_bug.cgi?id=2244736 (ADP: CVE; issue-tracking, x_refsource_REDHAT, x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2WS5E7H4A5J3U5YBCTMRPQVGWK5LVH7D/ (ADP: CVE; x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3RK66CXMXO3PCPDU3GDY5FK4UYHUXQJT/ (ADP: CVE; x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AKKIE626TZOOPD533EYN47J4RFNHZVOP/ (ADP: CVE; x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HO2Q2NP6R62ZRQQG3XQ4AXUT7J2EKKKY/ (ADP: CVE; x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN6KV4XGQJRVAOSM5C3CWMVAXO53COIP/ (ADP: CVE; x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TJXNI4BXURC2BKPNAHFJK3C5ZETB7PER/ (ADP: CVE; x_transferred)

- https://lists.x.org/archives/xorg-announce/2023-October/003430.html (ADP: CVE; x_transferred)

- https://security.gentoo.org/glsa/202401-30 (ADP: CVE; x_transferred)

- https://security.netapp.com/advisory/ntap-20231130-0004/ (ADP: CVE; x_transferred)

- https://www.debian.org/security/2023/dsa-5534 (ADP: CVE; x_transferred)

- https://lists.debian.org/debian-lts-announce/2023/10/msg00036.html (ADP: CVE)

- https://access.redhat.com/errata/RHSA-2023:7428 (secalert@redhat.com; Third Party Advisory)

- https://access.redhat.com/errata/RHSA-2024:2169 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2024:2298 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2024:2995 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2024:3067 (secalert@redhat.com)

- https://access.redhat.com/security/cve/CVE-2023-5380 (secalert@redhat.com; Third Party Advisory)

- https://bugzilla.redhat.com/show_bug.cgi?id=2244736 (secalert@redhat.com; Issue Tracking)

- https://lists.x.org/archives/xorg-announce/2023-October/003430.html (secalert@redhat.com; Patch, Vendor Advisory)

- https://access.redhat.com/errata/RHSA-2023:7428 (af854a3a-2127-422b-91ae-364da2661108; Third Party Advisory)

- https://access.redhat.com/errata/RHSA-2024:2169 (af854a3a-2127-422b-91ae-364da2661108)

- https://access.redhat.com/errata/RHSA-2024:2298 (af854a3a-2127-422b-91ae-364da2661108)

- https://access.redhat.com/errata/RHSA-2024:2995 (af854a3a-2127-422b-91ae-364da2661108)

- https://access.redhat.com/errata/RHSA-2024:3067 (af854a3a-2127-422b-91ae-364da2661108)

- https://access.redhat.com/security/cve/CVE-2023-5380 (af854a3a-2127-422b-91ae-364da2661108; Third Party Advisory)

- https://bugzilla.redhat.com/show_bug.cgi?id=2244736 (af854a3a-2127-422b-91ae-364da2661108; Issue Tracking)

- https://lists.debian.org/debian-lts-announce/2023/10/msg00036.html (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2WS5E7H4A5J3U5YBCTMRPQVGWK5LVH7D/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3RK66CXMXO3PCPDU3GDY5FK4UYHUXQJT/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AKKIE626TZOOPD533EYN47J4RFNHZVOP/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HO2Q2NP6R62ZRQQG3XQ4AXUT7J2EKKKY/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN6KV4XGQJRVAOSM5C3CWMVAXO53COIP/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TJXNI4BXURC2BKPNAHFJK3C5ZETB7PER/ (af854a3a-2127-422b-91ae-364da2661108)

- https://lists.x.org/archives/xorg-announce/2023-October/003430.html (af854a3a-2127-422b-91ae-364da2661108; Patch, Vendor Advisory)

- https://security.gentoo.org/glsa/202401-30 (af854a3a-2127-422b-91ae-364da2661108)

- https://security.netapp.com/advisory/ntap-20231130-0004/ (af854a3a-2127-422b-91ae-364da2661108)

- https://www.debian.org/security/2023/dsa-5534 (af854a3a-2127-422b-91ae-364da2661108)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2023-5380; retrieved 2026-11-24; source updated 2026-11-24

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-5380; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2023-5380; retrieved 2026-11-24; source updated Not reported

Revision: 935f625c7c6431b722183e85b7c19a91e9cb9f0b994442a17be5e7339eae0796

Canonical: https://y2.dev/cve/CVE-2023-5380

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.