CVE-2024-31080

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

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
xorg-server (PTS)bullseye (security), bullseye2:1.20.11-1+deb11u13fixed
bookworm, bookworm (security)2:21.1.7-3+deb12u7fixed
sid, trixie2:21.1.13-2fixed
xwayland (PTS)bookworm2:22.1.9-1vulnerable
sid, trixie2:24.1.2-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
xorg-serversourcebuster2:1.20.4-1+deb10u14DLA-3787-1
xorg-serversourcebullseye2:1.20.11-1+deb11u13DSA-5657-1
xorg-serversourcebookworm2:21.1.7-3+deb12u7DSA-5657-1
xorg-serversource(unstable)2:21.1.11-3
xwaylandsource(unstable)2:23.2.6-1

Notes

[bookworm] - xwayland <no-dsa> (Minor issue; Xwayland shouldn't be running as root)
Fixed by: https://gitlab.freedesktop.org/xorg/xserver/-/commit/96798fc1967491c80a4d0c8d9e0a80586cb2152b
https://lists.x.org/archives/xorg-announce/2024-April/003497.html

Search for package or bug name: Reporting problems