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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | xorg-server | 21.1.12-r0 | ALPINE-CVE-2024-31082 |
| Alpine:v3.21 | xorg-server | 21.1.12-r0 | ALPINE-CVE-2024-31082 |
| Alpine:v3.22 | xorg-server | 21.1.12-r0 | ALPINE-CVE-2024-31082 |
| Alpine:v3.23 | xorg-server | 21.1.12-r0 | ALPINE-CVE-2024-31082 |
| Alpine:v3.24 | xorg-server | 21.1.12-r0 | ALPINE-CVE-2024-31082 |
| Debian:12 | xorg-server | 2:21.1.7-3+deb12u7 | DEBIAN-CVE-2024-31082 |
| Debian:13 | xorg-server | 2:21.1.11-3 | DEBIAN-CVE-2024-31082 |
| Debian:14 | xorg-server | 2:21.1.11-3 | DEBIAN-CVE-2024-31082 |
| Ubuntu:22.04:LTS | xorg-server | 2:21.1.4-2ubuntu1.7~22.04.9 | USN-6721-1 |
| Ubuntu:22.04:LTS | xorg-server | 2:21.1.4-2ubuntu1.7~22.04.9 | UBUNTU-CVE-2024-31082 |
| Ubuntu:24.04:LTS | xorg-server | 2:21.1.12-1ubuntu1 | UBUNTU-CVE-2024-31082 |
| Ubuntu:22.04:LTS | xwayland | 2:22.1.1-1ubuntu0.12 | UBUNTU-CVE-2024-31082 |
| Ubuntu:22.04:LTS | xwayland | 2:22.1.1-1ubuntu0.12 | USN-6721-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xorg-server | 1.12.0 – before 21.1.12 | |
| 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 |
| Red Hat | Red Hat Enterprise Linux 6 | 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 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | 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
- https://access.redhat.com/security/cve/CVE-2024-31082 vdb-entry, x_refsource_REDHAT
- RHBZ#2271999 issue-tracking, x_refsource_REDHAT
- https://lists.x.org/archives/xorg-announce/2024-April/003497.html
- http://www.openwall.com/lists/oss-security/2024/04/03/13 x_transferred
- http://www.openwall.com/lists/oss-security/2024/04/12/10 x_transferred