CVE-2024-21885
JSON

7.8high

Xorg-x11-server: heap buffer overflow in xisenddevicehierarchyevent

Severity
7.8high CVSS:3.1 by redhat
Exploit likelihood
0.91% (higher than 58% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
xorg-serverbefore 21.1.11
Not affected: from 21.1.11 before *
CVE List
xwaylandbefore 23.2.4
Not affected: from 23.2.4 before *
CVE List
tigervncNot specified
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 *
CVE List
xorg-x11-serverNot specified
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 *
CVE List
xorg-x11-server-XwaylandNot specified
Not affected: from 0:21.1.3-15.el8 before *, from 0:22.1.9-5.el9 before *
CVE List

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se encontró una falla en el servidor X.Org. En la función XISendDeviceHierarchyEvent, es posible exceder la longitud de la matriz asignada cuando se agregan ciertos ID de dispositivo nuevos a la estructura xXIHierarchyInfo. Esto puede desencadenar una condición de desbordamiento de búfer de almacenamiento dinámico, lo que puede provocar un bloqueo de la aplicación o la ejecución remota de código en entornos de reenvío SSH X11.

References

https://access.redhat.com/errata/RHSA-2024:0320vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0557vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0558vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0597vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0607vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0614vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0617vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0621vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0626vendor-advisory
https://access.redhat.com/errata/RHSA-2024:0629vendor-advisory
https://access.redhat.com/errata/RHSA-2024:2169vendor-advisory
https://access.redhat.com/errata/RHSA-2024:2170vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-21885 changed 2026-11-04CVE Terms of Use
NVDCVE-2024-21885 changed 2026-11-04Public domain