Vulnerability · Published Apr 4, 2024 · Assigned by redhat

CVE-2024-31081Xorg-x11-server: heap buffer overread/data leakage in procxipassivegrabdevice

High 7.3

In plain English

A high-severity security flaw 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 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

A heap-based buffer over-read vulnerability was found in the X.org server's ProcXIPassiveGrabDevice() 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8tigervnc1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:8tigervnc1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:9tigervnc1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8tigervnc-icons1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:8tigervnc-icons1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:9tigervnc-icons1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8tigervnc-license1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:8tigervnc-license1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:9tigervnc-license1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8tigervnc-selinux1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:8tigervnc-selinux1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:9tigervnc-selinux1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8tigervnc-server1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:8tigervnc-server1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:9tigervnc-server1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8tigervnc-server-minimal1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:8tigervnc-server-minimal1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:9tigervnc-server-minimal1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8tigervnc-server-module1.13.1-10.el8_10ALSA-2024:3261
AlmaLinux:8tigervnc-server-module1.13.1-2.el8_9.10.alma.1ALSA-2024:2037
AlmaLinux:9tigervnc-server-module1.13.1-8.el9_4.3ALSA-2024:2616
AlmaLinux:8xorg-x11-server-Xdmx1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-Xdmx1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-Xephyr1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-Xephyr1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-Xnest1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-Xnest1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-Xorg1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-Xorg1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-Xvfb1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-Xvfb1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-Xwayland21.1.3-16.el8_10ALSA-2024:3343
AlmaLinux:9xorg-x11-server-Xwayland23.2.7-1.el9ALSA-2024:9093
AlmaLinux:9xorg-x11-server-Xwayland-devel23.2.7-1.el9ALSA-2024:9093
AlmaLinux:8xorg-x11-server-common1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-common1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-devel1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-devel1.20.11-26.el9ALSA-2024:9122
AlmaLinux:8xorg-x11-server-source1.20.11-23.el8_10ALSA-2024:3258
AlmaLinux:9xorg-x11-server-source1.20.11-26.el9ALSA-2024:9122
Alpine:v3.20xorg-server21.1.12-r0ALPINE-CVE-2024-31081
Alpine:v3.21xorg-server21.1.12-r0ALPINE-CVE-2024-31081
Alpine:v3.22xorg-server21.1.12-r0ALPINE-CVE-2024-31081
Alpine:v3.23xorg-server21.1.12-r0ALPINE-CVE-2024-31081
Alpine:v3.24xorg-server21.1.12-r0ALPINE-CVE-2024-31081
Alpine:v3.20xwayland23.2.5-r0ALPINE-CVE-2024-31081
Alpine:v3.21xwayland23.2.5-r0ALPINE-CVE-2024-31081
Alpine:v3.22xwayland23.2.5-r0ALPINE-CVE-2024-31081
Alpine:v3.23xwayland23.2.5-r0ALPINE-CVE-2024-31081
Alpine:v3.24xwayland23.2.5-r0ALPINE-CVE-2024-31081
Debian:12xorg-server2:21.1.7-3+deb12u7DEBIAN-CVE-2024-31081
Debian:12xorg-server2:21.1.7-3+deb12u7DSA-5657-1
Debian:13xorg-server2:21.1.11-3DEBIAN-CVE-2024-31081
Debian:14xorg-server2:21.1.11-3DEBIAN-CVE-2024-31081
Debian:12xwaylandno fix listedDEBIAN-CVE-2024-31081
Debian:13xwayland2:23.2.6-1DEBIAN-CVE-2024-31081
Debian:14xwayland2:23.2.6-1DEBIAN-CVE-2024-31081
Rocky Linux:8tigervnc0:1.13.1-10.el8_10RLSA-2024:3261
Rocky Linux:8tigervnc0:1.13.1-2.el8_9.10RLSA-2024:2037
Rocky Linux:8xorg-x11-server0:1.20.11-23.el8_10RLSA-2024:3258
Rocky Linux:9xorg-x11-server0:1.20.11-26.el9RLSA-2024:9122
Rocky Linux:8xorg-x11-server-Xwayland0:21.1.3-16.el8_10RLSA-2024:3343
Rocky Linux:9xorg-x11-server-Xwayland0:23.2.7-1.el9RLSA-2024:9093
Ubuntu:22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.9UBUNTU-CVE-2024-31081
Ubuntu:22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.9USN-6721-1
Ubuntu:24.04:LTSxorg-server2:21.1.12-1ubuntu1UBUNTU-CVE-2024-31081
Ubuntu:22.04:LTSxwayland2:22.1.1-1ubuntu0.12UBUNTU-CVE-2024-31081
Ubuntu:22.04:LTSxwayland2:22.1.1-1ubuntu0.12USN-6721-1

Affected products (as reported)

VendorProductVersions
xorg-server 1.7.0
Red Hat Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION see references
Red Hat Red Hat Enterprise Linux 7 see references
Red Hat Red Hat Enterprise Linux 7 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 6 see references

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

References