CVE-2024-31082

NameCVE-2024-31082
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
xorg-server (PTS)jessie, jessie (lts)2:1.16.4-1+deb8u17vulnerable
stretch (security)2:1.19.2-1+deb9u9vulnerable
stretch (lts), stretch2:1.19.2-1+deb9u20vulnerable
buster, buster (lts)2:1.20.4-1+deb10u15vulnerable
buster (security)2:1.20.4-1+deb10u14vulnerable
bullseye2:1.20.11-1+deb11u13fixed
bullseye (security)2:1.20.11-1+deb11u14fixed
bookworm (security), bookworm2:21.1.7-3+deb12u8fixed
trixie2:21.1.14-2fixed
sid2:21.1.15-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
xorg-serversourcebullseye2:1.20.11-1+deb11u13
xorg-serversourcebookworm2:21.1.7-3+deb12u7
xorg-serversource(unstable)2:21.1.11-3unimportant

Notes

Fixed by: https://gitlab.freedesktop.org/xorg/xserver/-/commit/6c684d035c06fd41c727f0ef0744517580864cef
https://lists.x.org/archives/xorg-announce/2024-April/003497.html
Affects the XQuartz (X11 server and client libraries for macOS) component

Search for package or bug name: Reporting problems