CVE catalog

CVE-2024-31081

xwayland: CVE-2024-31081

[CVE catalog]

Severity
High · CVSS 7.6CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.52% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianxwaylandsid2:24.1.14-1fixed
Debianxwaylandforky2:24.1.14-1fixed
Debianxwaylandtrixie2:24.1.6-1fixed
Debianxwaylandbookworm2:22.1.9-1vulnerable
Debianxorg-serversid2:21.1.25-2fixed
Debianxorg-serverforky2:21.1.25-2fixed
Debianxorg-servertrixie2:21.1.16-1.3+deb13u3fixed
Debianxorg-servertrixie-security2:21.1.16-1.3+deb13u4fixed
Debianxorg-serverbookworm2:21.1.7-3+deb12u12fixed
Debianxorg-serverbookworm-security2:21.1.7-3+deb12u13fixed
Ubuntuxorg-serverpro2:1.19.5-0ubuntu2vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu1vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu2vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu3vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.1vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.2vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.3vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.4vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.5vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.6vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.7vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.8vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.9vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.10vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.11vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.12vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.13vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.14vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.15vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.15+esm1vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.15+esm3vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.15+esm4vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.15+esm5vulnerable
Ubuntuxorg-serverpro2:1.19.6-1ubuntu4.15+esm7fixed
Ubuntuxorg-server-hwe-16.04pro2:1.18.4-1ubuntu6.1~16.04.1vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.18.4-1ubuntu6.1~16.04.2vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.3-1ubuntu1~16.04.2vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.3-1ubuntu1~16.04.3vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.3-1ubuntu1~16.04.4vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.5-0ubuntu2~16.04.1vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4~16.04.1vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.1vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.2vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.3vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.4vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.5vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm1vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm3vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm4vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm5vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm6vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm7vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm8vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm9vulnerable
Ubuntuxorg-server-hwe-16.04pro2:1.19.6-1ubuntu4.1~16.04.6+esm10vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.1-3ubuntu2.1~18.04.1vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.4-1ubuntu3~18.04.1vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.5+git20191008-0ubuntu1~18.04.1vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.1~18.04.1vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.1vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.2vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.3vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.4vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.5vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.6vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.7vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.8vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.9vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.10vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.11vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.11+esm1vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.11+esm2vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.11+esm3vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.11+esm4vulnerable
Ubuntuxorg-server-hwe-18.04pro2:1.20.8-2ubuntu2.2~18.04.11+esm5vulnerable
Ubuntuxorg-server20.042:1.20.5+git20191008-0ubuntu1vulnerable
Ubuntuxorg-server20.042:1.20.6-1ubuntu1vulnerable
Ubuntuxorg-server20.042:1.20.7-2ubuntu1vulnerable
Ubuntuxorg-server20.042:1.20.7-2ubuntu2vulnerable
Ubuntuxorg-server20.042:1.20.8-2ubuntu2vulnerable
Ubuntuxorg-server20.042:1.20.8-2ubuntu2.1vulnerable
Ubuntuxorg-server20.042:1.20.8-2ubuntu2.2vulnerable
Ubuntuxorg-server20.042:1.20.8-2ubuntu2.3vulnerable
Ubuntuxorg-server20.042:1.20.8-2ubuntu2.4vulnerable
Ubuntuxorg-server20.042:1.20.8-2ubuntu2.6vulnerable
Ubuntuxorg-server20.042:1.20.9-2ubuntu1.1~20.04.1vulnerable
Ubuntuxorg-server20.042:1.20.9-2ubuntu1.2~20.04.1vulnerable
Ubuntuxorg-server20.042:1.20.9-2ubuntu1.2~20.04.2vulnerable
Ubuntuxorg-server20.042:1.20.11-1ubuntu1~20.04.2vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.2vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.3vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.4vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.5vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.6vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.8vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.9vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.12vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.14vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.15vulnerable
Ubuntuxorg-server20.042:1.20.13-1ubuntu1~20.04.16fixed
Ubuntuxorg-server22.042:1.20.13-1ubuntu1vulnerable
Ubuntuxorg-server22.042:1.20.13-1ubuntu2vulnerable
Ubuntuxorg-server22.042:1.20.14-1ubuntu1vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.1vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.2vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.3vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.4vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.5vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.6vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.7vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.8vulnerable
Ubuntuxorg-server22.042:21.1.3-2ubuntu2.9vulnerable
Ubuntuxorg-server22.042:21.1.4-2ubuntu1.7~22.04.1vulnerable
Ubuntuxorg-server22.042:21.1.4-2ubuntu1.7~22.04.2vulnerable
Ubuntuxorg-server22.042:21.1.4-2ubuntu1.7~22.04.5vulnerable
Ubuntuxorg-server22.042:21.1.4-2ubuntu1.7~22.04.7vulnerable
Ubuntuxorg-server22.042:21.1.4-2ubuntu1.7~22.04.8vulnerable
Ubuntuxorg-server22.042:21.1.4-2ubuntu1.7~22.04.9fixed
Ubuntuxwayland22.042:21.1.2-0ubuntu1vulnerable
Ubuntuxwayland22.042:21.1.3-1vulnerable
Ubuntuxwayland22.042:21.1.3-1ubuntu1vulnerable
Ubuntuxwayland22.042:21.1.4-1vulnerable
Ubuntuxwayland22.042:22.1.0-1vulnerable
Ubuntuxwayland22.042:22.1.1-1vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.1vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.2vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.3vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.4vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.5vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.6vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.7vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.9vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.10vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.11vulnerable
Ubuntuxwayland22.042:22.1.1-1ubuntu0.12fixed
Ubuntuxorg-server24.042:21.1.7-3ubuntu2vulnerable
Ubuntuxorg-server24.042:21.1.7-3ubuntu2.1vulnerable
Ubuntuxorg-server24.042:21.1.10-1ubuntu1vulnerable
Ubuntuxorg-server24.042:21.1.11-2ubuntu1vulnerable
Ubuntuxorg-server24.042:21.1.12-1ubuntu1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianxwaylandsourcesid2:23.2.6-1not yet assignedNot reportedNot reported
Debianxwaylandsourceforky2:23.2.6-1not yet assignedNot reportedNot reported
Debianxwaylandsourcetrixie2:23.2.6-1not yet assignedNot reportedNot reported
Debianxwaylandsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Debianxorg-serversourcesid2:21.1.11-3not yet assignedNot reportedNot reported
Debianxorg-serversourceforky2:21.1.11-3not yet assignedNot reportedNot reported
Debianxorg-serversourcetrixie2:21.1.11-3not yet assignedNot reportedNot reported
Debianxorg-serversourcebookworm2:21.1.7-3+deb12u7not yet assignedNot reportedNot reported
Ubuntuxorg-serverdebpro2:1.19.6-1ubuntu4.15+esm7Not reportedUBUNTU-CVE-2024-31081Not reported
Ubuntuxorg-serverdeb20.042:1.20.13-1ubuntu1~20.04.16Not reportedUBUNTU-CVE-2024-31081Not reported
Ubuntuxorg-serverdeb22.042:21.1.4-2ubuntu1.7~22.04.9Not reportedUBUNTU-CVE-2024-31081Not reported
Ubuntuxwaylanddeb22.042:22.1.1-1ubuntu0.12Not reportedUBUNTU-CVE-2024-31081Not reported
Ubuntuxorg-serverdeb24.042:21.1.12-1ubuntu1Not reportedUBUNTU-CVE-2024-31081Not reported

Notes

[bookworm] xwayland: Minor issue; Xwayland shouldn't be running as root

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References