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

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 58% of CVEs (2026-11-30)
- Published: 2024-02-28T12:11:59.650Z
- Modified: 2026-11-04T21:17:37.783Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- xorg-server: before 21.1.11 (not affected: from 21.1.11 before *)
- xwayland: before 23.2.4 (not affected: from 23.2.4 before *)
- tigervnc: no versions given (not affected: from 0:1.1.0-25.el6_10.13 before *; from 0:1.8.0-31.el7_9 before *; from 0:1.13.1-2.el8_9.7 before *; from 0:1.9.0-15.el8_2.9 before *; from 0:1.11.0-8.el8_4.8 before *; from 0:1.12.0-6.el8_6.9 before *; from 0:1.12.0-15.el8_8.7 before *; from 0:1.13.1-3.el9_3.6 before *; from 0:1.11.0-22.el9_0.8 before *; from 0:1.12.0-14.el9_2.5 before *)
- xorg-x11-server: no versions given (not affected: from 0:1.20.4-27.el7_9 before *; from 0:1.20.11-22.el8 before *; from 0:1.20.11-24.el9 before *)
- xorg-x11-server-Xwayland: no versions given (not affected: from 0:21.1.3-15.el8 before *; from 0:22.1.9-5.el9 before *)

## References

- <https://access.redhat.com/errata/RHSA-2024:0320> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0557> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0558> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0597> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0607> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0614> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0617> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0621> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0626> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0629> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2169> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2170> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2995> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2996> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:12751> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2024-21885> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2256540> (issue-tracking)
- <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>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJBMCWQ54R6ZL3MYU2D2JBW6JMZL7BQW/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5J4H7CH565ALSZZYKOJFYDA5KFLG6NUK/>

## Sources

- CVE List: [CVE-2024-21885](https://www.cve.org/CVERecord?id=CVE-2024-21885), CVE Terms of Use, modified 2026-11-04
- NVD: [CVE-2024-21885](https://nvd.nist.gov/vuln/detail/CVE-2024-21885), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2024-21885 · Whole record: https://cve.day/CVE-2024-21885.json · Rebuilt by cve.day 2026-11-25T22:58:37.108Z
