CVE-2024-31082 Xorg-x11-server: heap buffer overread/data leakage in procappledricreatepixmap
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-31082?
CVE-2024-31082 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 ProcAppleDRICreatePixmap() 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-31082?
How do I fix CVE-2024-31082?
Apply the vendor's patch.
Is CVE-2024-31082 being exploited?
There is no known exploitation of CVE-2024-31082 in the wild and no public exploit code.
Sources
Also known as AZL-39112, AZL-45393, BELL-CVE-2024-31082, DEBIAN-CVE-2024-31082, GHSA-cm2m-f7gc-hv64, UBUNTU-CVE-2024-31082.