Vulnerability · Published Feb 28, 2024 · Assigned by redhat

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

High 7.8

In plain English

A high-severity heap buffer overflow in xorg-server. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)1.4%top 27.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8tigervnc1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8tigervnc-icons1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc-icons1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8tigervnc-license1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc-license1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8tigervnc-selinux1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc-selinux1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8tigervnc-server1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc-server1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8tigervnc-server-minimal1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc-server-minimal1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8tigervnc-server-module1.13.1-2.el8_9.7.alma.1ALSA-2024:0607
AlmaLinux:9tigervnc-server-module1.13.1-3.el9_3.6.alma.1ALSA-2024:0557
AlmaLinux:8xorg-x11-server-Xdmx1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-Xdmx1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-Xephyr1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-Xephyr1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-Xnest1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-Xnest1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-Xorg1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-Xorg1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-Xvfb1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-Xvfb1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-Xwayland21.1.3-15.el8ALSA-2024:2996
AlmaLinux:9xorg-x11-server-Xwayland22.1.9-5.el9ALSA-2024:2170
AlmaLinux:8xorg-x11-server-common1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-common1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-devel1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-devel1.20.11-24.el9ALSA-2024:2169
AlmaLinux:8xorg-x11-server-source1.20.11-22.el8ALSA-2024:2995
AlmaLinux:9xorg-x11-server-source1.20.11-24.el9ALSA-2024:2169
Alpine:v3.20xorg-server21.1.11-r0ALPINE-CVE-2024-21885
Alpine:v3.21xorg-server21.1.11-r0ALPINE-CVE-2024-21885
Alpine:v3.22xorg-server21.1.11-r0ALPINE-CVE-2024-21885
Alpine:v3.23xorg-server21.1.11-r0ALPINE-CVE-2024-21885
Alpine:v3.24xorg-server21.1.11-r0ALPINE-CVE-2024-21885
Alpine:v3.20xwayland23.2.4-r0ALPINE-CVE-2024-21885
Alpine:v3.21xwayland23.2.4-r0ALPINE-CVE-2024-21885
Alpine:v3.22xwayland23.2.4-r0ALPINE-CVE-2024-21885
Alpine:v3.23xwayland23.2.4-r0ALPINE-CVE-2024-21885
Alpine:v3.24xwayland23.2.4-r0ALPINE-CVE-2024-21885
Debian:12xorg-server2:21.1.7-3+deb12u5DEBIAN-CVE-2024-21885
Debian:12xorg-server2:21.1.7-3+deb12u5DSA-5603-1
Debian:13xorg-server2:21.1.11-1DEBIAN-CVE-2024-21885
Debian:14xorg-server2:21.1.11-1DEBIAN-CVE-2024-21885
Debian:12xwaylandno fix listedDEBIAN-CVE-2024-21885
Debian:13xwayland2:23.2.4-1DEBIAN-CVE-2024-21885
Debian:14xwayland2:23.2.4-1DEBIAN-CVE-2024-21885
Rocky Linux:8tigervnc0:1.13.1-2.el8_9.7RLSA-2024:0607
Ubuntu:22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.7USN-6587-1
Ubuntu:22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.7UBUNTU-CVE-2024-21885
Ubuntu:22.04:LTSxwayland2:22.1.1-1ubuntu0.10USN-6587-1
Ubuntu:22.04:LTSxwayland2:22.1.1-1ubuntu0.10UBUNTU-CVE-2024-21885
Ubuntu:24.04:LTSxwayland2:23.2.4-1UBUNTU-CVE-2024-21885

Affected products (as reported)

Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References