CVEfocus › CVE database › CVE-2024-31080

CVE-2024-31080Xorg-x11-server: heap buffer overread/data leakage in procxigetselectedevents

CVSS 7.3 HighEPSS 0.4% (higher than 28% of CVEs)Published 2024-04-04Updated 2026-11-23Assigner: redhat

A heap-based buffer over-read vulnerability was found in the X.org server's ProcXIGetSelectedEvents() function. This issue occurs when byte-swapped length values are used in replies, potentially leading to memory leakage and segmentation faults, particularly when triggered by a client with a different endianness. This vulnerability could be exploited by an attacker to cause the X server to read heap memory values and then transmit them back to the client until encountering an unmapped page, resulting in a crash. Despite the attacker's inability to control the specific memory copied into the replies, the small length values typically stored in a 32-bit integer can result in significant attempted out-of-bounds reads.

CWE-126

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

112Fixed
6Fix pending
9Will not fix
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04xorgNot affected
vulnerable_code_not_present
Ubuntu 26.04xwaylandNot affected
vulnerable_code_not_present
Ubuntu 25.10xorgNot affected
vulnerable_code_not_present
Ubuntu 25.10xwaylandNot affected
vulnerable_code_not_present
Ubuntu 24.04xorgNot affected
vulnerable_code_not_present
Ubuntu 24.04xorg-serverFixed2:21.1.12-1ubuntu1UBUNTU-CVE-2024-31080
Ubuntu 24.04xwaylandNot affected
vulnerable_code_not_present
Ubuntu 22.04xorgNot affected
vulnerable_code_not_present
Ubuntu 22.04xorg-serverFixed2:21.1.4-2ubuntu1.7~22.04.9UBUNTU-CVE-2024-31080
Ubuntu 22.04xwaylandFixed2:22.1.1-1ubuntu0.12UBUNTU-CVE-2024-31080
Ubuntu 20.04xorgNot affected
vulnerable_code_not_present
Ubuntu 20.04xorg-serverFixed2:1.20.13-1ubuntu1~20.04.16UBUNTU-CVE-2024-31080
Ubuntu 18.04xorg-serverFix pending2:1.19.6-1ubuntu4.15+esm7 (Ubuntu Pro)UBUNTU-CVE-2024-31080
Ubuntu 18.04xorg-server-hwe-18.04Fix pendingUBUNTU-CVE-2024-31080
Ubuntu 16.04xorg-serverFix pending2:1.18.4-0ubuntu0.12+esm12 (Ubuntu Pro)UBUNTU-CVE-2024-31080
Ubuntu 16.04xorg-server-hwe-16.04Fix pendingUBUNTU-CVE-2024-31080
Ubuntu 14.04xorg-serverFix pending2:1.15.1-0ubuntu2.11+esm11 (Ubuntu Pro)UBUNTU-CVE-2024-31080
Debian 14xorg-serverFixed2:21.1.11-3DEBIAN-CVE-2024-31080
Debian 14xwaylandFixed2:23.2.6-1DEBIAN-CVE-2024-31080
Debian 13xorg-serverFixed2:21.1.11-3DEBIAN-CVE-2024-31080
Debian 13xwaylandFixed2:23.2.6-1DEBIAN-CVE-2024-31080
Debian 12xorg-serverFixed2:21.1.7-3+deb12u7DEBIAN-CVE-2024-31080
Debian 12xwaylandFix pendingDEBIAN-CVE-2024-31080
Red Hat Enterprise Linux 10tigervncNot affected
Red Hat Enterprise Linux 10xorg-x11-serverNot affected
Red Hat Enterprise Linux 10xorg-x11-server-XwaylandNot affected
Red Hat Enterprise Linux 10xorg-x11-server-Xwayland-develNot affected
Red Hat Enterprise Linux 9tigervncFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9tigervnc-iconsFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9tigervnc-licenseFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9tigervnc-selinuxFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9tigervnc-serverFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9tigervnc-server-minimalFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9tigervnc-server-moduleFixed0:1.13.1-8.el9_4.3RHSA-2024:2616
Red Hat Enterprise Linux 9xorg-x11-serverFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-XdmxFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-XephyrFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-XnestFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-XorgFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-XvfbFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-XwaylandFixed0:23.2.7-1.el9RHSA-2024:9093
Red Hat Enterprise Linux 9xorg-x11-server-Xwayland-develFixed0:23.2.7-1.el9RHSA-2024:9093
Red Hat Enterprise Linux 9xorg-x11-server-commonFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-develFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 9xorg-x11-server-sourceFixed0:1.20.11-26.el9RHSA-2024:9122
Red Hat Enterprise Linux 8tigervncFixed0:1.13.1-2.el8_9.10RHSA-2024:3261
Red Hat Enterprise Linux 8tigervnc-iconsFixed0:1.13.1-2.el8_9.10RHSA-2024:3261
Red Hat Enterprise Linux 8tigervnc-licenseFixed0:1.13.1-2.el8_9.10RHSA-2024:3261
Red Hat Enterprise Linux 8tigervnc-selinuxFixed0:1.13.1-2.el8_9.10RHSA-2024:3261
Red Hat Enterprise Linux 8tigervnc-serverFixed0:1.13.1-10.el8_10RHSA-2024:2037
Red Hat Enterprise Linux 8tigervnc-server-minimalFixed0:1.13.1-2.el8_9.10RHSA-2024:3261
Red Hat Enterprise Linux 8tigervnc-server-moduleFixed0:1.13.1-10.el8_10RHSA-2024:2037
Red Hat Enterprise Linux 8xorg-x11-serverFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-XdmxFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-XephyrFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-XnestFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-XorgFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-XvfbFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-XwaylandFixed0:21.1.3-16.el8_10RHSA-2024:3343
Red Hat Enterprise Linux 8xorg-x11-server-commonFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-develFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 8xorg-x11-server-sourceFixed0:1.20.11-23.el8_10RHSA-2024:3258
Red Hat Enterprise Linux 7tigervncFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7tigervnc-iconsFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7tigervnc-licenseFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7tigervnc-serverFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7tigervnc-server-appletFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7tigervnc-server-minimalFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7tigervnc-server-moduleFixed0:1.8.0-33.el7_9RHSA-2024:2080
Red Hat Enterprise Linux 7xorg-x11-serverFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-XdmxFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-XephyrFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-XnestFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-XorgFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-XvfbFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-XwaylandFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-commonFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-develFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 7xorg-x11-server-sourceFixed0:1.20.4-29.el7_9RHSA-2024:1785
Red Hat Enterprise Linux 6xorg-x11-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XdmxWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XephyrWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XnestWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XorgWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-XvfbWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6xorg-x11-server-sourceWill not fix
Out of support scope
AlmaLinux 9tigervncFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9tigervnc-iconsFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9tigervnc-licenseFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9tigervnc-selinuxFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9tigervnc-serverFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9tigervnc-server-minimalFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9tigervnc-server-moduleFixed1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux 9xorg-x11-server-XdmxFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-XephyrFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-XnestFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-XorgFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-XvfbFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-XwaylandFixed23.2.7-1.el9ALSA-2024:9093
AlmaLinux 9xorg-x11-server-Xwayland-develFixed23.2.7-1.el9ALSA-2024:9093
AlmaLinux 9xorg-x11-server-commonFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-develFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 9xorg-x11-server-sourceFixed1.20.11-26.el9ALSA-2024:9122
AlmaLinux 8tigervncFixed1.13.1-2.el8_9.10.alma.1ALSA-2024:3261
AlmaLinux 8tigervnc-iconsFixed1.13.1-2.el8_9.10.alma.1ALSA-2024:3261
AlmaLinux 8tigervnc-licenseFixed1.13.1-2.el8_9.10.alma.1ALSA-2024:3261
AlmaLinux 8tigervnc-selinuxFixed1.13.1-2.el8_9.10.alma.1ALSA-2024:3261
AlmaLinux 8tigervnc-serverFixed1.13.1-10.el8_10ALSA-2024:2037
AlmaLinux 8tigervnc-server-minimalFixed1.13.1-10.el8_10ALSA-2024:2037
AlmaLinux 8tigervnc-server-moduleFixed1.13.1-2.el8_9.10.alma.1ALSA-2024:3261
AlmaLinux 8xorg-x11-server-XdmxFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-XephyrFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-XnestFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-XorgFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-XvfbFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-XwaylandFixed21.1.3-16.el8_10ALSA-2024:3343
AlmaLinux 8xorg-x11-server-commonFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-develFixed1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux 8xorg-x11-server-sourceFixed1.20.11-23.el8_10ALSA-2024:3258
Rocky Linux 9tigervncFixed0:1.13.1-8.el9_4.3RLSA-2024:2616
Rocky Linux 9xorg-x11-serverFixed0:1.20.11-26.el9RLSA-2024:9122
Rocky Linux 9xorg-x11-server-XwaylandFixed0:23.2.7-1.el9RLSA-2024:9093
Rocky Linux 8tigervncFixed0:1.13.1-2.el8_9.10RLSA-2024:3261
Rocky Linux 8xorg-x11-serverFixed0:1.20.11-23.el8_10RLSA-2024:3258
Rocky Linux 8xorg-x11-server-XwaylandFixed0:21.1.3-16.el8_10RLSA-2024:3343
Alpine Linux 3.24xorg-serverFixed21.1.12-r0ALPINE-CVE-2024-31080
Alpine Linux 3.24xwaylandFixed23.2.5-r0ALPINE-CVE-2024-31080
Alpine Linux 3.23xorg-serverFixed21.1.12-r0ALPINE-CVE-2024-31080
Alpine Linux 3.23xwaylandFixed23.2.5-r0ALPINE-CVE-2024-31080
Alpine Linux 3.22xorg-serverFixed21.1.12-r0ALPINE-CVE-2024-31080
Alpine Linux 3.22xwaylandFixed23.2.5-r0ALPINE-CVE-2024-31080
Alpine Linux 3.21xorg-serverFixed21.1.12-r0ALPINE-CVE-2024-31080
Alpine Linux 3.21xwaylandFixed23.2.5-r0ALPINE-CVE-2024-31080
Alpine Linux 3.20xorg-serverFixed21.1.12-r0ALPINE-CVE-2024-31080
Alpine Linux 3.20xwaylandFixed23.2.5-r0ALPINE-CVE-2024-31080
Alpine Linux 3.19xorg-serverFixed21.1.12-r0ALPINE-CVE-2024-31080
Alpine Linux 3.19xwaylandFixed23.2.5-r0ALPINE-CVE-2024-31080

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.