# CVE-2024-31081: Xorg-x11-server: heap buffer overread/data leakage in procxipassivegrabdevice

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-04 · Modified: 2026-11-23
- Aliases: UBUNTU-CVE-2024-31081, DEBIAN-CVE-2024-31081, CGA-f4qf-vgh8-r3pf, CGA-r3c4-frvj-5vqx, ALPINE-CVE-2024-31081
- Record: https://cvemate.com/vulnerability/CVE-2024-31081 · JSON: https://cvemate.com/vulnerability/CVE-2024-31081/json

## Description

```text
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.
```

## Signals

- CVSS: 7.3 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- EPSS: 0.577%, percentile 48.994%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine xorg-server (Alpine Linux): \< 21.1.12-r0
- alpine xwayland (Alpine Linux): \< 23.2.5-r0
- chainguard xorg-server (Chainguard): \< 21.1.12-r0
- wolfi xorg-server (Wolfi): \< 21.1.12-r0
- debian xorg-server (Debian): \< 2:21.1.7-3+deb12u7 \| \< 2:21.1.11-3
- debian xwayland (Debian): All versions (No fix recorded) \| \< 2:23.2.6-1
- ubuntu xorg-server (Ubuntu): \< 2:1.15.1-0ubuntu2.11+esm11 \| \< 2:1.18.4-0ubuntu0.12+esm12 \| \< 2:1.19.6-1ubuntu4.15+esm7 \| \< 2:1.20.13-1ubuntu1~20.04.16 \| \< 2:21.1.4-2ubuntu1.7~22.04.9 \| \< 2:21.1.12-1ubuntu1
- ubuntu xorg-server-hwe-16.04 (Ubuntu): All versions (No fix recorded)
- ubuntu xorg-server-hwe-18.04 (Ubuntu): All versions (No fix recorded)
- ubuntu xwayland (Ubuntu): \< 2:22.1.1-1ubuntu0.12

## References (first 20 of 33)

- <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>
- <https://access.redhat.com/errata/RHSA-2025:12751>
- <https://access.redhat.com/security/cve/CVE-2024-31081>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2271998>
- <http://www.openwall.com/lists/oss-security/2024/04/03/13>
- <http://www.openwall.com/lists/oss-security/2024/04/12/10>

---

Data as of 2026-12-05T06:22:30.362Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
