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

High 7.3 Published Updated

An attacker can trigger a heap buffer over-read in the X.org server to leak memory contents and cause a crash via crafted client requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-31081?

CVE-2024-31081 is a high-severity vulnerability in Red Hat Enterprise Linux 10, published on 4 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-126

Which versions are affected by CVE-2024-31081?

How do I fix CVE-2024-31081?

Apply the vendor's patch.

Is CVE-2024-31081 being exploited?

There is no known exploitation of CVE-2024-31081 in the wild and no public exploit code.

Sources

Also known as AZL-39172, AZL-44637, BELL-CVE-2024-31081, DEBIAN-CVE-2024-31081, GHSA-3fpg-j8cw-vcjq, UBUNTU-CVE-2024-31081.

Is CVE-2024-31081 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free