# CVE-2024-21885: Xorg-x11-server: heap buffer overflow in xisenddevicehierarchyevent

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-02-28 · Modified: 2026-11-04
- Aliases: UBUNTU-CVE-2024-21885, DEBIAN-CVE-2024-21885, CGA-p989-59mp-3gp5, CGA-r4c3-vcjx-7x7q, ALPINE-CVE-2024-21885
- Record: https://cvemate.com/vulnerability/CVE-2024-21885 · JSON: https://cvemate.com/vulnerability/CVE-2024-21885/json

## Description

```text
A flaw was found in X.Org server. In the XISendDeviceHierarchyEvent function, it is possible to exceed the allocated array length when certain new device IDs are added to the xXIHierarchyInfo struct. This can trigger a heap buffer overflow condition, which may lead to an application crash or remote code execution in SSH X11 forwarding environments.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.407%, percentile 73.548%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine xorg-server (Alpine Linux): \< 21.1.11-r0
- alpine xwayland (Alpine Linux): \< 23.2.4-r0
- chainguard xorg-server (Chainguard): \< 21.1.11-r0
- wolfi xorg-server (Wolfi): \< 21.1.11-r0
- debian xorg-server (Debian): \< 2:21.1.7-3+deb12u5 \| \< 2:21.1.11-1
- debian xwayland (Debian): All versions (No fix recorded) \| \< 2:23.2.4-1
- ubuntu xorg-server (Ubuntu): \< 2:1.15.1-0ubuntu2.11+esm9 \| \< 2:1.18.4-0ubuntu0.12+esm9 \| \< 2:1.19.6-1ubuntu4.15+esm4 \| \< 2:1.20.13-1ubuntu1~20.04.14 \| \< 2:21.1.4-2ubuntu1.7~22.04.7
- ubuntu xorg-server-hwe-16.04 (Ubuntu): All versions (No fix recorded)
- ubuntu xorg-server-hwe-18.04 (Ubuntu): All versions (No fix recorded)
- ubuntu xwayland (Ubuntu): \< 2:22.1.1-1ubuntu0.10 \| \< 2:23.2.4-1

## References (first 20 of 33)

- <https://access.redhat.com/errata/RHSA-2024:0320>
- <https://access.redhat.com/errata/RHSA-2024:0557>
- <https://access.redhat.com/errata/RHSA-2024:0558>
- <https://access.redhat.com/errata/RHSA-2024:0597>
- <https://access.redhat.com/errata/RHSA-2024:0607>
- <https://access.redhat.com/errata/RHSA-2024:0614>
- <https://access.redhat.com/errata/RHSA-2024:0617>
- <https://access.redhat.com/errata/RHSA-2024:0621>
- <https://access.redhat.com/errata/RHSA-2024:0626>
- <https://access.redhat.com/errata/RHSA-2024:0629>
- <https://access.redhat.com/errata/RHSA-2024:2169>
- <https://access.redhat.com/errata/RHSA-2024:2170>
- <https://access.redhat.com/errata/RHSA-2024:2995>
- <https://access.redhat.com/errata/RHSA-2024:2996>
- <https://access.redhat.com/errata/RHSA-2025:12751>
- <https://access.redhat.com/security/cve/CVE-2024-21885>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2256540>
- <https://security.netapp.com/advisory/ntap-20240503-0004/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IZ75X54CN4IFYMIV7OK3JVZ57FHQIGIC/>
- <https://lists.debian.org/debian-lts-announce/2024/01/msg00016.html>

---

Data as of 2026-12-05T04:21:18.916Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
