CVE-2024-31081Xorg-x11-server: heap buffer overread/data leakage in procxipassivegrabdevice
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | xorg | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | xwayland | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xorg | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xwayland | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | xorg | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | xorg-server | Fixed | 2:21.1.12-1ubuntu1 | UBUNTU-CVE-2024-31081 |
| Ubuntu 24.04 | xwayland | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | xorg | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | xorg-server | Fixed | 2:21.1.4-2ubuntu1.7~22.04.9 | UBUNTU-CVE-2024-31081 |
| Ubuntu 22.04 | xwayland | Fixed | 2:22.1.1-1ubuntu0.12 | UBUNTU-CVE-2024-31081 |
| Ubuntu 20.04 | xorg | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | xorg-server | Fixed | 2:1.20.13-1ubuntu1~20.04.16 | UBUNTU-CVE-2024-31081 |
| Ubuntu 18.04 | xorg-server | Fix pending | 2:1.19.6-1ubuntu4.15+esm7 (Ubuntu Pro) | UBUNTU-CVE-2024-31081 |
| Ubuntu 18.04 | xorg-server-hwe-18.04 | Fix pending | UBUNTU-CVE-2024-31081 | |
| Ubuntu 16.04 | xorg-server | Fix pending | 2:1.18.4-0ubuntu0.12+esm12 (Ubuntu Pro) | UBUNTU-CVE-2024-31081 |
| Ubuntu 16.04 | xorg-server-hwe-16.04 | Fix pending | UBUNTU-CVE-2024-31081 | |
| Ubuntu 14.04 | xorg-server | Fix pending | 2:1.15.1-0ubuntu2.11+esm11 (Ubuntu Pro) | UBUNTU-CVE-2024-31081 |
| Debian 14 | xorg-server | Fixed | 2:21.1.11-3 | DEBIAN-CVE-2024-31081 |
| Debian 14 | xwayland | Fixed | 2:23.2.6-1 | DEBIAN-CVE-2024-31081 |
| Debian 13 | xorg-server | Fixed | 2:21.1.11-3 | DEBIAN-CVE-2024-31081 |
| Debian 13 | xwayland | Fixed | 2:23.2.6-1 | DEBIAN-CVE-2024-31081 |
| Debian 12 | xorg-server | Fixed | 2:21.1.7-3+deb12u7 | DEBIAN-CVE-2024-31081 |
| Debian 12 | xwayland | Fix pending | DEBIAN-CVE-2024-31081 | |
| Red Hat Enterprise Linux 10 | tigervnc | Not affected | ||
| Red Hat Enterprise Linux 10 | xorg-x11-server | Not affected | ||
| Red Hat Enterprise Linux 10 | xorg-x11-server-Xwayland | Not affected | ||
| Red Hat Enterprise Linux 10 | xorg-x11-server-Xwayland-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | tigervnc | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | tigervnc-icons | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | tigervnc-license | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | tigervnc-selinux | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | tigervnc-server | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | tigervnc-server-minimal | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | tigervnc-server-module | Fixed | 0:1.13.1-8.el9_4.3 | RHSA-2024:2616 |
| Red Hat Enterprise Linux 9 | xorg-x11-server | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xdmx | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xephyr | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xnest | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xorg | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xvfb | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xwayland | Fixed | 0:23.2.7-1.el9 | RHSA-2024:9093 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-Xwayland-devel | Fixed | 0:23.2.7-1.el9 | RHSA-2024:9093 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-common | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-devel | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 9 | xorg-x11-server-source | Fixed | 0:1.20.11-26.el9 | RHSA-2024:9122 |
| Red Hat Enterprise Linux 8 | tigervnc | Fixed | 0:1.13.1-2.el8_9.10 | RHSA-2024:3261 |
| Red Hat Enterprise Linux 8 | tigervnc-icons | Fixed | 0:1.13.1-2.el8_9.10 | RHSA-2024:3261 |
| Red Hat Enterprise Linux 8 | tigervnc-license | Fixed | 0:1.13.1-2.el8_9.10 | RHSA-2024:3261 |
| Red Hat Enterprise Linux 8 | tigervnc-selinux | Fixed | 0:1.13.1-2.el8_9.10 | RHSA-2024:3261 |
| Red Hat Enterprise Linux 8 | tigervnc-server | Fixed | 0:1.13.1-10.el8_10 | RHSA-2024:2037 |
| Red Hat Enterprise Linux 8 | tigervnc-server-minimal | Fixed | 0:1.13.1-2.el8_9.10 | RHSA-2024:3261 |
| Red Hat Enterprise Linux 8 | tigervnc-server-module | Fixed | 0:1.13.1-10.el8_10 | RHSA-2024:2037 |
| Red Hat Enterprise Linux 8 | xorg-x11-server | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-Xdmx | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-Xephyr | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-Xnest | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-Xorg | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-Xvfb | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-Xwayland | Fixed | 0:21.1.3-16.el8_10 | RHSA-2024:3343 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-common | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-devel | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 8 | xorg-x11-server-source | Fixed | 0:1.20.11-23.el8_10 | RHSA-2024:3258 |
| Red Hat Enterprise Linux 7 | tigervnc | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | tigervnc-icons | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | tigervnc-license | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | tigervnc-server | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | tigervnc-server-applet | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | tigervnc-server-minimal | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | tigervnc-server-module | Fixed | 0:1.8.0-33.el7_9 | RHSA-2024:2080 |
| Red Hat Enterprise Linux 7 | xorg-x11-server | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xdmx | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xephyr | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xnest | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xorg | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xvfb | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-Xwayland | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-common | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-devel | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 7 | xorg-x11-server-source | Fixed | 0:1.20.4-29.el7_9 | RHSA-2024:1785 |
| Red Hat Enterprise Linux 6 | xorg-x11-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-Xdmx | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-Xephyr | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-Xnest | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-Xorg | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-Xvfb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | xorg-x11-server-source | Will not fix Out of support scope | ||
| AlmaLinux 9 | tigervnc | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | tigervnc-icons | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | tigervnc-license | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | tigervnc-selinux | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | tigervnc-server | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | tigervnc-server-minimal | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | tigervnc-server-module | Fixed | 1.13.1-8.el9_4.3 | ALSA-2024:2616 |
| AlmaLinux 9 | xorg-x11-server-Xdmx | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-Xephyr | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-Xnest | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-Xorg | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-Xvfb | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-Xwayland | Fixed | 23.2.7-1.el9 | ALSA-2024:9093 |
| AlmaLinux 9 | xorg-x11-server-Xwayland-devel | Fixed | 23.2.7-1.el9 | ALSA-2024:9093 |
| AlmaLinux 9 | xorg-x11-server-common | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-devel | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 9 | xorg-x11-server-source | Fixed | 1.20.11-26.el9 | ALSA-2024:9122 |
| AlmaLinux 8 | tigervnc | Fixed | 1.13.1-2.el8_9.10.alma.1 | ALSA-2024:3261 |
| AlmaLinux 8 | tigervnc-icons | Fixed | 1.13.1-2.el8_9.10.alma.1 | ALSA-2024:3261 |
| AlmaLinux 8 | tigervnc-license | Fixed | 1.13.1-2.el8_9.10.alma.1 | ALSA-2024:3261 |
| AlmaLinux 8 | tigervnc-selinux | Fixed | 1.13.1-2.el8_9.10.alma.1 | ALSA-2024:3261 |
| AlmaLinux 8 | tigervnc-server | Fixed | 1.13.1-10.el8_10 | ALSA-2024:2037 |
| AlmaLinux 8 | tigervnc-server-minimal | Fixed | 1.13.1-10.el8_10 | ALSA-2024:2037 |
| AlmaLinux 8 | tigervnc-server-module | Fixed | 1.13.1-2.el8_9.10.alma.1 | ALSA-2024:3261 |
| AlmaLinux 8 | xorg-x11-server-Xdmx | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-Xephyr | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-Xnest | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-Xorg | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-Xvfb | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-Xwayland | Fixed | 21.1.3-16.el8_10 | ALSA-2024:3343 |
| AlmaLinux 8 | xorg-x11-server-common | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-devel | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| AlmaLinux 8 | xorg-x11-server-source | Fixed | 1.20.11-23.el8_10 | ALSA-2024:3258 |
| Rocky Linux 9 | tigervnc | Fixed | 0:1.13.1-8.el9_4.3 | RLSA-2024:2616 |
| Rocky Linux 9 | xorg-x11-server | Fixed | 0:1.20.11-26.el9 | RLSA-2024:9122 |
| Rocky Linux 9 | xorg-x11-server-Xwayland | Fixed | 0:23.2.7-1.el9 | RLSA-2024:9093 |
| Rocky Linux 8 | tigervnc | Fixed | 0:1.13.1-2.el8_9.10 | RLSA-2024:3261 |
| Rocky Linux 8 | xorg-x11-server | Fixed | 0:1.20.11-23.el8_10 | RLSA-2024:3258 |
| Rocky Linux 8 | xorg-x11-server-Xwayland | Fixed | 0:21.1.3-16.el8_10 | RLSA-2024:3343 |
| Alpine Linux 3.24 | xorg-server | Fixed | 21.1.12-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.24 | xwayland | Fixed | 23.2.5-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.23 | xorg-server | Fixed | 21.1.12-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.23 | xwayland | Fixed | 23.2.5-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.22 | xorg-server | Fixed | 21.1.12-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.22 | xwayland | Fixed | 23.2.5-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.21 | xorg-server | Fixed | 21.1.12-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.21 | xwayland | Fixed | 23.2.5-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.20 | xorg-server | Fixed | 21.1.12-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.20 | xwayland | Fixed | 23.2.5-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.19 | xorg-server | Fixed | 21.1.12-r0 | ALPINE-CVE-2024-31081 |
| Alpine Linux 3.19 | xwayland | Fixed | 23.2.5-r0 | ALPINE-CVE-2024-31081 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- xorg-server: affected: 1.7.0
- Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.2 Telecommunications Update Service
- Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Extended Update Support
- Red Hat Enterprise Linux 8.8 Extended Update Support
Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:1785 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2036 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2037 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2038 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2039 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:2040 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:1785
- https://access.redhat.com/errata/RHSA-2024:2036
- https://access.redhat.com/errata/RHSA-2024:2037
- https://access.redhat.com/errata/RHSA-2024:2038
- https://access.redhat.com/errata/RHSA-2024:2039
- https://access.redhat.com/errata/RHSA-2024:2040
- https://access.redhat.com/errata/RHSA-2024:2041
- https://access.redhat.com/errata/RHSA-2024:2042
- https://access.redhat.com/errata/RHSA-2024:2080
- https://access.redhat.com/errata/RHSA-2024:2616
- https://access.redhat.com/errata/RHSA-2024:3258
- https://access.redhat.com/errata/RHSA-2024:3261
- https://access.redhat.com/errata/RHSA-2024:3343
- https://access.redhat.com/errata/RHSA-2024:9093
- https://access.redhat.com/errata/RHSA-2024:9122
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.