Vulnerability · Published Apr 4, 2024 · Assigned by redhat

CVE-2024-31082Xorg-x11-server: heap buffer overread/data leakage in procappledricreatepixmap

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.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.3%top 72.6% 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 ProcAppleDRICreatePixmap() 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
Alpine:v3.20xorg-server21.1.12-r0ALPINE-CVE-2024-31082
Alpine:v3.21xorg-server21.1.12-r0ALPINE-CVE-2024-31082
Alpine:v3.22xorg-server21.1.12-r0ALPINE-CVE-2024-31082
Alpine:v3.23xorg-server21.1.12-r0ALPINE-CVE-2024-31082
Alpine:v3.24xorg-server21.1.12-r0ALPINE-CVE-2024-31082
Debian:12xorg-server2:21.1.7-3+deb12u7DEBIAN-CVE-2024-31082
Debian:13xorg-server2:21.1.11-3DEBIAN-CVE-2024-31082
Debian:14xorg-server2:21.1.11-3DEBIAN-CVE-2024-31082
Ubuntu:22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.9USN-6721-1
Ubuntu:22.04:LTSxorg-server2:21.1.4-2ubuntu1.7~22.04.9UBUNTU-CVE-2024-31082
Ubuntu:24.04:LTSxorg-server2:21.1.12-1ubuntu1UBUNTU-CVE-2024-31082
Ubuntu:22.04:LTSxwayland2:22.1.1-1ubuntu0.12UBUNTU-CVE-2024-31082
Ubuntu:22.04:LTSxwayland2:22.1.1-1ubuntu0.12USN-6721-1

Affected products (as reported)

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

References