CVE-2024-21885

published 28 Feb 2024 · updated 4 Nov 2026

Xorg-x11-server: heap buffer overflow in xisenddevicehierarchyevent

7.8HighCVSS 7.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 21.1.11 and 23.2.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
<21.1.11, <23.2.421.1.11, 23.2.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-21885 severity on Zeptric[![CVE-2024-21885](https://zeptric.io/badge/cve/CVE-2024-21885.svg)](https://zeptric.io/cve/CVE-2024-21885)